Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Is there a property of a sound
From: Andrew Le Sage
Date: Sun, 24 Sep 2000 20:52:47 +0100

Why don't you make the sound shorter you can edit the sound from within Flash
----- Original Message -----
From: Paul Steven
To: flasheratchinwag [dot] com
Sent: Sunday, September 24, 2000 2:06 PM
Subject: FLASH: Is there a property of a sound that I can use to see if a sound is currently playing


Hi there

Is there a property I can use to detect if a certain sound is currently
being played?

Basically in my game when the "Pacman" eats a dot i play a sound using the
following code:

eat_pill.start();

Now the length of the sound is longer than the time to take pacman to get
from one dot to another - therefore before the sound has finished playing,
he gets to another dot and the eat_pill.start(); is called again.

Have a look and see!

http://www.thegamesfactory.f2s.com/Biganimal/Pacman2_4.htm

The result is not very good Now, I don't want to edit the sound to make it
shorter if possible.

The ideal situation would be if I could go: (psuedo code)
////////////////////////////
If (eat.pill.playing<>True){

eat_pill.start();

}
////////////////////////////

Anyone have any suggestions?

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]