-
Problem with sound on a button in Flash 8
I am using Flash 8 Pro and trying to play an mp3 on hit in a button. Everything worked perfectly in Flash MX but in 8 the action script is not working.
Original script is
on (press) {
stopAllSounds();
}
on (release) {
play();
}
now I get a message
are permitted only for button instances
on (release) {
I even named the button instance and still doesn't work. Any help would be appreciated.
-
Flash 8 still allows the same button handlers and that one is no exception. The only question left is the obvious one: are you sure you put the Actionscript on the button? maybe not that particular button but you're sure that all on(Release) handlers are on the buttons and none on a movieclip or timeline?
-
Thanks
I was able to find my mistake and everything worked perfectly. Thanks again. Deb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|