PDA

View Full Version : MC react on MouseClick.


omega10mg
07-31-2003, 10:01 PM
ok.. so.. i want a MC to go to frame 5 in it self when its clicked.

i did this:

onClipEvent (enterFrame) {
if (onMouseDown) {
this.gotoAndPlay(5);
}
}

but it wont work?

skee
07-31-2003, 10:10 PM
try this

onClipEvent (load) {
this.onMouseDown = function() {
gotoAndPlay(5);
};
}


skee

omega10mg
07-31-2003, 10:15 PM
did not work.. someone else?

silvernapalm
07-31-2003, 10:16 PM
in MX you can apply button behaviors to a mc
on(release){
gotoAndPlay(5);
}

otherwise

or

onClipEvent (mouseDown) {
gotoAndPlay(5);
}

or

this.onMouseDown = function(){
gotoAndPlay(5)
}

skee
07-31-2003, 10:45 PM
omega,
it does work if you are using MX, which I assume you are not?

omega10mg
07-31-2003, 10:59 PM
i am using MX, and i finnaly made it work.. thanx all! thanx! :)