Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsHello flash pros!
I need help with a simple button.
I have a cow button prepared, and also a MOO sound:
All I want is the cow to go MOO when I click the button, not when I pass the mouse over the button, but when I click it.
I suppose I need to write an On release action.
Can you help me? I'm taking my first steps on action script
What version are you using? AS 2.0 or 3.0?
See if this helps:
http://www.kirupa.com/developer/actionsc ript/sound.htm
It is a full tutorial that will likely help you, rather than just code. If that doesn't work, I guess reply again so someone can give you direct code for your situation. I hope that helps!
Thank you very much for the link. But I'm afraid I'm looking for something slightly different.
I want the cow to say MOO only once, when clicking the button. Then, if you click it again, it will go MOO once more, but not in a loop.
If you read the description of why the code does what it does, it explains how to not loop it. That's why I didn't just paste in the code, so you could see why it does what it does. If you want the straight up code, someone else can probably write it for you. I figured understanding it would do more for you in the future than just copying code. Up to you, though.
Good luck.