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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic loadMovie help 1

Status
Not open for further replies.

frozenpeas

Technical User
Joined
Sep 13, 2001
Messages
893
Location
CA
Hey,

Can anyone see what I am overlooking here? The movie is not loading.

The files exist and I can load them normally with loadMovie("01.swf",1);

Code:
_global.screenOrder = new Array("01","02","03","04");
//var for screenOrder array count
_global.i = 0;
//load first screen
loadMovie(screenOrder[i]+".swf",1);
stop();

Thanks.

frozenpeas
 
pretty sure its starting the filename with a number and not a letter

try this instead

_global.screenOrder = new Array("x01","x02","x03","x04");

and rename the movies. i suspect it will work ok now
 
loadMovieNum rather than loadMovie!

Regards,

cubalibre2.gif
 
Although I agree, using numbers starting off a file's name is a bad idea!

Regards,

cubalibre2.gif
 
It works now. Thanks fellas.

frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top