Frame 1
function myTimer() {
trace("myTimer count: " + count);
if (count <= 0) {
clearInterval(myInterval);
trace("Time Up!");
gotoAndPlay (2);
}
count--;
}
stop();
count = 2;
duration = 1000;
myInterval = setInterval(this, "myTimer", duration);
Frame 2
function myTimer() {
trace("myTimer count: " + count);
if (count <= 0) {
clearInterval(myInterval);
trace("Time Up!");
gotoAndPlay (3);
}
count--;
}
stop();
money = 0;
count = 10;
duration = 1000;
myInterval = setInterval(this, "myTimer", duration);
Instance of Symbol 10 MovieClip "char" in Frame 2
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(40)) {
_y = (_y + speed);
}
if (Key.isDown(38)) {
_y = (_y - speed);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.money = _root.money + 10;
unloadMovie (this);
}
}
Frame 3
stop();
Instance of Symbol 6 MovieClip in Symbol 7 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 7 MovieClip in Symbol 8 MovieClip Frame 1
/* no clip actions */