Ultrashock Forums > Flash > ActionScript
Append a string to a variable in for loop

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Append a string to a variable in for loop
Old 2008-02-20

I need to craete an new instance of the class newloader within each run of the for loop. The easiest way would be to add the value of j to the end of the variable, how can I do this?

Code:
for (var j = 0; j<array.length; j++){
		var newloader:LoadImage = new LoadImage();
		newloader.loadit(array[j].imageURL);
		}
Thanks!
postbit arrow Be the first to comment! | 239 views postbit arrow Reply: with Quote   
Registered User
bob_300 is offline
seperator
Posts: 71
2008-01-20
seperator
Thread Tools
Display Modes Rate This Thread
Rate This Thread: