dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Sound on button!!

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    15

    Sound on button!!

    Hello people I don't why my code does not work on I click on it that have no sound I checked my linkage name is all correct and the file is in library too here the code can someone plss correct the code for me thanz alot~~btw is a button I wanted it to click on it and the sound would play..

    on(press)
    {
    mySound = new Sound();
    MySound.attachSound("beat1");
    }

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    You must call Sound.start to start playing the sound.

    on(press)
    {
    mySound = new Sound();
    MySound.attachSound("beat1");
    MySound.start();
    }

  3. #3
    Junior Member
    Join Date
    Jun 2006
    Posts
    15
    But it still never work I copy and paste the code u give but when I play the movie I press on it still does not have any sound

  4. #4
    Genesis of creative reflexes.. mysticpixels's Avatar
    Join Date
    Jan 2005
    Posts
    163
    Make sure tat ur sound in library is having the id as beat1...just trying to confirm
    • Innovative Websites - (Flash/HTML-CSS)
    • Flash Intros/Animations
    • Interface/Layout Designing/Logo Designing

  5. #5
    Junior Member
    Join Date
    Jun 2006
    Posts
    15
    yup it works thank for yr help!!

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