[Tweener] tryign to alpha tween a loader after its done loading a swf...
Mike Lohrman
mikelohrman at yahoo.com
Fri May 29 07:44:50 PDT 2009
This is basically how I have this set up...
loader_0.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoadComplete);
function imgLoadComplete(event:Event) :void {
Tweener.addTween(event.target.content, {alpha: 1, time: 1, onComplete: function() {event.target.content.gotoAndPlay(2);}});
}
What happens is when the loader is done loading, it should fade the movie in, then onComplete play frame 2. It won't fade in, but it does play frame 2 correctly. If I replace the first "event.target.content" with "loader_0", it works fine. Is there any way to reference the loader from the event? Thanks!
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090529/0a36d33d/attachment.htm>
More information about the Tweener
mailing list