Hello, I'm trying to make a particle generator (per-say) in flash. I'm trying to copy the menu from a game called nox, if you don't know what I'm talking about, it doesn't matter. I have a looping movie creating particles. The script looks something like this:
t += 1; //t is for time
_root.attachMovie("particle", "particle" + t, t); //creats new particles with the name particle1, particle2, particleN
if I wanted access these particles, how would I do it? You can't just say (from inside a movie):
_root.particle + t._x = 100; //this doesn't work
I also tried useing a variable such as:
nameOfParticle = "particle" + t;
_root.nameOfParticle._x = 100; //doesn't work either
so my question is, how can I access a movie using the value of a variable (or some other way). Thank you.
-ben
t += 1; //t is for time
_root.attachMovie("particle", "particle" + t, t); //creats new particles with the name particle1, particle2, particleN
if I wanted access these particles, how would I do it? You can't just say (from inside a movie):
_root.particle + t._x = 100; //this doesn't work
I also tried useing a variable such as:
nameOfParticle = "particle" + t;
_root.nameOfParticle._x = 100; //doesn't work either
so my question is, how can I access a movie using the value of a variable (or some other way). Thank you.
-ben