Nocturn
August 1st, 2003, 02:33 AM
Hi,
I have taken the script from one of the tutorials on kirupa, about the mc easing to mouse position, and adapted it to scale a navigation "window". The script looks like this
onClipEvent (load) {
_xscale = 0;
_yscale = 1;
speed = 3;
}
onClipEvent (enterFrame) {
if(_xscale <99){
endX = 100;
_xscale += (endX-_xscale)/speed;
} else if(_yscale <99){
endY = 100;
_yscale += (endY-_yscale)/speed;
}
}
My question is if this is an efficient way of doing it. I have this script attached to 3 mc's so Flash will continually check these 3 clips now? Does this take up to many resources? Is there a better way of doing it, without using onClipEvent? Sort of like, once the windows are scaled to 100%, I want Flash to forget checking them.
I have taken the script from one of the tutorials on kirupa, about the mc easing to mouse position, and adapted it to scale a navigation "window". The script looks like this
onClipEvent (load) {
_xscale = 0;
_yscale = 1;
speed = 3;
}
onClipEvent (enterFrame) {
if(_xscale <99){
endX = 100;
_xscale += (endX-_xscale)/speed;
} else if(_yscale <99){
endY = 100;
_yscale += (endY-_yscale)/speed;
}
}
My question is if this is an efficient way of doing it. I have this script attached to 3 mc's so Flash will continually check these 3 clips now? Does this take up to many resources? Is there a better way of doing it, without using onClipEvent? Sort of like, once the windows are scaled to 100%, I want Flash to forget checking them.