Oops. I forgot to include a link to post about this. Here it is: http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/
On 4/5/08 8:58 PM, "Omar Fouad" wrote: > Hi, > I've got a function that is called when a listener listens an event like: > > fancyButton.addEventListener(MouseEvent.CLICK, myFunction); > > private function myFunction(e:MouseEvent):void { > // statements... > } > > If I try to call myFunction using myFunction() , the compiler throws me an > error, saying that the function expects an argument. At this point how > should I call this function without dispatching the MouseEvent Event?? Rich http://www.LearningActionScript3.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders