Flash trickery?
- Started
- Last post
- 9 Responses
- tomkat
Is there a way to do some _alpha tweening on an image without consuming too much CPU?
image is about 600x320.
- ozhanlion0
put a black shape and alpha it maybe?
- bull0
onClipEvent (load) {
_alpha=0;
}
onClipEvent (enterFrame) {
if (_alpha
- fate0
This is common sense but I'll say it anyway. Try using the Tint property if it's on a solid bg. If not make the best of Alpha and minimize other processor intensive functions at the same time. There are also methods to speeding up flash in a browser since it's going to slow down even more on the web, like setting wmode = transparent.
- jon_0
if the image is against a solid colour you can place a rectangle of that colour over the image and fade that.
so if the image is against a white background for instance you place a white rectangle over the top of the image and change the rectagles alpha instead.
generally that is less cpu intensive than animating the alpha of an image directly.
- tomkat0
yea thanks jon. but that does not work as there is another pic underneath..
- ozhanlion0
tommy, are you trying to dotransition between two images, if so, duplicate the images and make a mc and put a white rect over first image aand than alpha that insideput the other image.
something like that.
- ********0
image into an mc and the target mc._alpha
use the same mc for all pics you load.
- ********0
use AS on it, check the resource thread for links. use the dB
- mirola0
the problem is in the fact that you're trying to render 24-bit colour instead of 16-bit every time you have an alpha on the screen. there's nothing you can really do about it apart from optimizing your code in other areas to compensate