PDA

View Full Version : Ghost sounds sneaking in!


Dr Ken FP
08-06-2005, 06:29 PM
I have a movieclip that is going to be used in a state machine class for a game show. The clip is a series of frames, each with a "stop();" in it. Each frame plays an imbedded movie clip symbol with a cutesie movie (something nice if the player is right, something rude if the player is wrong). At the end of the "reward" movies, it jumps to another frame, labeled "right", that sets a couple of text attributes (green text for the score) and stops.

Each of the individual symbols have sounds in them, and the symbols play perfectly.

HOWEVER, when I jump from one of the "reward" frames to the "right" frame, three sounds play unbidden. I have checked the timeline - the inspector does not specify any sounds to sync with ANY of the frames. The sounds are always the same. I did not write any code to ask for these sounds. I have put debug breakpoints at the statement that jumps to the second frame, and a "stopAllSounds;" at the start of the second frame's script - but the sounds are still triggered in between, and are NOT stopped by the "stopAllSounds;" item!

I also note that my Actionscript editor is acting rather hinky. The window does not always update when I click to create or clear breakpoints, or even when I do some cutting and pasting. I am running Flash MX 2004 Professional, version 7.2, build 4.0.0.032, on an iBook G4 running 10.4.2. Could it be that my installation is corrupted and needs to be reinstalled?

I hesitate to upload a 3.4MB copy of the .swf file. Any advice on where I could look for (and eradicate) these mystery triggers would be appreciated.

---Ken (I have enough trouble debugging VISIBLE code) Franklin

Navarone
08-09-2005, 01:40 PM
Is this problem of AS editor only in this fla or does it occur with other fla's? Maybe your fla is corrupt, have you tried renaming it? If you suspect your installation is corrupt you might try reinstalling it.

Are your sounds set to "event" or "streaming"? Can you show us the code you are using to play the sounds? :)

Dr Ken FP
12-04-2005, 04:33 PM
...and it is still happening since I have changed to Flash 8. The Flash file is at this link:

http://homepage.mac.com/drkenfp/Panelsmall.fla

It's a 2.1 MB Flash 8 source file. Download it, don't open it in your browser.

This is a unit that will be used to play cute animations depending on whether a person wins or loses points in a quiz. "Yay 1" Plays a champagne celebration. "Yay 4" has a fat fairy come down and bless the scoreboard. "Boo 1" drops an anvil on the scoreboard. However, the "Boo 1" animation plays the fairy's tinkerbell sound, even though it's not supposed to. The file is supposed to jump right over the tinkerbell frame, yet there the sound is.

The sound file is not corrupted; if I substitute the champagne cork for the tinkerbell sound, then the CORK sound plays inappropriately.

The scar tissue from beating my head against this issue is 3 months old. Any suggestions would be appreciated!!! :confused:

--drken(everything else so far is making with the happy workingness)fp

http://homepage.mac.com/drkenfp/Panelsmall.fla

Navarone
12-05-2005, 06:40 PM
If you saved it as Flash 8, I won't be able to open it cause I am not using Flash 8.

Check out this link maybe it will help.

http://www.kennybellew.com/tutorial

Dr Ken FP
12-05-2005, 07:17 PM
...but making all the sounds "stream" instead of "event" makes the behavior go away. I have no clue why.

Thanks for the hint!

--drken(now on to futz with the rest of it)fp:cool:

Navarone
12-05-2005, 07:20 PM
Event sounds wait for the entire sound file to load before playing. Streaming sounds will play as soon as enough of the sound has been loaded. If you are in the flash authoring environment, streaming sounds will not play were as event sounds will.