This content has been marked as final.
Show 1 reply
-
1. Re: Putting objects(Instance Names) Into an Array in Flash CS4
Ned Murphy Sep 15, 2009 1:08 PM (in response to Me2LoveIt2)You are not addressing the elements of the array, and I'm a little surprised that an array is allowed to be assigned a y value without any error. Try changing the function to loop thru the array as follows:
function gravityFUNC(event:Event):void{
gy+=gravity;
for(var i:uint = 0; i<moving.length; i++){moving[i].y+=gy;
}
};


