-
[F8] background music...
:P questions again
I've made several scenes and I want to include some background music.
Where should I put it in order to make it play continuously??
Flash newbie
Long Live The Black Parade
-
FK'n_dog
use the Flash Sound Object, details at -
http://www.kennybellew.com/tutorial/
-
Thx!
I'm reading it but I got a few questions...
does "same timeline" = "same scene" ?
and does "globally" includes all scenes?
Flash newbie
Long Live The Black Parade
-
FK'n_dog
does "same timeline" = "same scene" ?
when you are in the authoring environment, you can create many timelines,
the timelines of each Scene, and the timelines of each movieclip.
when the fla is compiled to a swf file, all layers in all scenes and movieclips
are flattened to become one layer, and all timelines are joined to become
one continuous timeline
and does "globally" includes all scenes?
"globally" does exactly what it says on the box
global variables are open to the scope of all
timelines in all movies in the Player session
-
thx!!! thank you for answering my questions
it really helps me a lot =]
Flash newbie
Long Live The Black Parade
-
FK'n_dog
you're welcome
Good Luck
-
Oh now I got another problem...
Because the game will jump from the first scene to the third one, the music will suddenly stop!!!
help.... :'(
Flash newbie
Long Live The Black Parade
-
FK'n_dog
hard to answer without knowing what you have done
my take would be -
create a new file - music.swf - import your wav/mp3 to the Library
and give it a Linkage ID - mySound.
add code to frame#1 to make a global sound object -
Code:
_global.sndtrack = new Sound(this);
sndtrack.attachSound("mySound");
sndtrack.stop();
in the main fla, load to a level and start the sound
you now have access to all of the sound object properties,
and the soundtrack will play across all Scenes -
Code:
loadMovieNum("music.swf",1);
vol = 50;
this.onEnterFrame = function(){
if(_level1){
sndtrack.setVolume(vol);
sndtrack.start(0,999);
delete this.onEnterFrame;
}
};
hth
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|