pxpDesigner
Technical User
Hello,
I have created a flash movie that consists of 2 frames and is controlled by a very extensive bit of script. This is a game demo and there are over 50 scenarios that can occur. Each one is mapped out in the script and flash executes a different set of commands for each outcome. What I would like to do is attach a sound clip to each scenario so that a different sound will play depending on what is happening on screen. I tried attaching a do...while statement to each case telling flash to play sound in each case but during tests, I received an error message saying that the script was causing Flash player to become unresponsive. Same thing happened when I used an if statement. Can I assign variable names to sound clips and use scripts to call up these sounds as a result of a particular occurence on screen? Better yet, can Flash play a random sound clip from a set of sounds as a result of screen actions? Any help is greatly appreciated. Thank you!
I have created a flash movie that consists of 2 frames and is controlled by a very extensive bit of script. This is a game demo and there are over 50 scenarios that can occur. Each one is mapped out in the script and flash executes a different set of commands for each outcome. What I would like to do is attach a sound clip to each scenario so that a different sound will play depending on what is happening on screen. I tried attaching a do...while statement to each case telling flash to play sound in each case but during tests, I received an error message saying that the script was causing Flash player to become unresponsive. Same thing happened when I used an if statement. Can I assign variable names to sound clips and use scripts to call up these sounds as a result of a particular occurence on screen? Better yet, can Flash play a random sound clip from a set of sounds as a result of screen actions? Any help is greatly appreciated. Thank you!