A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [F8] Now u hear it.. now u dont :(

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Location
    New York/London
    Posts
    367

    [F8] Now u hear it.. now u dont :(

    ok.... so its a problem with sound...

    in extMC I have this code

    Code:
    var my_sound:Sound = new Sound();
    my_sound.attachSound("camera_polaroid");
    // a button then does this...
    my_sound.start();
    extMC.swf is then loaded into mainMC.

    when testing extMC, the sound works...
    when testing mainMC after it loads extMC. the sound doesnt work

    anyone know why? is there some AS that is missing when the sound is played from an externally loaded mc?

    Thanks in advance....

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    try putting the sound in the main movies library... and test it
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Location
    New York/London
    Posts
    367
    yeah ,, i thought of that while i was driving home... im going to put the audio in the main mc and have it export for runtime sharing... then in the extMC Im going to have it get the audio from the shared library... hopefully it will work!

    thanks

  4. #4
    Senior Member
    Join Date
    Jan 2003
    Location
    New York/London
    Posts
    367
    yup.. that did the trick

  5. #5
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    cool
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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