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 true, not false.

An option is nesting the target clip inside another empty clip and set the
visibility on the parent.

+ root
     +  holder_mc
         +  targetClip_mc

holder_mc._visible = false;
holder_mc.targetClip_mc.loadMovie("etc"); //or use loadClip

Cheers
Juan Pablo Califano



2008/9/16 Ali Drongo <[EMAIL PROTECTED]>

> 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
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to