A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: SOUND not working in buttons FLASH MX

  1. #1
    Member
    Join Date
    Nov 2000
    Location
    New York, New York
    Posts
    64

    SOUND not working in buttons FLASH MX

    Hey Kids-

    Hoping someone can help...

    I'm trying to add sounds to musical notes as buttons in a flash MX movie... When I enable buttons in the fla file it works fine - when I xport however - I get no sound...

    What's the story... I have put the sound file into the over stage of the button in the file ... It seems like this should work... But for some reason it's not.... I'm not super saavy with action scripting so wouldn't have a clue as to how to make these work using scripting unless someone could possible walk me through the process?? Any suggestions??

    I put the swf online -so you can view it at http://www.little-bohemia.com/swfs/kenny.swf

    THe buttons that are supposed to be conjuring sound are the music notes on the left hand top of page....

    I"ll be more than happy to send the fla file to anyone who thinks they might be able to offer some assisstance....

    Thanks so much I'm beginning to feel a bit like Johnny Cash with these buttons being "what torture me..."

    Cheers,
    s

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    First, edit each button and add a shape in the Hit Frame to give your button a correct "hot spot", ( hit frame stays invisible in the movie), your button is only responding to the graphic shape at the mo.

    i would take the sounds out of the button timeline.
    open the Library and give each sound a Linkage Identifier.
    and use the sound(object) on the button actionscript,

    on(rollOver){
    s =new Sound(this);
    s.attachSound("IDname1");
    s.start();
    }

    hth

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    New York, New York
    Posts
    64

    YOU ARE A GENIUS!

    YOU ARE A GENIUS! I Love you I LOVE you I LOVE YOU!!

    Thank you so much !! It works like a charm - You are a flash giant - I don''t care what anyone else says about ya!!

    I searched for tutorials explaining this but they were all really complicated (for an actionscripting lame-o such as myself....)... perhaps you should write one...

    Many thanks-

    S

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    http://www.kennybellew.com/
    this is an excellent reference for working with Sound Objects,

    my _dog thanks you Much-ly for your Love,
    he's so happy he's spontaneously combusted,
    a useful tip : never pet a burning dog

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