I think you can only load a swf at runtime, via a Loader or SWFLoader

--- In flexcoders@yahoogroups.com, Clark Stevenson <a.scots...@...> 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.
>


Reply via email to