Suppose I have three different movie clips. mc_A, mc_B, mc_C
I want to have a rollover call a function that changes each movie clip. But I don’t want to type it out like this:
mc_A.onRollOver = function() {
Explode.newExplosion(mc_A);
};
mc_B.onRollOver = function() {
Explode.newExplosion(mc_B);
};
mc_C.onRollOver = function() {
Explode.newExplosion(mc_C);
};
I want to do something more like this.
mc_A.onRollOver = setNewExplosion();
//repeat the above for B and C
function setNewExplosion() {
Explode.newExplosion(this);
}
Above you will see that I used this, it made sense to me, but this always refers to the main timeline (root in my case). So how do I pass the name of hte clip I am rolling over to a function?
Thanks in advance,
-=GL=-