Question
how do I create a chain reaction?
suppose I've got something like this
-----------
var myListener:Object = new Object();
myListener.onKeyDown = function() {
if (Key.getCode() == Key.SPACE) {
icon1_mc.gotoAndStop("frame2");
icon1_mc.gotoAndStop("frame3");
icon1_mc.gotoAndStop("frame1");
}
};
Key.addListener(myListener);
-------------
clearly this wont work because the frames are interfering with each other. What method does a person use to trigger a small sequence of events, such as playing frame 1, then 2, then 3 where it stops, without relying on a preloaded frame sequence?
-----------
var myListener:Object = new Object();
myListener.onKeyDown = function() {
if (Key.getCode() == Key.SPACE) {
icon1_mc.gotoAndStop("frame2");
icon1_mc.gotoAndStop("frame3");
icon1_mc.gotoAndStop("frame1");
}
};
Key.addListener(myListener);
-------------
clearly this wont work because the frames are interfering with each other. What method does a person use to trigger a small sequence of events, such as playing frame 1, then 2, then 3 where it stops, without relying on a preloaded frame sequence?