A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Problem with sound on a button in Flash 8

  1. #1
    Member
    Join Date
    May 2000
    Posts
    34

    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.

  2. #2
    Senior Member
    Join Date
    May 2005
    Location
    Brooklyn, NY
    Posts
    129
    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?
    Best of luck
    -Sergio

  3. #3
    Member
    Join Date
    May 2000
    Posts
    34

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center