John Singleton wrote:
function RotateGearsLoaded(e:Event):void
Why is that? I tried to pass that var like this:
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,RotateGearsLoaded(displayGearsCounter));
RotateGearsLoaded returns void, not Function. The return value is not a legal listener. Yet you are calling it here to get the listener to add.
Remember, you are not the one calling the listener, thusly, you can't decide the arguments.
_______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders