Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Flash General

temporarily remove movieclip


Hi,
 I am using 2 movieclip loaders to load external swf pages - both mc's are in
the same location.
 I want one to disappear while the other loader is being used.  
 I've tried using visible and enabled, but this doesn't remove the mc.
 When I try and reload a page that I've already been to, it just appears,
instead of animating in, since I've hidden it, not removed it.
 What code do I need?  Help please!
 Thanks.

 menu_one_mc.onRelease = function() {
        stick("menu_one_mc");
        myLoader.contentPath = "HOME_TEST.swf"
          myLoader._visible = true;
          loader2_mc._visible = false;
 };

 menu_two_mc.onRelease = function() {
        stick("menu_two_mc");
        loader2_mc.contentPath = "BIO4.swf"
        loader2_mc._visible = true;
        myLoader._visible = false;
 };

How about this:

 instead of: myLoader._visible = false
 you try: myLoader.visible = false;

 if that doesn't work what about positioning it someplace where noone can see
it?

 like this: myLoader._x = -10000;
 myLoader._y = -10000;

 Cheers
 Gorka

-----------------------------------------------Reply-----------------------------------------------

thanks for the reply.
 the visible line of code is working, but I want the movie clip to "reload"
when you go back to the page, not just appear.  That's what is happening now,
since it was already loaded, then it was just "hidden".  Does this make sense?
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc