2008年1月10日 星期四

Stop & Play Button

Play & Stop Button

This is simple btn to do stop and play in Flash. Enjoy it. * how to add sound in btn? will demo it later :)




ActionScipt :
stopbtn.onRelease=function(){ _root.gotoAndStop(2);}
playbtn.onRelease=function(){ _root.gotoAndStop(1);
}

FREE download sourceCode : http://swfsolution.googlepages.com/stopandstartBTN.fla

1 Comment:

匿名 said...

Hi!

Your tutorials are pretty useful and dynamic, they are really helping me a lot.

I was wondering if you know how to make a special action in flash, I want to do a catching doll machine game in flash, but I don't know how to make that when the claw is in teh same possition as the price (a teddy bear), flash recognize this possition, and make the user win.

The game logic is first insert a coin to start the claw moving, then using the controls move the claw and the press the down button so the claw moves down and try to catch the bear, what I cannot archive is IF the claw is in XY possition, AND this possition is the same as Teddy, THEN user wins.

I hope you can help me to archive this, I will be thanksful.

Drop me a line charlieargueta [a] gmail . com

Thanks in advanced