A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Attached sounds don't play when SWF is loaded externally

  1. #1
    Senior Member
    Join Date
    May 2006
    Posts
    119

    [RESOLVED] Attached sounds don't play when SWF is loaded externally

    Well, as the title states, I'm having this problem
    I am importing a swf that has attached sounds to it, but the attached sounds do not associate when the swf is loaded. The sounds on my timeline stay intact however.
    is there an attached sound import method??? or something?? I couldnt believe if flash was designed to not allow this. But I dont know what to do.

    Thanks for any help.

    Mark

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    119
    This is resolved, however I would like to post how I did it just incase anyone else has this trouble.

    when attaching the sound make sure you add "this" to the attach method

    ie:
    Mysound = new Sound(this);

    it was that simple. so if you have yourself set-up like this.

    Mysound = new Sound();
    it wont work

    cheers.

    Mark

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