[flexcoders] textInput modification
Hello, How to know when a textInput has been modified ? Thank you, Christophe,
Re: [flexcoders] textInput modification
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/controls/TextInput.html Events: changeDispatched when user input changes text in the TextInput component. http://www.adobe.com/livedocs/flex/2/langref/mx/controls/TextInput.html change Dispatched when text in the TextInput control changes through user input or data binding.TextInput Inherited dataChange Dispatched when the data property changes. From: Christophe christophe_jacque...@yahoo.fr To: flexcoders@yahoogroups.com Sent: Thu, August 12, 2010 1:23:31 PM Subject: [flexcoders] textInput modification Hello, How to know when a textInput has been modified ? Thank you, Christophe,
[flexcoders] textInput databinding
Adobe, in their infinite wisdom, removed the data property from Spark TextInput. There is an example of assigning bindable data to a variable for use in the text value with Flex 4 at Binding to an MXML TextInput control http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6\ 9084-7d85.html . I have tried to implement this technique but have still been unable to get it to work. When I specify the following: [Bindable] public var collection:String={myDataProvider.data.name.[0]}; I simply receive the following in my textInput field: {myDataProvider.data.name.[0]} Does anyone have any ideas as to how I might specify a bindable variable such that it will display as desired ? (FWIW, this worked like a charm in Flex 3) thanks! MCE
Re: [flexcoders] textInput databinding
[Bindable] public var collection:String = myDataProvider.data.name.[0]; Does that work? On Thu, Jul 15, 2010 at 12:59 PM, mark.embrey mark.c.emb...@gmail.comwrote: Adobe, in their infinite wisdom, removed the data property from Spark TextInput. There is an example of assigning bindable data to a variable for use in the text value with Flex 4 at Binding to an MXML TextInput controlhttp://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7d85.html. I have tried to implement this technique but have still been unable to get it to work. When I specify the following: [Bindable] public var collection:String={myDataProvider.data.name.[0]}; I simply receive the following in my textInput field: {myDataProvider.data.name.[0]} Does anyone have any ideas as to how I might specify a bindable variable such that it will display as desired ? (FWIW, this worked like a charm in Flex 3) thanks! MCE
[flexcoders] textinput blur event
I've tried many different types of events to trigger a blur when the user leaves the text box it runs my event but nothing seems to work. Anyone done this before? private function init():void{ VIN.addEventListener(FlexEvent.VALUE_COMMIT, lookupvehicle); //FocusEvent.FOCUS_OUT } private function lookupvehicle(event:Event):void{ Alert.show(WORKS); }
[flexcoders] textInput - Flex 4 vs. Flex 3
In Flex 3 you could set an initial value for a textInput field like so: mx:TextInput id=textinput1 text={data.name} editable=true / I haven't been able to do this in Flex 4 -- does anyone know a way to achieve the same result? thanks in advance, Tex
Re: [flexcoders] textInput - Flex 4 vs. Flex 3
You can use binding, but there is no data property on a TextInput anymore, so if you are creating a renderer, use MXItemRenderer or one of its subclasses. On 5/19/10 7:21 PM, tex_learning_flex tex.learning.f...@gmail.com wrote: In Flex 3 you could set an initial value for a textInput field like so: mx:TextInput id=textinput1 text={data.name} editable=true / I haven't been able to do this in Flex 4 -- does anyone know a way to achieve the same result? thanks in advance, Tex -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] textInput - Flex 4 vs. Flex 3
It should work. Exactly what problem are you having? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tex_learning_flex Sent: Wednesday, May 19, 2010 7:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] textInput - Flex 4 vs. Flex 3 In Flex 3 you could set an initial value for a textInput field like so: mx:TextInput id=textinput1 text={data.name} editable=true / I haven't been able to do this in Flex 4 -- does anyone know a way to achieve the same result? thanks in advance, Tex
[flexcoders] TextInput textAlign
I am using Flex 3. Is it possible to align the text in the TextInput control to be vertically centered?
[flexcoders] TextInput formating
Hello, I want that my text input accept only 2 characters maximum from A to Z. How to specify it in my code ? Thank you, Christophe,
[flexcoders] TextInput control *inside* of a combobox's dropdown
Hi everyone, I was wondering if anyone could help me with a problem I have -- I need to wire up an interface which calls for a ComboBox where the first item in the dropdown is a TextInput control which remains static (ie. the TextInput is always the first item in the list, even when the list is scrolled). I've tried a few methods, here's one of which I've had marginal success: code for the MXML Component ComboBox: mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() mx:Script ![CDATA[ private function init():void { var dropDownFactory:ClassFactory = new ClassFactory(MyCustomList); dropDownFactory.properties = { height: 100 }; this.dropdownFactory = dropDownFactory; } ]] /mx:Script /mx:ComboBox code for the AS3 list class for dropdown: public class MyCustomList extends List { private var input:TextInput; public function MyCustomList() { input= new TextInput(); // event listeners styles here addChild(input); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); // position TextInput above the list input.move(0,-input.height); } [/code] My main problem here is that the dropdown opening and closing causes issues with the text input control (because I have to move the text input to position the entire dropdown, it looks strange): [ combo box ]-- the combobox - [ text input]-- the text input as the first item in dropdown [ all items ]-- all the items in the combo box here I know I can mark the combobox editable, but this isn't an option for me (its unfortunately beyond my control). The list involves custom sorting methods and a built in search (from the text input). I was wondering if anyone has ever come across a similar situation or experienced how I could do this? Any help would be greatly appreciated, thanks.
[flexcoders] TextInput ItemRenderer arrow keys change list selection
Hi All, I am using a custom item renderer in a TileList that has a TextInput child allowing the EU to view and enter some text for the item. When the user clicks on the TextInput it becomes focused however, when in the focused state the L/R Arrow key events are hanlded by the parent TileList not the TextInput. When the user hits the L/R arrow key the TileList selection changes instead of the TextInput cursor possition moving accordingly. How can I have my TextInput handle the L/R arrorw keyboard events when focused and my TileList do its selection change when not focused? I have tried adding an event listener on the TextInput that simply calls event.stopPropagation() with no success. Any help greatly appreciated. Cheers, Greg
RE: [flexcoders] TextInput ItemRenderer arrow keys change list selection
Try stopImmediatePropagation(), but stopPropagation() should have worked assuming you set it up correctly. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 9:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput ItemRenderer arrow keys change list selection Hi All, I am using a custom item renderer in a TileList that has a TextInput child allowing the EU to view and enter some text for the item. When the user clicks on the TextInput it becomes focused however, when in the focused state the L/R Arrow key events are hanlded by the parent TileList not the TextInput. When the user hits the L/R arrow key the TileList selection changes instead of the TextInput cursor possition moving accordingly. How can I have my TextInput handle the L/R arrorw keyboard events when focused and my TileList do its selection change when not focused? I have tried adding an event listener on the TextInput that simply calls event.stopPropagation() with no success. Any help greatly appreciated. Cheers, Greg
Re: [flexcoders] TextInput ItemRenderer arrow keys change list selection
Thanks Alex, much appreciated. You where right, I didnt have it set up correctly, I was adding my keyboard listener to the KEY_UP event and needed to be listening for the KEY_DOWN event. With that change my text arrow navigation works great without changing parent list selection! Now that is working I noticed another issue when navigating using the arrow keys. When my TextInput is selected navigation with L/R arrow keys is disabled and moves the cursor in the text field as expected. Up and down navigation is still supported and functional but what I found is that focus (input cursor) does not get cleared when I navigate the TileList using the U/D arrow keys...however, if I use the mouse focus is removed properly. Should the focus not be hanlded automatically, I have never had to manage it before? The list displays another ItemRenderer as selected so selection has changed however only my input field seems to be stuck in the input mode. How can I fix this, is this a job for the FocusManager I have not had to use yet? Thanks, Greg On Mon, Jan 5, 2009 at 1:47 PM, Alex Harui aha...@adobe.com wrote: Try stopImmediatePropagation(), but stopPropagation() should have worked assuming you set it up correctly. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 9:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput ItemRenderer arrow keys change list selection Hi All, I am using a custom item renderer in a TileList that has a TextInput child allowing the EU to view and enter some text for the item. When the user clicks on the TextInput it becomes focused however, when in the focused state the L/R Arrow key events are hanlded by the parent TileList not the TextInput. When the user hits the L/R arrow key the TileList selection changes instead of the TextInput cursor possition moving accordingly. How can I have my TextInput handle the L/R arrorw keyboard events when focused and my TileList do its selection change when not focused? I have tried adding an event listener on the TextInput that simply calls event.stopPropagation() with no success. Any help greatly appreciated. Cheers, Greg
RE: [flexcoders] TextInput ItemRenderer arrow keys change list selection
TileList doesn't support focusable renderers like List or DataGrid so you might have more work to do. There's a lot of code in List or DataGrid to deal with it. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput ItemRenderer arrow keys change list selection Thanks Alex, much appreciated. You where right, I didnt have it set up correctly, I was adding my keyboard listener to the KEY_UP event and needed to be listening for the KEY_DOWN event. With that change my text arrow navigation works great without changing parent list selection! Now that is working I noticed another issue when navigating using the arrow keys. When my TextInput is selected navigation with L/R arrow keys is disabled and moves the cursor in the text field as expected. Up and down navigation is still supported and functional but what I found is that focus (input cursor) does not get cleared when I navigate the TileList using the U/D arrow keys...however, if I use the mouse focus is removed properly. Should the focus not be hanlded automatically, I have never had to manage it before? The list displays another ItemRenderer as selected so selection has changed however only my input field seems to be stuck in the input mode. How can I fix this, is this a job for the FocusManager I have not had to use yet? Thanks, Greg On Mon, Jan 5, 2009 at 1:47 PM, Alex Harui aha...@adobe.commailto:aharui%40adobe.com wrote: Try stopImmediatePropagation(), but stopPropagation() should have worked assuming you set it up correctly. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 9:37 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] TextInput ItemRenderer arrow keys change list selection Hi All, I am using a custom item renderer in a TileList that has a TextInput child allowing the EU to view and enter some text for the item. When the user clicks on the TextInput it becomes focused however, when in the focused state the L/R Arrow key events are hanlded by the parent TileList not the TextInput. When the user hits the L/R arrow key the TileList selection changes instead of the TextInput cursor possition moving accordingly. How can I have my TextInput handle the L/R arrorw keyboard events when focused and my TileList do its selection change when not focused? I have tried adding an event listener on the TextInput that simply calls event.stopPropagation() with no success. Any help greatly appreciated. Cheers, Greg
Re: [flexcoders] TextInput ItemRenderer arrow keys change list selection
Thanks for the info Alex. I decided to disable U/D list navigation too while my TextInput is in focus, resolving the issue. Much appreciated, Greg On Mon, Jan 5, 2009 at 5:17 PM, Alex Harui aha...@adobe.com wrote: TileList doesn't support focusable renderers like List or DataGrid so you might have more work to do. There's a lot of code in List or DataGrid to deal with it. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput ItemRenderer arrow keys change list selection Thanks Alex, much appreciated. You where right, I didnt have it set up correctly, I was adding my keyboard listener to the KEY_UP event and needed to be listening for the KEY_DOWN event. With that change my text arrow navigation works great without changing parent list selection! Now that is working I noticed another issue when navigating using the arrow keys. When my TextInput is selected navigation with L/R arrow keys is disabled and moves the cursor in the text field as expected. Up and down navigation is still supported and functional but what I found is that focus (input cursor) does not get cleared when I navigate the TileList using the U/D arrow keys...however, if I use the mouse focus is removed properly. Should the focus not be hanlded automatically, I have never had to manage it before? The list displays another ItemRenderer as selected so selection has changed however only my input field seems to be stuck in the input mode. How can I fix this, is this a job for the FocusManager I have not had to use yet? Thanks, Greg On Mon, Jan 5, 2009 at 1:47 PM, Alex Harui aha...@adobe.com wrote: Try stopImmediatePropagation(), but stopPropagation() should have worked assuming you set it up correctly. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Monday, January 05, 2009 9:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput ItemRenderer arrow keys change list selection Hi All, I am using a custom item renderer in a TileList that has a TextInput child allowing the EU to view and enter some text for the item. When the user clicks on the TextInput it becomes focused however, when in the focused state the L/R Arrow key events are hanlded by the parent TileList not the TextInput. When the user hits the L/R arrow key the TileList selection changes instead of the TextInput cursor possition moving accordingly. How can I have my TextInput handle the L/R arrorw keyboard events when focused and my TileList do its selection change when not focused? I have tried adding an event listener on the TextInput that simply calls event.stopPropagation() with no success. Any help greatly appreciated. Cheers, Greg
[flexcoders] TextInput to allow compact text content
Hi all, With reference to https://bugs.adobe.com/jira/browse/SDK-17426 Any idea to have a workaround to make TextInput to allow compact text content? Best Regards, Chee Seng
[flexcoders] TextInput with Prompt
If you don't have a lot of space for a label next to a TextInput, then you may want to try using my TextInputPrompted class. You use this class just like you would any other TextInput, but there's an extra prompt property. Whatever you set prompt to is displayed in the TextInput in light grey. Once you start typing something in the TextInput, the prompt will go away, and the text turns dark. Here's a blog about it http://gtb104.blogspot.com/2008/10/new-flex-class.html .
[flexcoders] textinput, validation, event
Hey all, I have a question for you. I am trying to trigger an event when a textinput validate is incorrect. Here is my code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=MeChild() mx:Script ![CDATA[ private var nArray:Array = new Array; private function ErrorAdd(event:Event):void { trace('working'); trace(event.target); } private function MeChild():void { var getChild:Array = CVS.getChildren(); trace(getChild.length); } ]] /mx:Script mx:Canvas id=CVS x=74.5 y=10 width=478 height=373 mx:TextInput id=t1 valid=ErrorAdd(event);/ mx:TextInput id=t2 y=30/ mx:Button label=Press ME click=MeChild() x=95.5 y=185/ /mx:Canvas mx:StringValidator id=t1v source={t1} property=text minLength=2 maxLength=10/ /mx:Application When I enter the correct informatin into t1, ErrorAdd should kick off one of the traces. I am not sure why not, what am I doing wrong. Thanks, timgettt
[flexcoders] TextInput and TextArea ancestory
I need to write a class that can contain either a TextArea or TextInput as one of it's private parameters. Essentially it's a composite component that can be either a TextInput or TextArea with some additional properties. My problem arises from the fact that the common ancestor to both of these controls is UIComponent that does not have a text attribute so I can't cast down to that common ancestor when setting the text attribute. Since I don't know that much about Flex I was wondering if there's a common interface I'm missing or some other way to achieve access to what I thought would be a common attribute. Dale
RE: [flexcoders] TextInput and TextArea ancestory
There is no such interface. You can work around this by casting away the UIComponent type: var textThing:UIComponent; ... Object(textThing).text = Hello; If you don't want to defeat type-safety, you'll have to do if (textThing is TextInput) TextInput(textThing).text = Hello; else if (textThing is TextArea) TextArea(textThing).text = Hello; You could obviously put this in a utility method like setText(). Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale Cook Sent: Thursday, August 21, 2008 9:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput and TextArea ancestory I need to write a class that can contain either a TextArea or TextInput as one of it's private parameters. Essentially it's a composite component that can be either a TextInput or TextArea with some additional properties. My problem arises from the fact that the common ancestor to both of these controls is UIComponent that does not have a text attribute so I can't cast down to that common ancestor when setting the text attribute. Since I don't know that much about Flex I was wondering if there's a common interface I'm missing or some other way to achieve access to what I thought would be a common attribute. Dale
[flexcoders] TextInput Reskin = runtime Error! ??
I'm working on an app that's been reskinned. When I use a TextInput inside an Accordian, it causes the app to act funny. I've posted a simple example which causes the negative result. Running the application WITHOUT a skin (as it is) works as desired. When I add mx:Style source='assets.css' / to the code and rerun - I get the error! The error would be the equivalent of clicking a TextInput to give it focus. Upon doing so, focus is shifted elsewhere (away from the TextInput). When this happens, you can't ever edit the TextInput. Any ideas? a simplified source: mx:Application mx:Accordian width=100% height=100% mx:Canvas width=100% height=100% mx:TextInput / /mxCanvas /mx:Accordian /mx:Application
[flexcoders] TextInput as item renderer for ComboBox
How is mx.controls.TextInput control used as an item renderer for mx.controls.ComboBox control?
RE: [flexcoders] TextInput as item renderer for ComboBox
It is only in the display field. It is not the renderer for the dropdown. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chandruflex Sent: Sunday, July 06, 2008 10:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput as item renderer for ComboBox How is mx.controls.TextInput control used as an item renderer for mx.controls.ComboBox control?
[flexcoders] TextInput with a corner radius
I want to have a text input with nice rounded corners. You can't do this through CSS but you can do it through scale 9 (i think). Anyone have a link to an example? Black background preferred? I know scale9.com has a lot of them but I haven't found one I could use. -Nate
[flexcoders] TextInput Auto Bindable Reverse - Set in object
Hi How otimize my component? Sorry for my bad english! Code component: - ?xml version=1.0 encoding=utf-8? mx:TextInput xmlns:mx=http://www.adobe.com/2006/mxml; change=change() mx:Script ![CDATA[ public var objeto:String; public var atributo:String; private function change():void { parentDocument[objeto][atributo] = text; } ]] /mx:Script /mx:TextInput --- Code application: - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:ad=componentes.* creationComplete=creationComplete() ad:TextInput objeto=pessoaVoNovo atributo=nmPessoa text={pessoaVoAntigo.nmPessoa}/ mx:Button label=PessoaVoNovo click=Alert.show(pessoaVoNovo.nmPessoa)/ mx:Script ![CDATA[ import mx.controls.Alert; import classes.PessoaVo; [Bindable] public var pessoaVoNovo:PessoaVo; [Bindable] public var pessoaVoAntigo:PessoaVo; private function creationComplete():void { pessoaVoAntigo = new PessoaVo(); pessoaVoNovo = new PessoaVo(); pessoaVoAntigo.cdPessoa = 1; pessoaVoAntigo.nmPessoa = Maria; } ]] /mx:Script /mx:Application --- Code model: package classes { [Bindable] public class PessoaVo { public var cdPessoa:int; public var nmPessoa:String; } }
[flexcoders] TextInput valid Event not working correctly
I have a form with a few TextInput components. I have a TextInput with a NumberValidator as one of the form items. On this TextInput I have coded the valid and invalid events to populate other fields depending on what has been entered. My experience is that the valid event is not working correctly. I have this sample code to illustrate: in the first field enter 10, the valid event does not fire in the first field enter 200, the invalid event fires correctly. in the first field enter 10, the valid event does work now in the first field enter 20, the valid event does not fire. Any ideas. What I want is a way to fire an event after the validator has completed, the valueCommit and FocusOut seem to fire before the validator has completed. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script![CDATA[ private function testA():void { msgTXT.text = Valid: + testTXT.text; } private function testB():void { msgTXT.text = Invalid: + testTXT.text; } ]]/mx:Script mx:NumberValidator source={testTXT} property=text minValue=1 maxValue=99/ mx:VBox mx:Form mx:FormItem label=Integer mx:TextInput id=testTXT valid=testA() invalid=testB()/ /mx:FormItem mx:FormItem label=Message mx:TextInput id=msgTXT editable=false width=160/ /mx:FormItem /mx:Form /mx:VBox /mx:Application Thanks Andrew
Re: [flexcoders] TextInput valid Event not working correctly
I believe what you want to do is use the trigger and triggerEvent properties of your NumberValidator, then use the NumberValidators valid and invalid events to do the work. To try this remove the event handling from your existing code and try the following mx:NumberValidator source={testTXT} property=text minValue=1 maxValue=99 trigger={testTxt} triggerEvent=change valid=testA() invalid=testB()/ Also worth noting is that Flex has a really great built-in ability to show the error information with the invalid field. To check this out try public function testA():void{ testTxt.errorString = ; } public function testB():void{ testTxt.errorString = The number must be between 1 and 99; } hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com greenfishinwater wrote: I have a form with a few TextInput components. I have a TextInput with a NumberValidator as one of the form items. On this TextInput I have coded the valid and invalid events to populate other fields depending on what has been entered. My experience is that the valid event is not working correctly. I have this sample code to illustrate: in the first field enter 10, the valid event does not fire in the first field enter 200, the invalid event fires correctly. in the first field enter 10, the valid event does work now in the first field enter 20, the valid event does not fire. Any ideas. What I want is a way to fire an event after the validator has completed, the valueCommit and FocusOut seem to fire before the validator has completed. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script![CDATA[ private function testA():void { msgTXT.text = Valid: + testTXT.text; } private function testB():void { msgTXT.text = Invalid: + testTXT.text; } ]]/mx:Script mx:NumberValidator source={testTXT} property=text minValue=1 maxValue=99/ mx:VBox mx:Form mx:FormItem label=Integer mx:TextInput id=testTXT valid=testA() invalid=testB()/ /mx:FormItem mx:FormItem label=Message mx:TextInput id=msgTXT editable=false width=160/ /mx:FormItem /mx:Form /mx:VBox /mx:Application Thanks Andrew
[flexcoders] TextInput editable property doesn't work,why?
Hi, I have the following code and I want to set the textInpt can not edited,But I do not know why the following code do not work. Please help me.Thanks Mark 1 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=880 height=1300 creationComplete=init() 2 private function init():void { local_amount.editable = false; prof_amount.editable=false; } 3 mx:TextInput id=local_amount x=582 y=832 width=101/ mx:TextInput id=prof_amount x=582 y=973 width=101/
Re: [flexcoders] TextInput editable property doesn't work,why?
TextInput.editable expects a Boolean value not a String. local_amount.editable = false; prof_amount.editable = false; Alger markflex2007 wrote: Hi, I have the following code and I want to set the textInpt can not edited,But I do not know why the following code do not work. Please help me.Thanks Mark 1 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=880 height=1300 creationComplete=init() 2 private function init():void { local_amount.editable = false; prof_amount.editable=false; } 3 mx:TextInput id=local_amount x=582 y=832 width=101/ mx:TextInput id=prof_amount x=582 y=973 width=101/
[flexcoders] TextInput as Header Renderer problem
Hi, I'm trying to use the example that Alex has on his blog for a combobox header, but I want a label then textInput as my header. I need to be able to get events from the textinput. Unfortunately, it won't let me enter any text into the field. I get events for focus in and change, but no text is visible. Is there some property that needs to be set to allow it to be editable. The column is editable and the textinput is also. Thanks, John
RE: [flexcoders] TextInput as Header Renderer problem
Getting focus to the header when the cells are editable will be tricky. I would expect you to get a focusOut right away and some cell to become editable. If you post a test case, I'll try to look at it, but it could be several days before I get to it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of j_lentzz Sent: Monday, December 17, 2007 2:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput as Header Renderer problem Hi, I'm trying to use the example that Alex has on his blog for a combobox header, but I want a label then textInput as my header. I need to be able to get events from the textinput. Unfortunately, it won't let me enter any text into the field. I get events for focus in and change, but no text is visible. Is there some property that needs to be set to allow it to be editable. The column is editable and the textinput is also. Thanks, John
Re: [flexcoders] TextInput for percentage
I'll take a look at flexlib, but just to clarify, I don't just want % in the field - when the value in the model is 100, I want 100%, and I want the user to be able to type 100 or 100%. Thanks. On Dec 11, 2007 7:01 PM, Adnan Doric [EMAIL PROTECTED] wrote: Hello, I would go for : Flexlib: PromptingTextInput.prompt = % + PromptingTextInput.restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
RE: [flexcoders] TextInput for percentage
Check out the TextInputMask.as and the MaskFormatter.as components generated by the FB Coldfusion Application Wizard. These might do what you want. Also, there's a masked text input component on the Adobe Flex exchange that would probably do what you want, too. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, December 12, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput for percentage I'll take a look at flexlib, but just to clarify, I don't just want % in the field - when the value in the model is 100, I want 100%, and I want the user to be able to type 100 or 100%. Thanks. On Dec 11, 2007 7:01 PM, Adnan Doric HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I would go for : Flexlib: PromptingTextInput.-prompt = % + PromptingTextInput.-restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatte-rs. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks. No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.1/1181 - Release Date: 12/11/2007 5:05 PM
[flexcoders] TextInput for percentage
Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
Re: [flexcoders] TextInput for percentage
Hello, I would go for : Flexlib: PromptingTextInput.prompt = % + PromptingTextInput.restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
[flexcoders] TextInput control and long text
If you have text in a TextInput control that is longer than the control you get a undesirable behavior. When take the the cursor to the end of the TextInput control and leave it, only the last part of the file name is displayed when the control loses focus. I tried a few different ways to force the text to show the beginning of the text again, but nothing seems to stick. Any ideas? - Michael
RE: [flexcoders] TextInput control and long text
Did you try: focusOut=myTI.horizontalScrollPosition = 0 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: Tuesday, September 04, 2007 11:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput control and long text If you have text in a TextInput control that is longer than the control you get a undesirable behavior. When take the the cursor to the end of the TextInput control and leave it, only the last part of the file name is displayed when the control loses focus. I tried a few different ways to force the text to show the beginning of the text again, but nothing seems to stick. Any ideas? - Michael
[flexcoders] TextInput vs. ENTER key.
Hello, I have a number of TextInput controls that I'm using with Validators (phoneNumber, email, etc). It all works correctly, except that I want an ENTER (or RETURN) to bump the user out of the field (therefore triggering the validator). Any ideas how to do this? Will RESTRICT allow me to tell TextInput to treat ENTER and RETURN the same as TAB? TIA Steve
RE: [flexcoders] TextInput vs. ENTER key.
Listen for the enter event and set focus somewhere else. You can use focusManager.getNextFocusManagerComponent if you're not sure where to set focus. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Kellogg Sent: Tuesday, May 29, 2007 5:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput vs. ENTER key. Hello, I have a number of TextInput controls that I'm using with Validators (phoneNumber, email, etc). It all works correctly, except that I want an ENTER (or RETURN) to bump the user out of the field (therefore triggering the validator). Any ideas how to do this? Will RESTRICT allow me to tell TextInput to treat ENTER and RETURN the same as TAB? TIA Steve
[flexcoders] TextInput Ignoring CursorManager.set()
Is there a way to stop a TextInput control from displaying its I-bar when I hover over it? I have previously set a custom cursor to display and I would like it to stay the same when it moves over a TextInput control. Thanks, Troy
[flexcoders] textInput for passwords
How do you get a text input to hide the characters you type in like you do with input type=password in HTML?
RE: [flexcoders] textInput for passwords
Set displayAsPassword to true on the text input field. Karl Cynergy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Gray Sent: Tuesday, March 27, 2007 5:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] textInput for passwords How do you get a text input to hide the characters you type in like you do with input type=password in HTML?
[flexcoders] TextInput - Incorrect focus behavior
Hi all, Seems to me that focus events in TextInputs are a bit out of whack. The test application below should never allow focus on the phoneNumberInput field, since its focusIn event immediately redirects focus back to the zipcodeInput field. However, the zipCodeInput field remains active (as indicated by the blue highlight) the phoneNumberInput retains the prompt (!!). This is a major problem for us as we would like the focus and the prompt to stay in the active field on occasions where the content of the field is invalid. As far as I am concerned this weird focus/prompt behavior is a bug. $5 million question now is : does anybody know a workaround? Thanks for all feedback, = Dirk ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Form mx:TextInput id=zipCodeInput / mx:TextInput id=phoneNumberInput focusIn=zipCodeInput.setFocus() / /mx:Form /mx:Application
[flexcoders] TextInput change evevnt and databinding: Is this a bug?
Hi, Has any else found this? The TextInput has a change event, which according to the docs Dispatched when text in the TextInput control changes through user input or data binding. This event does not occur if you use ActionScript code to change the text. The bit that seems broken is that it is NOT dispatched when databinding is used. Try running the below app and see what you get: The second TextInput has a change event that traces I Changed, and from my understanding of the docs it should fire when TextInput one is updated, as a biniding is used between the 2 TextInputs. With my testing it is only tracing out then up enter text in to the two and on the one --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:HBox mx:TextInput id=one / mx:TextInput id=two text={one.text} change=trace('I Changed') / /mx:HBox /mx:Application --- I am on Flex 2.0.1... Regards, David PS: why is the datatype int lower case, as most (all) others start with a capital? EG: public var someInt:int = new int(); public var someString:Sting = new String();
[flexcoders] TextInput control (displaying CurrencyFormatted data) question
Hello All, In all the examples I've seen for the CurrencyFormatter when it comes to using a TextInput for displaying the data, it requires TWO TextInputs - one that contains the value to be formatted, and one that displays the finally formatted data. Isn't there a way, where the same TextInput can be used twice? The holder of the data, and the displayer of the formatted data? Or is this simply not possible? Or is my best bet (since 2 controls would look stupid), to declare a Variable that acts as the Value Holder (as well as the item being bound to my DataSet), and then the actual TextInput strictly for displaying to the user, the CurrencyFormatted value? As far as I can tell, this is THE way to do it - but I just wanted to throw this question out there. Any comments regarding this, would be greatly appreciated! Thanks, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] TextInput Validation on Change Event causes Halo Error Bug
I seem to be experiencing a minor bug with a TextInput and a StringValidator. When the TextInput is not valid, a red halo appears around the focussed TextInput. I execute the validator.validate() on the change event so it updates as the user types data - as per the quick start bestpractices. When I set focus to the Textinput using the Tab key, it works correctly and as soon as the field is valid, the red halo goes away. But when I click to focus in the textInput, the red halo stays until the component loses focus. Any ideas? Also, the same behavior can be seen on Aral's Quick Start(the last example): http://www.adobe.com/devnet/flex/quickstart/validating_data/ Thanks Sam __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] TextInput component issue
I've got a component that extends TextInput that I need to do some extra stuff for validation with, so I've done the following: override public function validationResultHandler(event:ValidationResultEvent):void { super.validationResultHandler(event); if(event.results[0][isError]) { invalidHandler(); } else { validHandler(); } } which works fine as long as every component has a validator assigned to it. When I just had seperate functions tied to the event (i.e. addEventListener('valid', validHandler);) I wasn't getting the little red errorTip showing up, so I went with this which seems to work ok. However, as soon as I have a component that doesn't have a validator assigned I get the following: Cannot access a property or method of a null object reference. at controls::SmartTextInput/validationResultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.validators::Validator/::processValidation() at mx.validators::Validator/validate() I could have two versions of my component, one validating and one not, but that seems silly. Anyone know what's going on? I looked through the UIComponent.as and ValidationResultEvent.as without seeing anything that made much sense. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] textInput autocommit?
have you tried focusOut event?http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut On 28/07/06, ryan harlin [EMAIL PROTECTED] wrote: I posted a similar question with more explanation but I'll simplify since I probably bored people away from answering: How do I get a textInput field to autocommit to my data source (FDS)? On leaving the field I want the changes to update the database but I can't seem to figure it out. I can get it work on pressing the enter key but not upon losing focus. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] textInput autocommit?
You could also use the"valueCommit"event. Benoit Hediard De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de sinatoskEnvoyé: vendredi 28 juillet 2006 10:04À: flexcoders@yahoogroups.comObjet: Re: [flexcoders] textInput autocommit? have you tried "focusOut" event?http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut On 28/07/06, ryan harlin [EMAIL PROTECTED] wrote: I posted a similar question with more explanation butI'll simplify since I probably bored people away fromanswering:How do I get a textInput field to autocommit to mydata source (FDS)? On leaving the field I want thechanges to update the database but I can't seem tofigure it out. I can get it work on pressing theenter key but not upon losing focus.__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] textInput autocommit?
wow. I feel really silly. The language reference for the textInput control doesn't mention focusOut. It only mentions 4 things under the events section: change, dataChange, enter, and textInput. But you're right. focusOut works like a charm. *blush* --- sinatosk [EMAIL PROTECTED] wrote: have you tried focusOut event? http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut On 28/07/06, ryan harlin [EMAIL PROTECTED] wrote: I posted a similar question with more explanation but I'll simplify since I probably bored people away from answering: How do I get a textInput field to autocommit to my data source (FDS)? On leaving the field I want the changes to update the database but I can't seem to figure it out. I can get it work on pressing the enter key but not upon losing focus. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] textInput autocommit?
On Friday 28 July 2006 16:33, ryan harlin wrote: wow. I feel really silly. The language reference for the textInput control doesn't mention focusOut. You clicked 'Hide Inherited Events' didn't you :-) Bang the 'Show Inherited Events' link just above the list of events :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] textInput autocommit?
focusOut is an inherited event. If you expand the list of inherited events, you will see it. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryan harlinSent: Friday, July 28, 2006 11:33 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] textInput autocommit? wow. I feel really silly. The language reference forthe textInput control doesn't mention focusOut. Itonly mentions 4 things under the events section: change, dataChange, enter, and textInput.But you're right. focusOut works like a charm. *blush*--- sinatosk [EMAIL PROTECTED]com wrote: have you tried "focusOut" event? http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut On 28/07/06, ryan harlin [EMAIL PROTECTED]com wrote: I posted a similar question with more explanation but I'll simplify since I probably bored people away from answering: How do I get a textInput field to autocommit to my data source (FDS)? On leaving the field I want the changes to update the database but I can't seem to figure it out. I can get it work on pressing the enter key but not upon losing focus. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] TextInput and ESC key **bug**
I appologize if this is an old topic. I've searched the list and cannot find any mention of it. There appears to be a bug in Flex 2.0 B3 that if a user presses the ESC key while focused in a TextInput control (or Editable ComboBox) the control will revert to empty or the previous text value. The bug is that from that point on you cannot programatically set the value of the .text property of the control. This can be easily reproduced in the TextInput sample in the Flex Component Explorer. 1) Click the [Copy] button. 2) Focus in the lower TextInput box and press the ESC key on the keyboard... the text will disappear. 3) Click the [Copy] button again... nothing happens. - kelly Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput and masking
RegExp is in Flex 2, but not in Flex 1.5. If you install Beta 3, open the Help Search panel, and search for RegExp that should get you started. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Sunday, May 14, 2006 2:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput and masking Hello Gordon, You are using RegExp in the sample, so two questions: Can you tell me where I can get RegExp documentation? Do we have RegExp in Flex 1.5, 2? Best regards Stanislav On 5/14/06, Gordon Smith [EMAIL PROTECTED] wrote: TextInput has a 'restrict' property that lets you specify the set of characters that can be typed. But it doesn't have masking support, such as NNN-NN- for entering a social security number. To implement masking, you'd need to handle the textInput event. If you call event.preventDefault() in your handler, you can prevent the text from being entered. Here's a quick-and-dirty example of SSN masking. It ensures that the first three characters you type must be a digit, the next must be a hyphen, etc. It doesn't do the right thing if you move the insertion point or select text and then type. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private var masks:Array = [ null, new RegExp(\\d), new RegExp(\\d\\d), new RegExp(\\d\\d\\d), new RegExp(\\d\\d\\d\\-), new RegExp(\\d\\d\\d\\-\\d), new RegExp(\\d\\d\\d\\-\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d\\d\\d) ]; private function textInputHandler(event:TextEvent):void { var newText:String = ssn.text + event.text; var mask:RegExp = masks[newText.length]; if (!mask || !mask.test(newText)) event.preventDefault(); } ]] /mx:Script mx:TextInput id=ssn textInput=textInputHandler(event)/ /mx:Application - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Saturday, May 13, 2006 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput and masking Is there a simple way of enabling a text input mask on the control or do you need to write a custom component to extend the features available with the textInput? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] TextInput and masking
Is there a simple way of enabling a text input mask on the control or do you need to write a custom component to extend the features available with the textInput? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TextInput and masking
TextInput has a 'restrict' property that lets you specify the set of characters that can be typed. But it doesn't have masking support, such as NNN-NN- for entering a social security number. To implement masking, you'd need to handle the textInput event. If you call event.preventDefault() in your handler, you can prevent the text from being entered. Here's a quick-and-dirty example of SSN masking. It ensures that the first three characters you type must be a digit, the next must be a hyphen, etc. It doesn't do the right thing if you move the insertion point or select text and then type. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private var masks:Array = [ null, new RegExp(\\d), new RegExp(\\d\\d), new RegExp(\\d\\d\\d), new RegExp(\\d\\d\\d\\-), new RegExp(\\d\\d\\d\\-\\d), new RegExp(\\d\\d\\d\\-\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d\\d), new RegExp(\\d\\d\\d\\-\\d\\d\\-\\d\\d\\d\\d) ]; private function textInputHandler(event:TextEvent):void { var newText:String = ssn.text + event.text; var mask:RegExp = masks[newText.length]; if (!mask || !mask.test(newText)) event.preventDefault(); } ]] /mx:Script mx:TextInput id=ssn textInput=textInputHandler(event)/ /mx:Application - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Saturday, May 13, 2006 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput and masking Is there a simple way of enabling a text input mask on the control or do you need to write a custom component to extend the features available with the textInput? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] TextInput control
Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TextInput control
If I use focus this event fire irrespective of whether content is modified or not. I dont want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 3:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] TextInput control
There is no such event. You'll need to create your own dirtyFlag that gets set to true when the change occurs, and have focusOut inspect if the dirtyFlag is true, and if so, fire your new "changed and focus out" event. - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:54 PM Subject: RE: [flexcoders] TextInput control If I use focus this event fire irrespective of whether content is modified or not. I dont want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Monday, November 28, 2005 3:49 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] TextInput control
You can club both events as Change event AND focusOut event. i m not sure...let me know if it works.. On 11/29/05, Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote: If I use focus – this event fire irrespective of whether content is modified or not. I don't want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXLSent: Monday, November 28, 2005 3:49 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried "change" event and found that this event is firing for each change, meaning for every key board press while entering text in it. I don't want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- jignesh dodiya -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TextInput control
I totally agree with you and infact I am planning to do so. But my concern is If I have some code, like assigning value to dirtyFlag, in change event then that code will be executed several times if I am enter a text of 150 char then that assignment code will be executed 150 time. Which is a over load on system. Dont you agree with me??? Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 4:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control There is no such event. You'll need to create your own dirtyFlag that gets set to true when the change occurs, and have focusOut inspect if the dirtyFlag is true, and if so, fire your new changed and focus out event. - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:54 PM Subject: RE: [flexcoders] TextInput control If I use focus this event fire irrespective of whether content is modified or not. I dont want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 3:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] TextInput control
No, because it only fires if the focusOut event fires. Check it: function initComponent() { my_ti.addEventListener("change", this); my_ti.addEventListener("focusOut", this); textDirty = false; } function change() { textDirty = true; } function focusOut() { if(textDirty) { textDirty = false; dispatchEvent({type: "changeAndFocusOut", target: this}); } } - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 4:13 PM Subject: RE: [flexcoders] TextInput control I totally agree with you and infact I am planning to do so. But my concern is If I have some code, like assigning value to dirtyFlag, in change event then that code will be executed several times if I am enter a text of 150 char then that assignment code will be executed 150 time. Which is a over load on system. Dont you agree with me??? Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Monday, November 28, 2005 4:09 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] TextInput control There is no such event. You'll need to create your own dirtyFlag that gets set to true when the change occurs, and have focusOut inspect if the dirtyFlag is true, and if so, fire your new "changed and focus out" event. - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:54 PM Subject: RE: [flexcoders] TextInput control If I use focus this event fire irrespective of whether content is modified or not. I dont want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Monday, November 28, 2005 3:49 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TextInput control
Thank you very much. I will try to implement. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 4:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control No, because it only fires if the focusOut event fires. Check it: function initComponent() { my_ti.addEventListener(change, this); my_ti.addEventListener(focusOut, this); textDirty = false; } function change() { textDirty = true; } function focusOut() { if(textDirty) { textDirty = false; dispatchEvent({type: changeAndFocusOut, target: this}); } } - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 4:13 PM Subject: RE: [flexcoders] TextInput control I totally agree with you and infact I am planning to do so. But my concern is If I have some code, like assigning value to dirtyFlag, in change event then that code will be executed several times if I am enter a text of 150 char then that assignment code will be executed 150 time. Which is a over load on system. Dont you agree with me??? Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 4:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control There is no such event. You'll need to create your own dirtyFlag that gets set to true when the change occurs, and have focusOut inspect if the dirtyFlag is true, and if so, fire your new changed and focus out event. - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:54 PM Subject: RE: [flexcoders] TextInput control If I use focus this event fire irrespective of whether content is modified or not. I dont want this to happen. I want an event which should fire up only if content changed and tab out. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 3:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput control focusOut - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:42 PM Subject: [flexcoders] TextInput control Hi, Can some one suggest me which event is the best event to handle a situation like - user changes the content of textinput and tabs out of it ? I tried change event and found that this event is firing for each change, meaning for every key board press while entering text in it. I dont want this. What I am looking for is an event which fires only one time when user changes existing content and tabs out. Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] TextInput/List matching
Anyone have code to share to accomplish the following: A blank TextInput and populated List controls are used As the user types into the TextInput, the List control dynamically displays only words than match what the user has entered thus far into the TextInput When the Backspace key is pressed the List also updates Hoping someone has already fought this battle. Thanks- Matt Matthew S. Boles Principal Instructor Macromedia [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] TextInput value passed to RemoteObject
When I pass no value coming from a textinput to a CFC called with remoteObject and when the CFC is waiting for a numeric...How do I configure the empty value before passing to the CFC? CALL: MethodName: EEwizard3.cf.superficie.sauvegarde Parameters (object #2) .[0]: 1 .[1]: STATUS: Status (object #2) .code: Server.Processing .description: The argument SUPERFICIEZONE passed to function sauvegarde() is not of type numeric. .details: .level: error .type: .rootcause (object #3) ..code: (undefined) ..description: The argument SUPERFICIEZONE passed to function sauvegarde() is not of type numeric. ..details: ..level: error ..type: -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput value passed to RemoteObject
Use a change or focusOut that calls a function which in turn makes the remote call. This allows you to manipulate what youre sending rather than direct data binding between ui component and the service. -Stace From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard Sent: Sunday, July 24, 2005 10:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextInput value passed to RemoteObject When I pass no value coming from a textinput to a CFC called with remoteObject and when the CFC is waiting for a numeric...How do I configure the empty value before passing to the CFC? CALL: MethodName: EEwizard3.cf.superficie.sauvegarde Parameters (object #2) .[0]: 1 .[1]: STATUS: Status (object #2) .code: Server.Processing .description: The argument SUPERFICIEZONE passed to function sauvegarde() is not of type numeric. .details: .level: error .type: .rootcause (object #3) ..code: (undefined) ..description: The argument SUPERFICIEZONE passed to function sauvegarde() is not of type numeric. ..details: ..level: error ..type: -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] TextInput selected
Work, thank's, do you remember fscommand ;-) for you it's possibile to show/hide a titleWindows popup style via fscommand? for example my c++ app set fscommand('loading',true) and make something, then set fscommand('loading',false), when loding it's true i wish display a window. SOrry but my knowledge about fscommand, it's only for set variable, but for call function i have no idea. Bye Devis Abdul Qabiz ha scritto: Hi, You can set focus to TextInput and then use Selection object to select the text inside the textinput. Once TitleWindow is shown, call following code from a relevant place, may be in creationComplete event handler of TitleWindow. ppv.setFocus(); var len = ppv.length; Selection.setSelection(0, len-1); That would select the text in the TextInput. Hope that helps... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 7:31 PM To: Flex Coders Subject: [flexcoders] TextInput selected Hi, it's possibile i call this TitleWindow, the ppv value is dispaly? Sorry, i wish that the value is selected, in this way my end user write a new value without clear a textInput. Can you help me please? Devis ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Cambio prezzo manuale width=100% height=100% closeButton=true click=deletePopUp(); mx:HBox mx:Label text=Prezzo Vendita/ mx:TextInput id=ppv text={examples} enter=Close() / /mx:HBox /mx:TitleWindow Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput selected
Hi, If you want to do something inside Flex app from C++ app, then you can use SetVariable(..) function to set a variable/setter. Watch the variable in Flex app and do the desired action on change. Look at my blog, I posted an example how you can call a function in flex app from external javascript. The same principle would apply if your app is inside a C++ shell.. http://www.abdulqabiz.com/blog/archives/macromedia_flex/000107.php Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 12:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput selected Work, thank's, do you remember fscommand ;-) for you it's possibile to show/hide a titleWindows popup style via fscommand? for example my c++ app set fscommand('loading',true) and make something, then set fscommand('loading',false), when loding it's true i wish display a window. SOrry but my knowledge about fscommand, it's only for set variable, but for call function i have no idea. Bye Devis Abdul Qabiz ha scritto: Hi, You can set focus to TextInput and then use Selection object to select the text inside the textinput. Once TitleWindow is shown, call following code from a relevant place, may be in creationComplete event handler of TitleWindow. ppv.setFocus(); var len = ppv.length; Selection.setSelection(0, len-1); That would select the text in the TextInput. Hope that helps... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 7:31 PM To: Flex Coders Subject: [flexcoders] TextInput selected Hi, it's possibile i call this TitleWindow, the ppv value is dispaly? Sorry, i wish that the value is selected, in this way my end user write a new value without clear a textInput. Can you help me please? Devis ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Cambio prezzo manuale width=100% height=100% closeButton=true click=deletePopUp(); mx:HBox mx:Label text=Prezzo Vendita/ mx:TextInput id=ppv text={examples} enter=Close() / /mx:HBox /mx:TitleWindow Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] TextInput selected
Hi, it's possibile i call this TitleWindow, the ppv value is dispaly? Sorry, i wish that the value is selected, in this way my end user write a new value without clear a textInput. Can you help me please? Devis ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Cambio prezzo manuale width=100% height=100% closeButton=true click=deletePopUp(); mx:HBox mx:Label text=Prezzo Vendita/ mx:TextInput id=ppv text={examples} enter=Close() / /mx:HBox /mx:TitleWindow Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput selected
Hi, You can set focus to TextInput and then use Selection object to select the text inside the textinput. Once TitleWindow is shown, call following code from a relevant place, may be in creationComplete event handler of TitleWindow. ppv.setFocus(); var len = ppv.length; Selection.setSelection(0, len-1); That would select the text in the TextInput. Hope that helps... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 7:31 PM To: Flex Coders Subject: [flexcoders] TextInput selected Hi, it's possibile i call this TitleWindow, the ppv value is dispaly? Sorry, i wish that the value is selected, in this way my end user write a new value without clear a textInput. Can you help me please? Devis ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Cambio prezzo manuale width=100% height=100% closeButton=true click=deletePopUp(); mx:HBox mx:Label text=Prezzo Vendita/ mx:TextInput id=ppv text={examples} enter=Close() / /mx:HBox /mx:TitleWindow Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] TextInput
Hi to all, stupid question mx:TextInput id=tdsc width=100% text= enabled=false keyDown=if (Key.isDown(113)) Elenco_Misure(Misure)/ i wish that TextInput is disable or readOnly but i can't fire keyDown event, there's a method to do, i think if there is a readOnly property this would work. Devis Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput
editable=false? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 12:11 AM To: Flex Coders Subject: [flexcoders] TextInput Hi to all, stupid question mx:TextInput id=tdsc width=100% text= enabled=false keyDown=if (Key.isDown(113)) Elenco_Misure(Misure)/ i wish that TextInput is disable or readOnly but i can't fire keyDown event, there's a method to do, i think if there is a readOnly property this would work. Devis Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] TextInput and cellEditor questions
Hi, I noticed that if I right click on a TextInput field the context menu displays Cut, Copy, Paste, Delete and Select All. How can I add an item to this menu? In a DataGrid, when one selects the cell, one is able to edit it. It appears that a TextInput is being displayed. I would like the TextInput to have the new menu items, and invoke a dialog when selected. How would I go about it. I believe that it is the cellEditor that I need to override. Thanks. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput Focused F2
thank's very much, turning at times a problem the things they become simpler Devis -Original Message- From: Dirk Eismann [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Date: Tue, 15 Mar 2005 14:20:56 +0100 Subject: RE: [flexcoders] TextInput Focused F2 Check for the key code 113 which refers to the F2 key: mx:TextInput keyDown=if (Key.isDown(113)) alert('F2 pressed'); / Dirk. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 2:09 PM To: Flex Coders Subject: [flexcoders] TextInput Focused F2 hi, i wish when user press for example F2 into TextInput show a popWindow, is it possible with flex/actionScript? Can you give me please a bit code Thank's Devis Yahoo! Groups Links