events - In flex, how to pass data to handling function? -


In Flex, I'm handling this kind of incident,

myImage.addEventListener (MouseEvent. CLICK, redoOperation);

Now, I want to have some properties near the radiococcus. (Function redo operation (IID: string)) How do I cross that string?

I pass an anonymous function and parameter like this in this way. It is similar to how you can do this in javascript.

  myImage.addEventListener (MouseEvent.CLICK, function (e: event): zero {redoOperation (myId);});  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -