pashonit
05-22-2005, 09:47 PM
I am looking to do something like this:
Say I have buttons that have this script-
_global.page_to_open = "/about/";
(the "about" part is changed on each button to correspond with each button name (eg. biography, photos etc..)
and say I have this script on a certain point on the timeline:
getURL(_global.page_to_open, "_self");
This is all for getting the url of the button that is pressed to come up at the time I want it to. Is there a way to apply this kind of thing to a loadMovie situation? What do I change in the code?
The way I have my loadMovie linked currently is:
_root.contents.loadMovie("about.swf");
So I am looking to add code to each button that will open a swf file, specified to the button pressed, and I want to add a code to the timeline that it knows to open the swf of the button just pressed. Same idea as above but with swfs.
I have tried to play around with it but I can't figure it out. I hope I explained it well enough for someone to help me out.
Please help if you can. Thank you.
Say I have buttons that have this script-
_global.page_to_open = "/about/";
(the "about" part is changed on each button to correspond with each button name (eg. biography, photos etc..)
and say I have this script on a certain point on the timeline:
getURL(_global.page_to_open, "_self");
This is all for getting the url of the button that is pressed to come up at the time I want it to. Is there a way to apply this kind of thing to a loadMovie situation? What do I change in the code?
The way I have my loadMovie linked currently is:
_root.contents.loadMovie("about.swf");
So I am looking to add code to each button that will open a swf file, specified to the button pressed, and I want to add a code to the timeline that it knows to open the swf of the button just pressed. Same idea as above but with swfs.
I have tried to play around with it but I can't figure it out. I hope I explained it well enough for someone to help me out.
Please help if you can. Thank you.