Vivek,

The 'dropBtn_txt.text = myName' is only a place holder to hold the name of the subMenu button being clicked into an off stage text field. The 'showcase.swf' uses this value together with the content of another off stage field (thisName) to build a path to external data it uses to build the relevant display

I have a number of menu items created dynamically which, when clicked create a dropdDown menu with a range of items depending on the external data. 'thisName' is the label of the menu item that, when clicked, creates the dropDown menu and myName is the label of the dropDown button.

This is as clear as I can make it.

Because I have to load and unload things while ate the same times having to sert and unset booleans, I have gone trhough teh code with as fine a toothcomb as my brain can master but here i am, tearing off the last of teh few hairs remaining on the top of my head. I have bebugged the whole lot as I was building it up but strange thing, a trace inserted just after the dropBtn_txt.text = myName, does not output anything and my brian is so very dead at the moment (looooong day)

^_^

JohnT


vivek wrote:

-----Original Message-----
From: John Trentini [mailto:[EMAIL PROTECTED]
Sent: Monday, June 11, 2007 4:10 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Swf not loading at run time

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; *// what is the use of this step? Below you are using “myName” what is the value of 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

_______________________________________________

Flashcoders@chattyfig.figleaf.com

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


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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