Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-11 Thread Andriy Panas
You can use composition to acquire the functionality of EventDispather, in other words add the instance of EventDispatcher class as a property of your VO class More on this: http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html

Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-11 Thread dorkie dork from dorktown
thank u! On Sun, Jul 11, 2010 at 4:16 AM, Andriy Panas a.pa...@gmail.com wrote: You can use composition to acquire the functionality of EventDispather, in other words add the instance of EventDispatcher class as a property of your VO class More on this:

Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
Hi Andrew. Can you trap the ENTER (keyCode = 13) on a Numeric Stepper? I've been failing to do this... :( When a user presses the ENTER key, I want to perform an operation, such as a search... So I'm thinking I need to somehow trap the ENTER key and dispatch a custom event. Mmmm... Any ideas?

Re: [flexcoders] Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
Hi dork, how you doing?... Thanks for the info on this... Have you managed to achieve this when using a NumericStepper for your form objects? i...@ve just this out as an example: http://flexmusings.wordpress.com/2008/10/30/using-default-button/ And it works when pressing ENTER in either of the

[flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Andrew
I would probably have an event handler to deal with ALL keystrokes, and within that have a switch statement. One case of the switch statement would be case '13': var searchValue:int = myNumericStepper.value; doTheSearch(searchValue); break; So when the enter key click is captured, the code

[flexcoders] stopping accodion animation

2010-07-11 Thread flexwdw
Hey all, I have to be able to dynamically remove children from an accordion container. Problem is, this causes a crash when the animation that runs on the selected child is running when I need to remove the panel. I see no way to force this animation to end or register for notification of it

Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
Andrew - cheers. My problem was that I am working with a custom Numeric Stepper, I had extended the base control it so it could support null entries and to be quite restrictive with the inputs... 0-9, delete key, backspace, etc... I forgot to include ENTER.. doh! :-) After your post, I decided to

[flexcoders] show points on linechart. display the Legend of each line series [1 Attachment]

2010-07-11 Thread Didi Tonfack
Morning all of you. I need you help about adding the Legend Tag in your solution of showing points on lineChart mentioned in this link:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg36175.html In fact, i do the same thing like you (all work good). but the only different