Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActionScripting-Loading Movies using variables 1

Status
Not open for further replies.

Kirderf

Technical User
Oct 4, 2000
183
US
Here is one that is stumping me.

I have 8 different movies to load using 8 different buttons.
example: "floor1.swf","floor2.swf"...

The problem is that on(release){ I am setting a variable
example: floor="floor1.swf"
then I am targeting an animation of doors closing.
At the end of the doors closing I am calling the load movie
loadMovieNum(floor,1);

What is the proper way to do this? I am so close here.
Thanks


I'd gladly pay you on Thursday
for a hamburger today!
 
That should work!
If it doesn't, you might try using a global variable rather than a local one...
Thus try _level0.floor rather than floor alone, and allways set it or read it that way...

on(release){
_level0.floor = "floor1.swf;
// doors play
}
At the end of your doors...

loadMovieNum(_level0.floor,1);

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top