asked on
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse_up);
var req:URLRequest = new URLRequest("Chisel.mp3");
var Chisel_Sound_active:Sound = new Sound(req);
var sound:URLRequest = new URLRequest("ChiselWindDown.mp3");
var Chisel_WindDown:Sound = new Sound(sound);
function mouse_down(e:MouseEvent) {
if (mouseX < 800 && mouseY < 570) {
timer.start();
timer2.start();
Chisel_Sound_active.play();
}
}
/*------function just like above, just for the mouse up event-------*/
function mouse_up(e:MouseEvent) {
timer.stop();
timer2.stop();
SoundMixer.stopAll();
Chisel_WindDown.play();
}
ASKER
Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.
TRUSTED BY
-V