It's clear, but i can't understand how to transform the loaded swf
into MovieMaterial ...

On 30 янв, 16:08, Peter Kapelyan <[email protected]> wrote:
> If anything, you would have to wait for your swf to load first. Also most
> likely you would have to use the loaders content instead:
>
> http://www.iheartactionscript.com/loading-an-external-swf-in-as3/
>
> So you would wait for the
>
> onCompleteHandler
>
> to create you movie material.
>
> Hopefully it works for you.
> -Pete
>
>
>
>
>
> On Sat, Jan 30, 2010 at 8:14 AM, metSyS <[email protected]> wrote:
> > I have a problem. To transform Embeded swf into MovieMaterial we need
> > to do next :
>
> > [Embed(source="Mxml.swf")]
> > private var mv:Class;
> > private var topMaterial:MovieMaterial = new MovieMaterial(new mv(),
> > {interactive:true, smooth:true});
>
> > But I need to transform swf into MovieMaterial from external file, so
> > I thought it must be :
>
> > private var frontMaterial:MovieMaterial;
> > ...
> > var loader:Loader = new Loader();
> > loader.load(new URLRequest("Mxml.swf"));
> > frontMaterial=new MovieMaterial(loader);
>
> > But it doesn't work. Need help. Thanks.
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to