A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Playing external SWF sound

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    Playing external SWF sound

    I imported an SWF movie onto my stage and it plays an mp3. I also have a couple buttons in the imported movie, one to stop the sound and one to play the sound. The play sound, however does not work.

    Frame 1:
    Code:
    tune = new Sound();
    Frame 2:
    Code:
    tune.attachSound("comeFly");
    stop();
    and on the play button:
    Code:
    on (press) {
        tune.Start();
    }
    I've also tried _root.tune.Start(); as well as putting the first two frames together.

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    tune.Start();

    try lowercase start

    tune.start();

    also make sure you added the linkage ID "comeFly" for the sound in the linkage dialog box.

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57
    I found this excellent tutorial on FlashKit. I was able to do everything I wanted and more.

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