I am pretty sure that it is possible, and the syntax looks OK to me. I don't have a dev environment in front of me to check though.
What exception are you seeing? Can you try to post a short example of a simple listener and BXML which demonstrate the exception. Chris On 1 February 2011 02:13, anton dos santos <[email protected]> wrote: > Hi > I want to add a listener coded in java to a button. I tried following > syntax: > > <PushButton buttonData="Click Me!"> > <buttonPressListeners> > <utils:MyListener/> > </buttonPressListeners> > </PushButton> > > but got an exception. > It seems to me that only scripts can be added as listeners in BXML. Is this > right or am I doing something wrong in the above code ? > > Regards > Anton >
