Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: new actionscript looping |
From: | kevin dowd |
Date: | Thu, 14 Sep 2000 10:24:48 +0100 |
hello
Got an MC moving in one frame with the following. There must be
better methods though.
onClipEvent (load) {
var downstate = 0;
var upstate = 0;
var frametogoto = 0;
var thisarray = new Array(214,206, 202, 198, 197);
thisArray.unshift(this._y);
var reverseArray = thisarray.slice().reverse();
}
onClipEvent (enterFrame) {
if (upstate == 0) {
if (thisarray.length) {
this._y = thisarray.shift();
} else {
upstate = 1;
}
}
if (downstate == 1) {
if (reverseArray.length) {
this._y = reverseArray.shift();
} else {
_root.gotoAndplay(frametogoto);
}
}
}
--
regards
shoreditch
london ec2a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: new actionscript looping, John Dowdell
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]