Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Ian Thomas
Ali, You need to set the visible _after the clip has loaded_ - because a load replaces a bunch of properties on a MovieClip, including _visible. Take a look at the MovieClipLoader class, which dispatches a callback called onComplete when the clip is loaded. An alternative is to create a

Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Juan Pablo Califano
When you use loadMovie (or loadClip, for that matter), the target clip is replaced by the loaded clip (or swf) and loses all of its properties. So, when you do this: initLoader.loadClip(assets.swf, tmpContainer); tmpContainer will have all its default values reset. And so, _visible will be

Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Ali Drongo
Thanks Ian and Juan, I had forgotten about that! Cheers, Ali On 16 Sep 2008, at 17:25, Juan Pablo Califano wrote: When you use loadMovie (or loadClip, for that matter), the target clip is replaced by the loaded clip (or swf) and loses all of its properties. So, when you do this: