loadsound() not working when movie is loaded in other

  • anujbux
  • Newbie
  • Newbie
  • anujbux
  • Posts: 8

Post 3+ Months Ago

I'm made a flash movie[main movie 1] where another movie is loading using the "loadMovie()"[this is the movie2] command.

my probblem is - when I'm trying to loadsound in to the second movie
Code: [ Select ]
var mySound1:Sound = new Sound(this);
mySound1.loadSound("music.mp3",true);
  1. var mySound1:Sound = new Sound(this);
  2. mySound1.loadSound("music.mp3",true);


When I play them seperately it works fine

but just when the first movie calling the second the it is not working.

and help Please???
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23457
  • Loc: Woodbridge VA

Post 3+ Months Ago

Try replacing the word "this" with the name of the movie clip.

See here for reference.
flash-forum/sound-not-working-t95852.html#p538498
  • anujbux
  • Newbie
  • Newbie
  • anujbux
  • Posts: 8

Post 3+ Months Ago

thankx for the help ANTO

it happend because of diferrent directories, no AS problems
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23457
  • Loc: Woodbridge VA

Post 3+ Months Ago

I see, the ever frustrating path problem. Glad you figured it out and shared what happened.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.