Looking for a CS5 or CS5 .5 file that has a single Flash Button that will play a list of random sounds from library when clicked. I have searched all over for this, plus have tried writing it myself, but am having errors….
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
What errors do you get?
Hello, Here is what I have:
var soundFiles:Array = [“sound1.mp3”, “sound2.mp3”, “sound3.mp3”, “sound4.mp3”, “sound5.mp3”];
function playRandomSound() { var my_sound:Sound = new Sound(); my_sound.attachSound(soundFiles[random(soundFiles.length)]); my_sound.start(); }
myButton.onRollOver = function () { playRandomSound(); }
I have the above code in the first frame on the timeline. I have a button called myButton. The mp3’s are linked from the library via AS3 . I keep have errors. What are your thoughts?
I would be willing to pay you or someone to help me with this. Should be simple, but I am having trouble with it.
Thank you, Mike
- Has been a member for 4-5 years
- Author was Featured
- Contributed a Tutorial to a Tuts+ Site
- Netherlands
- Community Moderator
- Microlancer Beta Tester
- Sold between 10 000 and 50 000 dollars
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Exclusive Author
I’ll gladly have a look at it
Send me a message via the contact form on my profile
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Send me an email with your budget if you like.
