【问题标题】:Could not resolve <mx:LinkButton> to a component implementation in Flex Mobile project无法将 <mx:LinkBut​​ton> 解析为 Flex Mobile 项目中的组件实现
【发布时间】:2013-02-11 18:47:02
【问题描述】:

我刚刚创建了一个 Flex Mobile 项目,但在使用 mx:LinkBut​​ton: 时收到此错误:

Could not resolve <mx:LinkButton> to a component implementation.

这是我的申请:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:mx="library://ns.adobe.com/flex/mx" 
               xmlns:s="library://ns.adobe.com/flex/spark">


    <mx:LinkButton id="contactButton" label="Contact" />

实际上,所有 mx 组件都没有工作?不是很好。

我使用的是 Flex 4.5.1A。

【问题讨论】:

    标签: apache-flex flex4 flash-builder


    【解决方案1】:

    看起来您必须手动将 mx.swc 添加到项目中(尽管 Flex 4.5+ 中默认包含一些 mx 组件)。

    无论如何,打开您的项目属性窗口并转到构建路径视图。单击添加 SWC 并浏览到:

    [Flex Framework directory]\frameworks\libs\mx\mx.swc
    

    但是,您仍然可能会遇到 100 个这样的错误:

    Definition mx.skins.spark:AccordionHeaderSkin could not be found.
    

    在这种情况下,您需要按照here 的说明将源添加到皮肤。单击添加源并浏览到:

    \frameworks\projects\mx\src
    

    您可能还需要添加其他皮肤。单击添加源并浏览到:

    /frameworks/projects/sparkskins/src
    

    【讨论】:

      猜你喜欢
      • 2018-07-16
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      • 1970-01-01
      • 1970-01-01
      • 2011-05-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多