PDA

View Full Version : Different behaviour on different scenes from the same symbol?!!!


iamguyster
08-17-2006, 01:41 PM
Hi there,

I hope someone can help me with this as I have been banging my head for 24 hours and can't seem to figure out what the problem is.

I have a movie with several similar scenes. Each scene has little speakers on. These speakers are little movies of 3 frames. With the first frame having nothing but the speaker image and stop(). The third frame has GoToAndStop(1) and the speaker symbol, as well as a short piece of speech as a wav.

I place the little movie symbol on the scene and give it the following script.

on (press) {
stopAllSounds();
gotoAndPlay(3);

}
on (keyPress "<Space>") {
stopAllSounds();
gotoAndPlay(3);
}

The space press is there as I only have one speaker visible at any one time so it will activate the speech for that particular speaker.

Anyway...this works perfectly on Scene 1. When I press the speaker, the speech starts, or when I hit space.

But, On every other scene I drop the same speakers in with the same script and they don't work. They show up alright, but I don't get any speech. I find this wierd because it's exactly the same speaker movie as on Scene 1 and it has exactly the same script. The speaker movie is on the top of everything so there is nothing blocking it from being pressed.

Any suggestions?

The wavs and speaker movies are buried deep in a nice neat folder structure in the library, but I can't see that effecting it in any way.

Cheers,
Guy

thatblokemike
08-17-2006, 01:49 PM
yeah you have to tell it which scene...

gotoAndPlay("scene", "frame");

Id advise against using scenes...

iamguyster
08-17-2006, 01:56 PM
hmm...this is where it gets a bit sticky for me..

In the gotoAndPlay, I'm instructing it to go to the frame in the speaker movie where the sound is. Do I need to instruct it to play in the particular scene that the movie sits in? It's a bit confusing.

So, if i have the speaker in Scene 3 then I have gotoAndPlay("Scene 3", 3)?

I'll give it a try.

Why do you advise against using scenes? I have toyed with using totally different swf movies for each scene and navigating between those to reducxe the initial load time, but I have a fair bit of re-use between each scene and was wondering if it was a kind of false economy.

Cheers
G

iamguyster
08-17-2006, 01:59 PM
Hmm, just tried it the way I thought it as and it didn't work..and to be honest I wasn't expecting it to...it didn't make sense.

I'm actually considering splitting the whole thing up out of scenes, but need the go ahead from the person I am doing ti for...so must persist this way for now. It's cracking me up!

iamguyster
08-17-2006, 09:59 PM
I was wondering...do I have to indicate a kind of object path anywhere for the symbol.. something along the lines of referring to the speaker movie as Scene1.speakerMovie?

I'm just clutching at straws here :(