Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
ravenlynx9 #1
Alternating Sound Files
I have a frame with two movieclips on it.
Both are turned off upon loading.
Here is the code. The process is this.. click once the PinkKnight and his
sound should start. The second click, the Donkey and His sound starts. Problem
is.. only the donkey sound plays.. i comment out the DonkeySound.. and the
horse sound plays.
Here is the code...
this.pinkknight.stop();
this.donkeyani.stop();
this.stopped = true;
var horsesound = new Sound();
var donkeysound = new Sound();
horsesound.attachSound("clipclop");
donkeysound.attachSound("donkey");
onMouseDown = function() {
if (this.stopped) {
this.pinkknight.play();
horsesound.start(0,99);
this.donkeyani.stop();
donkeysound.stop();
this.stopped = false;
} else {
this.pinkknight.stop();
horsesound.stop();
this.donkeyani.play();
donkeysound.start(0,99);
this.stopped = true;
}
}
ravenlynx9 Guest
-
alternating colours in gridItems
got this code below building a grid dynamically....how to alternate teh gridItem colours??? I tried backgroundColor='{ currentIndex%2 == 0 ? ... -
Sound files
couple of quest. 1. everytime when you add an instance of a sound file, does it increase the size of movie file? 2. Is it possible to stop the... -
alternating loop
Hello, been trying to come up with a way, while going through a loop to alternate a table cell color <td></td>.... IE. while (..) { # To... -
getting sound files
How do you import sound files from windows media player -yes cd tracks- I can find them but cannot get them recognised as a soud file. Ive gone ---... -
Alternating Wired & Wireless
Bill M. wrote: I haven't done this, but I've seen it done (and it worked). The keyword is hotplug (or hotplugd). -Timo -- Timo Voipio |...



Reply With Quote

