[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-12 Thread per.olesen
For the record. Someone provided me the solution i show below directly by email: /** * Runs on change converting all text to upper case */ private function changeHandlerToUpper(event:Event):void{ event.target.text = event.target.text.toUpperCase(); } which works fine.

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-11 Thread per.olesen
--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: In a handler for the 'textInput' event, set event.text = event.text.toUpperCase(). The 'textInput' event is dispatched after the text has been typed (or converted by an IME) but before it has been inserted into the

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: Is this anything of help? capsLock property capsLock:Boolean [read-only] Specifies whether the Caps Lock key is activated (true) or not (false). If you refer to the static read-only property of

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Unfortunately, the text controls don't use events as input events, but dispatch them as notifications instead, so you can't fake events to them. Okay, that explains why dispatching KeyboardEvent on TextField and TextEvent on

[flexcoders] Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-09 Thread per.olesen
I need to automatically turn all keyboard input in all TextInput and TextArea components in my flex application into upper-case. It needs to function like if the user had actually typed it in upper-case. So, the events with the lower-case input needs to be stopped and new events with the

[flexcoders] Applying metadata in the middle of mxml - is it possible?

2008-12-10 Thread per.olesen
Hi, Basically, I would like to apply some (of my own) metadata to a component instance inside the mxml. Like this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:ApplicationControlBar mx:Metadata[MyMetadata]/mx:Metadata mx:Button id=foo

[flexcoders] Why no initial FlexEvent.SHOW event dispatched?

2008-12-02 Thread per.olesen
I was wondering why a flex control or container does not dispatch a FlexEvent.SHOW when showing the first time? Given this code: mx:Panel id=panel show=Alert.show('I am showing') creationComplete=Alert.show('I was created')/ mx:Button click=panel.visible = !panel.visible

[flexcoders] Re: Confirm dialog in Flex?

2007-11-26 Thread per.olesen
--- In flexcoders@yahoogroups.com, Robert Csiki [EMAIL PROTECTED] wrote: How would I implement a Confirm-like dialog in Flex? Basically, a confirmation popup (modal) window so the application will wait (freeze) for the user's input and then will use it to continue its execution? [snip] ..I

[flexcoders] Re: HttpService not called the first time

2007-11-22 Thread per.olesen
Hi, Maybe you should try setting creationPolicy=all on your TabBar. By default, it first creates the child components when someone tabs into it. If you set it to all, all child controls will be created up-front (which can be expensive, if you have many that are complex). See: