Flash levels and sound

Page 1 of 1

0 Replies - 1461 Views - Last Post: 29 May 2007 - 06:55 AM

#1 lyn_del   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-May 07

Flash levels and sound

Posted 29 May 2007 - 06:55 AM

I have just started using sound in my Flash movies and am experiencing the following problem.

I have a base movie at Level 0 with a menu that calls other movies in a predefined area. The buttons have the following code: e.g.
on(release) {
stopAllSounds();
LoadMovieNum("AlginatePrep.swf",1);
}
These .swfs come in at Level 1.

The individual movies coming in at Level I have sound and video and buttons to pause action/video/sound. If the .swfs are played on their own they perform properly. There is a pause button:
on (press) {
stop();
if (playing!=true) {
myVoicePosition=_root.sound_cont.position/1000;
_root.sound_cont.stop("Slide13");
playing=true;
myVideoPosition=_root.myalginategel_mc.position/1000;
_root.myalginategel_mc.stop("myalginategel_mc");
}
}
and a continue button:
on (press) {
nextFrame();
play();
_root.sound_cont.start(myVoicePosition,0);
_root.myalginategel_mc.play(myVideoPosition,0);
playing=false;
}
The sound is imported (mp3) and appropriate linkage set up. Code for the sound is on frame1 on its own layer:
var sound_cont:Sound;
sound_cont = new Sound();
sound_cont.attachSound("Slide13");
sound_cont.start();

My problem is that when you play the base movie and call the individual movies by clicking on the menu everything works except the sound. The .swf plays and I can start and stop it and I can stop and start the embedded video in that .swf, but I can't hear the sound. I've found the only way to hear the sound (and stop and start it ) is to import the sound again into the base movie.

So the sound is imported once in the base movie and once in the individual movie and this doesn't seem right. It also makes the base movie very large as it has to have all the sound clips from each movie.

Am I using linkage in the wrong way? Should the sound be a movie clip? (I tried this but couldn't get this to work).

I'd be grateful for any suggestions.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1