View Full Version : Alpha fade actionscript
KarenInPA
02-21-2002, 12:48 AM
Hello all,
I realize that alpha tweens are rough on the cpu, but I'm wondering if manipulating the alpha property by actionscript is the same.
I've read that 99% alpha to 1% alpha is far easier on a machine than 100% to 0%. Does the same hold true for actionscripted alpha fades?
I'd appreciate any insight.
Thanks,
Karen
Rupert
02-21-2002, 01:13 AM
I've certainly found that ActionScripted fades seem to run smoother than tweened ones but I'm not sure what the official stance is on this.
Anyone else?
Hello!
It's also my experience that scripted fades are faster. And another point: it takes less space. A tween - as far as I know - is stored in your .swf as a lot of keyframes. And that takes a lot more bytes than a few lines of ActionScript.
In ActionScript you can also change the parameters easier. For example, you can set a constant for fading speed and let every fade in your project use that speed. Is it not looking good, only change the constant.
Good luck,
Sckz
KarenInPA
02-22-2002, 02:35 PM
Thanks to you both!
I hadn't really considered the other upsides to the scripted fades until you guys pointed them out. Makes a good deal of sense to me now.
Thanks again
Karen
metrov8
10-31-2004, 02:24 AM
Can you possibly provide the code for FADING IN?
Thnx
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.