Tazbo
02-17-2009, 11:49 AM
Hi Guys,
I am really new to actionscripting and I am trying to understand some actionscript but I am a little confused. My code is
var myArray:Array = new Array("a", "b", "c");
myArray.push("d");
myArray.push("e");
myArray.push("f");
var i:int;
for (i = 0; i < (myArray.length); i++) {
trace(myArray[i]);
}
What I am confused about is how the following code is broken down.
I know var = variable and i must be the name of the variable but after that I am so confused. Please help thanks
var i:int;
for (i = 0; i < (myArray.length); i++) {
trace(myArray[i]);
}
I am really new to actionscripting and I am trying to understand some actionscript but I am a little confused. My code is
var myArray:Array = new Array("a", "b", "c");
myArray.push("d");
myArray.push("e");
myArray.push("f");
var i:int;
for (i = 0; i < (myArray.length); i++) {
trace(myArray[i]);
}
What I am confused about is how the following code is broken down.
I know var = variable and i must be the name of the variable but after that I am so confused. Please help thanks
var i:int;
for (i = 0; i < (myArray.length); i++) {
trace(myArray[i]);
}