PDA

View Full Version : how to "delay" with AS??



Azazel
February 8th, 2005, 09:06 AM
K, here is my problem... i'm trying to scrpit some motion

this is what i've got so far (it's all on the mc that i'm "playing" with on the first frame on timeline);

onClipEvent (load) {
this._xscale = 0;
this._yscale = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
var alpha;
if (this._alpha<100) {
alpha = 2;
} else {
alpha = 0;
}
this._alpha += alpha;
}
onClipEvent (enterFrame) {
var scale, rotate;
if (this._xscale<120) {
scale = 5;
rotate = 45;
} else {
scale = 0;
rotate = 0;
}
this._xscale += scale;
this._yscale += scale;
this._rotation += rotate;
}
onClipEvent (enterFrame) {
if (this._xscale==120) {
_root.gotoAndStop(2);
} else {
donothing;
}
}

Now, what i want to do is, i want it to wait a couple of seconds befor it goes on to frame 2 + how kan i incres the brightness to like +100% with AS??

tHx for any help n'/or tips :ne:

tofuisonmyside
February 9th, 2005, 04:19 AM
for the delay stuff, check this http://proto.layer51.com/d.aspx?f=524

for the brightness, you can find joy and happiness inthere http://proto.layer51.com/l.aspx?p=10

Azazel
February 9th, 2005, 06:16 AM
well thanks a bunch :?) n' thanx for the link... looks like it can help develop AS skills :sen: