Hi,
I have a flash movie where I make several duplicate movies using this code:
for(i=0; i < 5; i++) {
duplicateMovieClip(_root.clover, "clover"+i, i);
}
In the actions for my “_root.clover” movie clip, I have the following:
onClipEvent (enterFrame) {
this._x +=1;
this._y +=1
}
Is there anyway I can pass the current movie clips to another outside method and perform actions on it instead of referencing it from inside the movie clip?
For example,
onClipEvent (enterFrame) {
_root.outsideMethod(this);
}
and have this excecuted in an outisde method:
outsideMethod = function(movieClip) {
movieClip._x +=1;
movieClip._y -=1;
}
Where movieClip could be any random variable, not the name of the movie clip.
Any thoughts?
Any help would be greatly appreciated.
Thank you for your time!