Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- Similar Variable Names


MartinWeb - 3:19 am on Jan 26, 2010 (gmt 0)


Hello. Does anyone know how to have flash Action Script check for movieclips with similar names? Here is an example:


if(movieclip1._y==theothervariable){
}
if(movieclip2._y==theothervariable){
}

But condensed similar to an array?:

var checking = 1;
while (checking<3){
if(movieclip[checking]==theothervariable){//This is the part that I am not sure on.
//The other code
}
checking++;
}

Any help would be greatly appreciated!


Thread source:: http://www.webmasterworld.com/flash/4067821.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com