Master file that load other swf files HELP

  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

Hi i have a master file of flash that can load other swf files
For example the other swf files is montage.swf, main menu.swf, gamemenu.swf and game_dodge.swf
So in master file the first frame is the montage then the main menu and so on
when the montage plays the user can skip and go to main menu
in the montage frame is this code
Code: [ Select ]
stop();
var myLV:MovieClipLoader = new MovieClipLoader();
myLV.loadClip("Montage.swf", 1);
  1. stop();
  2. var myLV:MovieClipLoader = new MovieClipLoader();
  3. myLV.loadClip("Montage.swf", 1);


how do i stop the montage bg sound when user goes to main menu
main menu frame 2
Code: [ Select ]
stop();
myLV.loadClip("mainmenu.swf",2);
  1. stop();
  2. myLV.loadClip("mainmenu.swf",2);


help someone !!!!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ibrabdo
  • Novice
  • Novice
  • User avatar
  • Posts: 29

Post 3+ Months Ago

try this :
Code: [ Select ]
flash.media.SoundMixer.stopAll()
  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

where do i put the code i mean in which file the master? or the main menu or montage ? sorry i'm really confuse
How about if i wanna stop the montage song when it comes to main menu and start the main menu song when it is in that page?


HELP MUAH !!!!!!!
  • ibrabdo
  • Novice
  • Novice
  • User avatar
  • Posts: 29

Post 3+ Months Ago

First I'm not sure what actionscript version you're using but I'm gonna write the code in actionscript2.
Try to load all the sound files in the master files
The first frame is empty:
Code: [ Select ]
var montageSound:Sound = new Sound();
var menuSound:Sound = new Sound();
    montageSound.loadSound("montage.mp3", false);
    menuSound.loadSound("menu.mp3", false);
  1. var montageSound:Sound = new Sound();
  2. var menuSound:Sound = new Sound();
  3.     montageSound.loadSound("montage.mp3", false);
  4.     menuSound.loadSound("menu.mp3", false);

The second frame contain the montage.swf :
Code: [ Select ]
stop();
_root. menuSound.stop();
_root. montageSound.start(0,999);
  1. stop();
  2. _root. menuSound.stop();
  3. _root. montageSound.start(0,999);

The third frame contain the mainmenu.swf :
Quote:
stop();
_root. montageSound.stop();
_root. menuSound.start(0,999);

It should work this way.
  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

OH MY GODDDDDDDDDDDDD THANKS ALOT MUAHHHHHHHHHHHHHHH u are a my superman i swear LOL
  • ibrabdo
  • Novice
  • Novice
  • User avatar
  • Posts: 29

Post 3+ Months Ago

You're Welcome.
  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

I have another problem

Well in my main menu i have put a volume slider for main menu and game menu. And the slider code won't work if i remove the menusong.mp3 from that file. So now the song plays from the master file but the slider dosen't work

Another problem is that for example the main menu.swf is in frame 3 and the helppage.swf is in frame 6 (in master file). The problem is when i click back btn in help page to go back to main menu.swf it dosen't display the page but the sound changes. if the user is viewing the helppage.swf when the mouse the mouse around the buttons from main menu seems to be there. .....PLZZZZZZZZZ help

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 18 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.