-
loadMovie question...
Can you define an object (jpg or swf for example) using variables within a loadMovie statement? Lets say I have jpgs called nav01.jpg, nav02.jpg...etc
Is there a way to say nav + "varx" +.jpg ? So, if say varx = 53 then nav53.jpg would be loaded. ???
-
sure ////just use the variable name as the jpg parameter in the loadmovie make sure you enclose the jpeg or swf name in parenthisis cuz the loadmovie parameter requires a string for example ........myVar = "myJpeg.jpg";
-
Yes there is. You just answered it but you wrote it backwards. :p Encase what you know is static in the name in quotes, and leave the variable without:
Code:
MovieClipLoader.loadMovie("image"+someNumber+".jpg", this);
-
Ok... I think I can apply this ...probably be back with some confusion :p but I have hope now. :hubba:
Thanks so much for the help!