views:

266

answers:

1

I have a sprite which I draw a white rectangle on (below) and want to use TweenLite to fade the sprite in and out but it either shows or hides the the sprite. animating the sizing such as scaleX works fine just the alpha. any ideas?

private function Draw():void { panel.graphics.beginFill(0xFFFFFF); panel.graphics.drawRect(0,0,367,135); panel.graphics.endFill(); }

public function FadeIn():void { trace("fadeIn"); panel.alpha=0; TweenLite.to(panel, 2, {alpha:100}); }

A: 

found the issue, alpha was 100 not 1 therefore tweenlite was trying to set the alpha to 100 on each update causing hte flickering

monkeylee