PDA

View Full Version : Very Simple Question, Please Help!



DanDaMan
March 5th, 2008, 08:12 PM
Okay, I am new to Flash, and for some reason or another I cannot seem to get this simple function to work. I made this button, and set the function stop(); so that the video doesn't play. Now I want it so that when you left click the button, you will play the video. I used this code:

stop();
onMouseDown= function (){
gotoAndPlay(2)
}
But it doesn't work. Can someone please help me out? Thank you in advance!

dail
March 5th, 2008, 10:28 PM
Thats actionScript 2, are you trying to do this using actionScript 2 or 3?

DanDaMan
March 5th, 2008, 10:44 PM
OOOOOOOOHHHHHHHHHHH!!!!!!!!!!!!!! I feel like such an idiot right now! How would I do it in ActionScript 3.0? Sorry about the mixup...

xohol
March 6th, 2008, 02:14 PM
stop()
mc.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownFunction);
function mouseDownFunction (e:MouseEvent):void
{
trace ("mouse down");
}
where as mc is a clickable object

DanDaMan
March 6th, 2008, 04:20 PM
Thanks so much!