[F5]Arg! For Actionscript Guru! Beginner needs help!

Hi every one, I’ve just read that note and did as u asked so help me pls ! :slight_smile:

I used the method explained here
http://www.kirupa.com/developer/actionscript/sound.htm
to create 2 buttons for sound: on/off, the problem is that I have 4 scenes in my flash movie an I want those buttons to be seen in every scene so that the sound keeps playing while the movie is still going on , any suggestion pls ?

Thanks in advance :slight_smile:
:flower:

scenes!?! i think most people don’t use scenes for these kinds of reasons. i believe it’s better to use frame labels or loaded swfs. that way you can put your sound stuff in a movieclip that can be placed anywhere.

but, perhaps you can make your sound stuff into a swf that loads in a level above your main content. so when your main content loads up, you’ll call your sound swf like this:

loadMovieNum("jukebox.swf", 5);

this is how I load my three streaming “songs” into level 5 and subsequently control them on my site, let me know if you need more clarification :slight_smile:

More clarification if it’s possible !(-:

Now should I put the sound in a separate swf ‘flash movie’ or just a movieclip? and above the level of my main contents means first thing in the movie, like the first scene at the top for example ? and then when u said that I can call it with the code u mentioned, is that for a button, but again where should that button go ?
Now after what u have said maybe I got this wrong but its an idea to put the sound in another flash movie that can be seen in the same html page, but I already have 2 flash movies in my page that I need to minimize, and to minimize the movie I have to minimize every thing in it also… I’m confused a little bit, should I just open the scenes and make them all as a one scene ? and whats the frame lable way , would it make it easier ?

lots of questions ! BUT I’D REALLY APPRECIATE IT !!
Thank u !

No problem. I’m not familiar with using scenes, but I think what I am saying will work.

The “sound” swf will not be a separate movie in the html page, it will be a loaded movie that will sit in a level above your main movie.

Let’s say that your main flash movie is called main.swf. This would be the content movie where you have the scenes architecture. Go ahead and create a movieclip for your sound buttons like the tutorial you mentioned, but just create the buttons and place them where you want (don’t code it yet). You just want to place the graphics where they should appear.

Once that is done, take the graphics, or movieclip of the sound graphics and cut them from the main.fla and place them into a new flash file. Make sure to save and name the new file something meaningful, say sound.fla.

Now you can go ahead and code the new sound.fla as in the tutorial. If you do this correctly, then the sound.swf should work just like the tutorial.

Once that is working, you’ll go back to the main.fla and place the code

loadMovieNum("sound.swf", 5);

in a blank keyframe in your “actions/labels” layer in the main.fla. I don’t know about scenes but I think it will work fine in the first keyframe of the movie.

Now, if you want the sound controls to be hidden and appear when a user clicks a sound or audio button, just make the sound.fla controls into a movieclip that has two frames, each with stop(); action. Place the sound graphics off stage in the first frame and have the “sound toggle” in the main.fla tell the sound.fla to _level5.audio_mc.goAndStop (2); (for example).

If you go to my site, you’ll see what I mean, just click the audio link and my “jukebox” will appear. Then click the close button or the audio link to close it. Now when you reopen it, it is still at the same volume and settings that you had selected beacuse it’s just a two frame movieclip in a loaded. It is not very sophisticated but I understand how to do this (barely).

If you want more details, just ask and I’ll post the fla on my site so you can get and take a look at it. It took me forever to figure this stuff out and I am glad to have finally found some really good resources like this forum. Sometimes it just feels like you are beating your head against the wall (sometimes!?! how 'bout most times!?!) :slight_smile:

For being so nice and helpfull ! I haven’t got time to try that yet, but I’ll do it and let u see it then :slight_smile:

Peace

no bother at all, please feel free to ask for help, these forums are such a great resource