Flash .attachSound(); help.

Out of context: Reply #13

  • Started
  • Last post
  • 15 Responses
  • unknown0

    I don't what is wrong with your Flash but this is what I did and it worked right away:

    1. Created the circle shape

    2. Made a movie clip out of it
    It works fine with button instance too

    3. Imported the sound into the library
    4. Linked the sound with Linkage options (Export for AS + Export in First Frame) and gave the name "testsnd"
    5. Opened actions on the circle mc
    6. typed following code:

    on (rollOver) {
    r = new Sound();
    r.attachSound("testsnd");
    r.start();
    }

    on(rollOut) {
    r.stop();
    }

    7. everything worked mate

View thread