ok one more time. In this way :

[Embed(source="Mxml.swf")]
private var mv:Class;
private var topMaterial:MovieMaterial = new MovieMaterial(new mv(),
{interactive:true, smooth:true});

I get "topMaterial" which are swf file wich embeded into my project,
and i can use it as a texture(material) for any primitive.

In this way :

var loader:Loader=new Loader();
loader.load(new URLRequest("Mxml.swf"));
addChild(loader);

I have loaded external SWF. But I can't transform it into
MovieMaterial, which I want to use as texture(material) for any
primitive.
Hope for HELP. Thanks.

On 31 янв, 19:29, metSyS <[email protected]> wrote:
> I set up in project properties ActionScript Compiler>additional
> compiler arguments : -use-network=false. I think it must solve problem
> with network. So I understand that I need after :
>
> var loader:Loader = new Loader();
> loader.load(new URLRequest("Mxml.swf"));
>
> add event listener for listening if the downloading complete or not?
> Soory for my bad english.
>
> On 31 янв, 18:16, Charles Wardlaw <[email protected]> wrote:
>
>
>
> > > Please Help. It's very important for me to solve this problem.
>
> >http://gotoandlearn.com/play?id=85
>
> > It's in the docs that you have to apply event handlers to loader's 
> > contentLoaderInfo in order to get the events to fire properly.  Once the 
> > events are done, then build your movie clip mat.  If you try building it 
> > before Event.COMPLETE, it will fail.
>
> > The other thing that I don't think anybody asked is: are you testing this 
> > locally, or on a website?  Flash likes to lock you out of loading local 
> > files unless you know how to flip the switch to local files and turn off 
> > network access.  Dunno if that's still an issue in CS4.
> > ~ C

Reply via email to