A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: external sound problem

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    164

    external sound problem

    yo guys

    so we all know that when you have a sound test.wav in you library
    and the linkage for that sound is set to for example "test"

    then we would attach the sound to a sound object as follows

    soundobject.attachsound("test")

    so this works real nice

    i will call the movie with the sound in it 'movie A'
    now what i want is to load another movie using loadmovie

    loadMovie("sound.swf" , 1)

    so i want to load a flash 'movie A' into 'movie B'

    and inside 'movie B' i have a soundobject and i want to load the "test" sound from 'movie A'.

    i hope you still get this...

    so in 'movie B' i think i should do something like

    soundobject.attachsound("_level1.test")

    but that doesn't work

    can anyone help me with this ?!!
    does a 'linked' sound load with the swf if you use loadmovie ?

  2. #2
    Senior Member
    Join Date
    Jul 2002
    Posts
    461
    unfortunately you cannot attach sounds from another movies library, you can only attach sounds from the library of the current movie.
    movie1 can attach sounds (or clips) from the library of movie1 but cannot attach sounds or clips from the library of movie2 (even if movie2 has been loaded using loadmovie).
    Last edited by gaz_b; 11-23-2002 at 10:41 AM.

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