Help! How to make time delay?
Do anyone know how to use ActionScript (not using frame)
to make time delay????? (MX 2004)
e.g.
do {
this.mc._alpha += 1;
(I want some delay here)
} while (this.mc._alpha<100);
Thanks!
Last edited by garychui; 01-27-2004 at 03:09 PM .
Re: Help! How to make time delay?
Originally posted by garychui
Do anyone know how to use ActionScript (not using frame)
to make time delay????? (MX 2004)
e.g.
do {
this.mc._alpha += 1;
(I want some delay here)
} while (this.mc._alpha<100);
Thanks!
function Alpha() {
if(_root.mc._alpha<100){
_root.mc._alpha++
}
}
setInterval(Alpha, INTERVAL_HERE)
updateAfterEvent()
Thanks
Thanks!
I can do that individually...
but...
I cannot use it in this situation...
on (rollOver) {
function Alpha() {
if (mc._alpha<100) {
mc._alpha++;
}
}
setInterval(Alpha, 1);
updateAfterEvent();
}
on (rollOut) {
function Alpha() {
if (mc._alpha>0) {
mc._alpha--;
}
}
setInterval(Alpha, 1);
updateAfterEvent();
}
These scripts are in an btn (not the MC)
It can work when I roll over the btn (The MC fade in)
but when I tried to roll over and out it several times,
the script didn't work!
Please help!
Thanks!
I wanna know about that as well! Thanks!
Best Regards,
GODevil
=============================
http://www.gazzone.com
frame action:
_root.onEnterFrame = function() {
if(something==1 && mc._alpha<100) {
mc._alpha++
}
if(something==0 && mc._alpha>0) {
mc._alpha--
}
}
button action:
on (rollOver) {
something = 1
}
on (rollOut) {
something = 0
}
Thanks!
But I want to put all the scripts into the button...
Is it possible!?
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width