Sound in background?

If you just want one thing repeating I don’t see why putting the sound in at the beginning on a new layer and looping it x 999 would be affected by any other buttons.

There is something that I’d like to know however. I don’t want sound to come in at the beginning I want three buttons each with a separate loop assigned to it, and a fourth with ‘off’.

I know each button needs to have a stop all sounds to stop them repeating over each other. I know the off needs a ‘stop all sounds’. But - I don’t want to use goto commands because that will screw up other things in the site. I know then that I need to use tell targets or maybe insert the loops into the buttons themselves - anyone know how to do this?

Ypu don’t ahve to have a stop all sounds. Make three separt
swf’s with jsut your sounds looping in it. Have the code in your buttons unload layer 99 or what ever layer then load aone of your sound swf’s into that layer. Put this same code on each button and just change the swf you load. Your sound off button will just unload the MC in layer 99.

on(release){
unload(99);
loadmovie( “sound1.swf”,99);
}

If you would like me to post the exact code I can do it in 7 hours after I get of work.

Response time 6 minutes - that’s better than the emergency services.

I’ll just have a look at that.

Ya see on your Urban Scrwal Web site you have a stop all sounds action on your off button right? What this does is kill the sound and you can’t turn sound back on untill you reload the whole site. What the other script I posted does is give you the option to turn it back if you choose. If the pseudo code I posted dosn’t work I’ll post the real code after work. Hope you get it working:)

Having a few probs there - when you say a separate swf, do you mean an entirely different swf file ie, file-new etc. how will the site access it?

Truly appreciate the help.

Oh - by the way, how do I embed an image as a signature instead of the text signature link to my site?

You got it. There will be a entirely different swf for each sound. There two actions loadmovie and unload movie you can use in your buttons to load and unload different sounds. This technique is also great because you don’t have to have a layer for your sound. When it loads into the layer number you specify it plays until the loops run out or you click for a different sound. I’m at work right now but if you can hang tight for another 4 hours I can have the code posted for ya.

By the way nice site did you make it yourself?:slight_smile:

PS The have a picture as you signature you just use HTMl tags
This is the code I have in my signature

(there shoud be a square bracket here)swf=“http://www.theiquake.com/scott/tiekiller.swf height=60 width=300”][/swf]

Just change SWF to img and suround it with a Href i think.:slight_smile:

Here is the exact code for your buttons:

on (release) {
unloadMovieNum (99);
loadMovieNum (“track1.swf”, 99);
}

Change the swf for the different tracks

For your off button just use:

on (release) {
unloadMovieNum (99);
}

If it still dosent’ work I’ll make you a quick FLA so you can see how it works.

:slight_smile:

Hey, thanks for ur help and guidance, i really appreciate it!
I was just wondering if it is possible if u send me a simple fla, it will make it much easier to understand, what we are trying to express here!!!

I have a feeling you have to press a button to activate the sound, what i want is the sound to play automatically, soon as the flash site loads up, but anyway we will deal with that later, can u plllsssss send me a simple fla, and maybe after we can figure out the rest???

Im still cant c how bringing in the sound as a seperate swf will continue to loop, despite hitting other buttons…but anyway…

:stuck_out_tongue:

Ya i’ll make you up something. If you go to this site http://www.theiquake.com/ you will see how I deal with sound. This site does load one loop off the start and that loop plays no matter where you go throuhg out the site. If you want a differnt loop you just select the differnet tracks at the top. You can also turn off the loops and then turn them back on. Clicking a navagation button has no effect on the sound.

PS. The site might take a little while to load. It was the first thing I built in flash before I knew all the ways to keep file size down.

okay I have the swf’s in the same file separately - but it doesn’t appear to be loading them. It is an empty layer that I am attempting to load them from, the names definitely correspond - just nothing happens when I click on the button with the code.

Any clues as to what could be up amigo?

Do I need to give a full file name or url or something??

If all the swfs are in the same file then you shouldn’t have to ahve more than titlename.swf in the load script. Also the layer that you load the sounds into doesn’t have to exist on the main time line. For the layer number just put in a high number like 99 or 999. If your number is to low you might load something on top of it and lose your sound. I’m making a quick example so just hang tight and I’ll have some thing for you to look at soon.

Here you go the sintax321 sound system. It is very basic but it shoud show you what you need to know. Just post if you need a hand with it.:slight_smile:

Here you go the sintax321 sound system. It is very basic but it shoud show you what you need to know. Just post if you need a hand with it.

It is a pretty big zip file so I’ll only be hosting it for about 4 days so please download it ASAP and give me a message when you have it. Have Fun

http://www.sintax321.com/soundcontrol.zip

Thanks pal - tried downloading it last night but I think my computer, with four or five major applications open and running several web pages for over ten hours, just decided it had had enough and was being arsey about it.

It appears to be downloading happily now though, so I shall get back to you when it’s up so you can check it out - and yep, I designed the site myself, thanks for asking. No one appeared to deem it worthy of comment in the site check section (sigh).

Nobody ever comments in the site check section. I’ve post three differnt sites in there and nobody ever realy responds. The two people who ever realy do are lost in beta and Ilyse. I never saw your site there but I usaly check and comment there. It is a great site. I liked the dancer in the load screen.

What actions are u useing in your scroll box buttons. I have been trying to make up and down buttons that when you hold it will scroll for a while. Could you mabye post the code or an fla with how you made those. That would be great.:slight_smile:

I’m gone for a day or two so good luck with the sound stuff and if you could make something up with how you made your text scroll box that would be most excellent. :stuck_out_tongue:

The scroll box thing got on my nerves for ages - and I couldn’t find a tut for it anywhere - but I will happily post something on it for when you get back.

I still can’t get the **** sound to work - it seems so easy, and I had pretty much done what your flash did - but for some reason I’m still getting ‘target not found’ which is really beginning to Jack me Off. As far as I can see there is absolutely no reason that it shouldn’t work. Any clues??

Still can’t seem to get that footer to work - though it does in another forum - curiouser and curiouser…

Enjoy you trip.

Hey thanx 4 ur quick fla!
Im gonna check it out now, hopefully i understand the thing!!

Hey i went to ur site: http://www.theiquake.com/
great site man!!

I wana learn how to do stuff like that, is it ok, if i ask u bout “this and that” later??.. when u get back!

Well thanks for the fla’s n ur help, appreciate it!

:stuck_out_tongue:

Hey sintax, got the stuff working, thanx for ur help!
Im the last one to download ur fla, so if u want u can remove it now!!..thanx.

Hey urbanscrawl, i got my sound to work, have u got urs working yet?

Let us know when ur back sintax, coz i have a few queries still, if u don’t mind!!!

Thanx for everything!

:stuck_out_tongue: :stuck_out_tongue:

nope - not yet, I’m wondering whether or not it has anything to do with the number of layers I’m using, any new layer comes up as Layer 178 or something because the site is quite big now, so the number it’s loaded into has has to be higher than that. I’m wondering if there are problems there.

I got a small version working but not one that works on the main site.

Hey I’m Back. If your layers are starting at 178 try loading your sounds into layer 999 or even a little higher. If you try to load onto and ocupied layer it won’t work.

That iEQ site was the first thing I ever did in Flash. It may look nice and have a cool load in but it is far from good. That site is so big in file size and so poorly laid out I can’t belive it even works. I really didn’t know what I was doing when I built that site. All that iEQ site realy is are a bunch of motion tweens and goto actions. My new site is much more advanced and better laid out.

YA any info on how you got it to scroll on a press and hold would be great.