This is a function that creates my button rollovers. My 3 MC’s have instance names of myClip1, myClip2, myClip3.
here is the fucntion:
[AS]
myClips = [myClip1, myClip2, myClip3];
for (i=0; i<myClips.length; myClips++) {
myClips*.onEnterFrame = function() {
var hit = this.hitTest(_root._xmouse, _root._ymouse, true);
this.gotoAndStop(this._currentframe+hit-!hit);
};
}
[/AS]
The first one works but the next two jsut flash. any ideas?
Are you sure you have the correct instance names in the array and/or assigned the correct instance names to the clips? (not that there would be any reason you wouldn’t, but thats what it seems like to me).
I even made a example SWF and re tested the code and the same results. Ya the isntance names are bang on cause i copy and pasted them this time. THere are exact and it aint working.