Jreeter
02-29-2004, 03:43 PM
Hi, guys first id like to say im learning flash and this site rocks im loving action script now.. but i was fiddling through some noob tutorials and found the one on simple animation with as heres what i want.
onClipEvent (enterFrame) {
// when it hits frame1 this(mc) does this below.
this._alpha = random(100);
if (this._x<200) {
this._x += 5; } else {
this._x -=5;
}
}
so i was fiddling around and started mixing as code
what i want it to do is after x reaches 200 i want it to go back hence why i put this._x -=5; im not sure but i know in vb code else would usually be a then statement if i remember.
onClipEvent (enterFrame) {
// when it hits frame1 this(mc) does this below.
this._alpha = random(100);
if (this._x<200) {
this._x += 5; } else {
this._x -=5;
}
}
so i was fiddling around and started mixing as code
what i want it to do is after x reaches 200 i want it to go back hence why i put this._x -=5; im not sure but i know in vb code else would usually be a then statement if i remember.