How is it possible to extend an SWFLoader with MXML?
- by michael-cereda
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