Remove the mimeType and use –keep to see the generated code.  You should be 
able to use what gets generated in order to just embed a SWF as bits.


On 6/17/10 10:02 AM, "Clark Stevenson" <a.scots...@gmail.com> wrote:






Hey all,

The title says it all. I know how to embed a symbol from a SWF, but
everything i try when trying to embed a complete SWF fails:

[Embed(source="assets/some.swf", mimeType="application/octet-stream")]
private var MySWF:Class;

var movie:MovieClip = new MySwf() as MovieClip

This does not work which is slightly obvious as its a octet stream.

So now i use a loader and try loadByes(new MySWF() as ByteArray)

This tells me .swf contains invalid data.

So i have no idea how to embed a SWF. Can anyone give me some help?

Cheers,

Clark.





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to