'Adding a library into Flex 4 (flex iframe)
I am trying to use flex iframe with an Adobe Flex project in Flash Builder, and I've added the library through Project -> Properties -> Library Path -> Add SWC Folder
but I am still getting the error The prefix "flexiframe" for element "flexiframe:IFrame" is not bound
, as if I haven't linked it.
<flexiframe:IFrame id="googleIFrame"
label="Google"
source="htp://google.com"
width="80%"
height="80%"/>
I am extremely new to Flex, and I cannot find any good resources on it.
Solution 1:[1]
You are probably missing the namespace definition on top of your file:
<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>
You can see this in the user's guide.
Solution 2:[2]
First download SWC folder from http://code.google.com/p/flex-iframe/downloads/list. Then set this Project->Properties->Flex Build Path->Add SWC. Link .swc from build folder. Include this also xmlns:flexiframe="http://code.google.com/p/flex-iframe/"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | jbalsas |
Solution 2 | BinJ |