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 parent container for the loading clip,
and set that parent _visible=false;
HTH,
Ian
On Tue, Sep 16, 2008 at 5:11 PM, Ali Drongo <[EMAIL PROTECTED]> wrote:
> I have no idea why this isn't working. I have created a container movieclip
> then set it's visible property to false in a number of ways. I can only hide
> the mc if I change the alpha but I need the clip to have no visibility so
> the user can't interact with the buttons on it.
>
> Any suggestions as to what I'm doing wrong thankfully received.
> Thanks,
> Ali
>
>
>
> private function loadInitialAssets():Void
> {
> //create assetsHolder on main timeline and make invisible
> var tmpContainer:MovieClip =
> rootMC.createEmptyMovieClip("linksMC", display.getMCDepth("linksMC"));
>
>
> //none of these work!
> rootMC["linksMC"]._visible = false;
> rootMC.linksMC._visible = false;
> tmpContainer._visible = false;
>
> //set object in display
> display.setLinksMC(tmpContainer);
> initLoader = new MovieClipLoader();
> initLoader.addListener(preLoader);
> //swap depths with loader
> tmpContainer.swapDepths(preLoader);
> initLoader.loadClip("assets.swf", tmpContainer);
> }
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders