AS 2,
trying to put this into a loop:

Actionscript Code:
ship1 = {}
ship1.health = 0
ship2 = {}
ship2.health = 0
ship3 = {}
ship3.health = 0

i tried

Actionscript Code:
for(var i; i <=5;i++){
    this["ball"+i] = {};
    this["ball"+i].alive = 0;
    }
(Highlight isnt working T_T)
but using this["ball" + i] when trying to create an object made my computer freeze when i started the script, iv tried a few adjustments and i still cant figue it out T_T