0

我正在尝试在 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 非常陌生,我找不到任何好的资源。先谢谢了。

4

2 回答 2

3

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

<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>

您可以在用户指南中看到这一点。

于 2012-09-19T23:41:09.133 回答
0

首先从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/"

于 2014-01-30T12:31:09.407 回答