Hi All,
i'am new to this list and new to Flex.
i'am a Flash developer and i get a bit confused by the way Flex works.

I would like to achieve the following.

in Flash using the attachMovie you directly fill a movieclip container with a linked symbol from the library.
in Flex i have a class building a container.
i would like to be able to do the following in the class


container --> attachMovie located in an external swf

i saw the embed tag, where you can add an external image or swf into a container.

in mxml this one works
<mx:Image source="@Embed('skins/OPSkin.swf#updownMC')" id="updown" />
this displays the symbol on stage.

this in a script tag doesn't work... acoording to documentation it should....
<mx:Script>
<![CDATA[
function attach()
}
[Embed('skins/OPSkin.swf#updownMC')]
var updownMC:String;
// traces undefined
}
]]>
</mx:Script>
i'am sure i'am missing something somewhere....


and how do i use this synthax from a class? using createObject()?

Any help would be more than welcome.
Fabrice





Reply via email to