<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I've just found a new bug in the parser. It seems that metaas doesn't
support function declaration in a parameter if this function has a name.<br>
<br>
Example :<br>
<br>
this works :<br>
<br>
tw.addEventListener(CloseEvent.CLOSE, function(event:Event):void {
PopUpManager.removePopUp(tw);});<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
that doesn't work :<br>
<br>
tw.addEventListener(CloseEvent.CLOSE, function <b>closeHandler</b>(event:Event):void
{ PopUpManager.removePopUp(tw);});<br>
<br>
Of course there's no need to have a name for the function, but it
compiles so I guess it is valid actionscript code anyway. &nbsp;&nbsp; &nbsp; <br>
<br>
Regards,<br>
<br>
R&eacute;mi.&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>
</body>
</html>