Flash .attachSound(); help.

Out of context: Reply #9

  • Started
  • Last post
  • 15 Responses
  • unknown0

    Ctrl_Z,

    you should declare you var name to be a sound object.

    MySoundObject=new Sound();
    //declaring new sound object

    MySoundObject.attachSound("LinkI...

    /* when you attach the sound from the library you need to set the linkage parameters. When you right click the sound in the library there is a linkage option. You should click Export for Actionscript and Export in frame 1. Also give that sound a name in the identifier field (LinkID as I used it in the code above.
    */

    MySound.start();

    Hope this helps.

    Cheers.

View thread