What is the code to fade a page or an object in and out using flash cs6
Printable View
What is the code to fade a page or an object in and out using flash cs6
I am trying to go from day to night using a fade
PHP Code:
myObject.alpha = 1
myObject.addEventListener(Event.ENTER_FRAME, fader);
function fader(e:Event):void{
if(e.currentTarget.alpha>0){
e.currentTarget.alpha -= .1
}
}