【问题标题】:Adding a library into Flex 4 (flex iframe)将库添加到 Flex 4 (flex iframe)
【发布时间】:2012-09-19 23:11:15
【问题描述】:

我正在尝试在 Flash Builder 中将 flex iframe 与 Adob​​e Flex 项目一起使用,并且我已经通过 Project -> Properties -> Library Path -> Add SWC Folder 添加了该库,但我仍然收到错误 The prefix "flexiframe" for element "flexiframe:IFrame" is not bound,就好像我没有链接它一样。

<flexiframe:IFrame id="googleIFrame"
                       label="Google"
                       source="htp://google.com"
                       width="80%"
                       height="80%"/>

我对 Flex 非常陌生,我找不到任何好的资源。提前致谢。

【问题讨论】:

    标签: iframe actionscript flex4 adobe flash-builder


    【解决方案1】:

    您可能缺少文件顶部的命名空间定义:

    <s:Application xmlns:fx=“http://ns.adobe.com/mxml/2009”
                   xmlns:s=“library://ns.adobe.com/flex/spark”
                   xmlns:mx=“library://ns.adobe.com/flex/mx”
                   xmlns:flexiframe="http://code.google.com/p/flex-iframe/">
    [...]
    
    </s:Application>
    

    你可以在user's guide看到这个。

    【讨论】:

    • 谢谢,但我收到了:Could not resolve &lt;flexiframe:IFrame&gt; to a component implementation
    • 您应该从here 下载库的swc 版本。然后,按照这些instructions 将其添加到您的项目中。请记住,您要使用 add SWC 而不是 add SWC folder...
    【解决方案2】:

    首先从http://code.google.com/p/flex-iframe/downloads/list下载SWC文件夹。 然后设置这个 Project->Properties->Flex Build Path->Add SWC。 从构建文件夹链接 .swc。包括这也 xmlns:flexiframe="http://code.google.com/p/flex-iframe/"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 2011-03-06
      • 1970-01-01
      • 2012-12-12
      • 2011-10-24
      • 2011-07-05
      • 1970-01-01
      相关资源
      最近更新 更多