all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

How to fade out a image with actionscript


How to fade out a image with actionscript Carlos Gonçalves
9/21/2004 10:37:47 PM
flash actionscript:
How can I do this?

Re: How to fade out a image with actionscript Carlos Gonçalves
9/21/2004 11:29:10 PM
Thanks a lot!!!


[quoted text, click to view]

Re: How to fade out a image with actionscript Carlos Gonçalves
9/21/2004 11:35:07 PM
Can I do this without press a button. Only put this in timeline and the fade
occurs?



[quoted text, click to view]

Re: How to fade out a image with actionscript Carlos Gonçalves
9/21/2004 11:56:33 PM
Thank you!



[quoted text, click to view]

Re: How to fade out a image with actionscript kglad
9/22/2004 2:13:08 AM
convert your image to a movieclip (right click, convert to symbol, tick
movieclip), give it an instance name (say myImage) and then control it's _alpha
property in a loop. for example:

btn1.onPress=function(){
clearInterval(fadeI);
fadeI=setInterval(fadeF,80);
}
function fadeF(){
myImage._alpha -= 3;
if(myImage._alpha<=0){
clearInterval(fadeI);
}
}
Re: How to fade out a image with actionscript NSurveyor
9/22/2004 2:40:43 AM
Yes, just use this:

clearInterval(fadeI);
fadeI=setInterval(fadeF,80);
}
function fadeF(){
myImage._alpha -= 3;
if(myImage._alpha<=0){
clearInterval(fadeI);
Re: How to fade out a image with actionscript kglad
9/22/2004 5:01:23 AM
AddThis Social Bookmark Button