Using IUIElementEventListener in c#

#1
Please help me. I'm trying to listen FlashUI event in c# but not working.
Here is my code :

Code: Select all

public class MyEventlistener: IUIElementEventListener
{
public override void OnUIEvent(IUIElement pSender, SUIEventDesc arg1, SUIArguments args)
{
Log.ToConsole("==============OnUIEvent trigger");
base.OnUIEvent(pSender, arg1, args);
}
}

-----------------------------in init Function

MyEventlistener listener = new MyEventlistener();
ui_flash.AddEventListener(listener, "mylistener");

Who is online

Users browsing this forum: No registered users and 1 guest

cron