View Full Version : Music on site
nbsbasketcase
07-16-2005, 01:29 AM
Sorry about all the threads.. but I have another problem I use my pages in scenes.. that's only because I didn't know another way..
But when you click the off button, it goes off, but when I goto the next page (again, they are scenes) the music turns back on..
sound_status = "OFF";
theVol = 100;
sound1 = new Sound();
sound1.setVolume(theVol);
music.gotoAndPlay("loop");
stop();
This is the action code for the loop.
Any idea's on what I can do?
Hi,
I have a couple of rants about using scenes spread throughout this forum.
Scenes are notorious for dropping variable values and having to switch back and forth between scenes to edit makes editing much more tedious.Something that will help in organizing future projects is to learn the power of the movieclip. A movieclip is essentially a self contained scene. It has it's own properties and independent timeline. There is nothing that can be contained in a seperate scene that cannot be contained in a single, more portable, movieclip. Using movieclips to hold content instead of scenes allows you to put all conent in a single scene.
With that said, a fix for your current problem might be to use a global variable to define the sound status. Global variables should work better when using scenes.......
_global.sound_status="Off";
nbsbasketcase
07-16-2005, 11:46 PM
Hi, that didn't work, you know how you said you have frames in movie clips..
Well I halfway understand how it works..
Like my button to turn the music off and on is a movie clip, it turns off and on in the page good, but when I click another scene.. it starts.. maybe it could have something to do with my actions for each screen..
stop();
fscommand("allowscale", "false");
is my only actions for the scenes
Plus a stop function at then end of every scene..
Also.. any tips for making full content pages..link together in once scene, cause it amazes me on how many problems I have when I try..
Like I did it once, changed all my scenes to keyframes, it didn't do to well, some links worked, some didn't.. and they got scrammed.. like news would goto home and what not.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.