Skip to main content
Participant
March 15, 2007
Question

Putting a rollover handler on a MC using duplicate

  • March 15, 2007
  • 1 reply
  • 200 views
Hello!

I'm trying to duplicate a dot shaped mc and place it using x and y values from an array. So, I do a for loop going through the array and it places the dots. But, I'd like to rollover each movieclip and be able to refer to other pieces of information in the same array element. How can I rollover the mc and have it 'remember' its iteration number? How can I store it somewhere?Am I thinking aobut this the wrong way?

Any help would be much appreciated!
This topic has been closed for replies.

1 reply

Inspiring
March 15, 2007
Try this. You'll need a "dot" movieclip on your stage with an instancename of dot.

I've just created a quick array with x & y coords in it, plus some extra data (colour). This duplicates the original and attaches a trace function to rollover and rollout. It also shows how each MC retains it's "own" colour.

I think this is what you were after....

Phil