AS3: declaring variables in a for loop
AS3: declaring variables in a for loop
Out of context: Reply #8
- Started
- Last post
- 23 Responses
- Autokern0
ops, correct code:
for (var i:uint = 1; i<= 7; i++) {
var btn:Mainbtns = new MainBtn
btn.name = ("MainBtn" + i + "_mc")
}