How is it possible to extend an SWFLoader with MXML?
Posted
by michael-cereda
on Stack Overflow
See other posts from Stack Overflow
or by michael-cereda
Published on 2010-05-20T15:02:45Z
Indexed on
2010/05/20
15:10 UTC
Read the original article
Hit count: 254
I'm currently doing the following..
Main application: "
" In the Component: First Try:
]]>
</fx:Script>
<fx:Declarations></fx:Declarations>
<mx:SWFLoader x="0" y="0" id="loader"/>
</s:Group>
Second Try:
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
[Bindable]
public var source:String;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:SWFLoader x="0" y="0" source="{source}"/>
</s:Group>
But the component displays only a "Not Found" icon in both cases.
Thanks
© Stack Overflow or respective owner