iframeactionscriptflex4adobeflash-builder

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

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