By the way,
you might want to loop up the MovieClipLoader class, which is somewhat very useful ;)
I personally recommend you this technique.

var mclListenerObj = new Object();
mclListenerObj.onLoadInit = function (target_mc:MovieClip) {
        trace("loaded "+target_mc);
}
var mcl = new MovieClipLoader();
mcl.addListener(mclListenerObj);
mcl.loadClip("showcase.swf", showContainer_mc);

Lookup MovieClipLoader in the Help files. You get a list of all available events (onLoadStart, onLoadProgress, onError, ..)
and more ;)

hth,
Cedric

NP, did not see :P
So here is a copy of the reply I sent to your personal email for everyone to rejoice :)
******
try
loadMovie("SeaBounty.swf", showContainer_mc);
and
loadMovie("showcase.swf", showContainer_mc);

Seems subtle, and is **abstract**, but loadMovie is either a global function, or a method of the MovieClip object. When calling myMovieClip.loadMovie("bob.swf"), you simply override all the movieclip's parameters and properties. Consequently, after the first showContainer_mc.loadMovie(...), showContainer_mc.loadMovie's method gets deleted, overriden by the new SWF being loaded at its place. So when you try to call the method the second time (else statement), it isn't there anymore. By simply calling loadMovie("showcase.swf", showContainer_mc); (without the myMC.loadMovie notation) and passing the link reference (1st argument) and the container reference (2nd argument), you get the new content everytime you want (or need).

Hth,
Cedric

Cedric, sorry I think I have sent my ealier reply to your personal email address, my apologies
here is the code I use:

dropBtn.onPress = function() {
      //make the showContainer_mc visible
      showContainer_mc._visible = true;
      dropBtn_txt.text = myName;
      //trace(thisName);
if (myName == "sea bounty" && thisName == "brand development") { showContainer_mc.loadMovie("SeaBounty.swf"); // this call works, sgtrtangely enough
      } else {
showContainer_mc.loadMovie("showcase.swf"); // this one is the one that does not work
      }
      loaded = true;
      removeDropMenu();
  };
The DropBtn are created dynamically and i make the fucntion call from the constructor.

Cheers
JohnT
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to