hi all,
not used flash for a while and my scripting is a little off...
what i am trying to do is this - i have multiple mc instances that move randomly around the stage - there is a movie clip on the stage named "area" that when an instance passes over it - it triggers a hittest and sends the instance to frame to - and back to frame 1 when not over "area"
i am trying to add "area2" to the instance go to frame 3 but can't get it to work...
this is the script inside each instance:
but i can't add the right script to recognise both "area" and "area2" - i can make one or the other work - but not bothPHP Code:
this.onEnterFrame=function(){
if(this.hitTest(_root.area)){
gotoAndStop(2);
} else {
gotoAndStop(1);
//actions go here
}}
any ideas to help put me out of my misery?
fingers crossed
;-)random_hit.fla.zip