Be a Supporter!

Basic scripting help

  • 237 Views
  • 3 Replies
New Topic Respond to this Topic
Magical-Arts
Magical-Arts
  • Member since: Aug. 31, 2004
  • Offline.
Forum Stats
Supporter
Level 16
Animator
Basic scripting help 2009-01-17 20:32:39 Reply

Hello people,

Yeah so I'm working on my secound tutorial (It's about aniamtion and NOT scripting :P) and it's basicly done but I need help with one last feature, I need to have it so that when I press a key all sound stop and after a sound clip starts to play. I've searched the web and tried several diffrent codes but I just can't get it to work, not even close xD So yeah if you know how to do this I would love it if you could help me out here!

/Mathias. J

MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Basic scripting help 2009-01-17 21:46:32 Reply

are you talking about flash? stopAllSounds();


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
Magical-Arts
Magical-Arts
  • Member since: Aug. 31, 2004
  • Offline.
Forum Stats
Supporter
Level 16
Animator
Response to Basic scripting help 2009-01-17 22:04:15 Reply

At 1/17/09 09:46 PM, sasuke2910 wrote: are you talking about flash? stopAllSounds();

yeah that's the first part of it, but I need to make it so that it also starts playing an audio clip after it stops all sound, which I can't get to work. I also just realised this mig be the wrong forum :O)

FuckTails
FuckTails
  • Member since: Jul. 9, 2007
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Basic scripting help 2009-01-17 22:29:19 Reply

At 1/17/09 10:04 PM, Magical-Arts wrote:
At 1/17/09 09:46 PM, sasuke2910 wrote: are you talking about flash? stopAllSounds();
yeah that's the first part of it, but I need to make it so that it also starts playing an audio clip after it stops all sound, which I can't get to work. I also just realised this mig be the wrong forum :O)

Oh shit, really?

Anyways, just put StopAllSounds(); on one frame, then the frame after it put the soundclip.