flash Q
- Started
- Last post
- 4 Responses
- ganon
trying to write the most concise code here, not sure of the best way to do it...i have a bunch of circle MCs that move in relationship to the cursor...no prob...what i need to do is fire an action, making a new unique MC appear when each circle falls into a specified xPos range...trying not to have an if() else if else if else if etc... should i push all the circle MC instace names to an array and talk to them from there?..thoughts...?
- ganon0
whatCha think...?
- Rufcut0
hard to say without seeing the actual movie.
Are you using a central Object Orientated script or are you just doing it all on the MC?
I'd probably use an Array and just update that:
myArrayMC][MC._x]]
or summit like that. and then:
for(n=0; n
- ganon0
all code is currently in the _root timeline...on _xmouse, a MC scrolls, which has a bunch of circle MCs in them, spaced out horizontally...when each circle MC gets near the center of the stage, i need to pull up a corresponding MC for each circle....
- Rufcut0
Right ok then
build your Array like this.
myArrayMC][linktoMC],[MC][linkto...
then check on each frame where each MC is, doing the for loop:
for (n=0; n