Flex Mobile 4.6 Textinput Databinding?

Mar 5, 2012

the new TextInput component which uses stagetext on 4.6 has this issue where if you bind a variable on it e.g
view1...

and i push a new view e.g view2, and pop it, hence reloading view1. on initial load, I can see that the textinput display the variable abruptly then the text vanishes afterwards..

I'd like to note that the variable is a stored data, and can be access on any view.

View 1 Replies


Similar Posts:


Flex :: Mobile Application TextInput Width

Jan 19, 2012

I made a simple Flex mobile application to test TextInput fields. I define my View with width=height=100% and use vertical layout. Inside I'm simply placing static TextInput components with width of 100, 200, 300, 400 respectively.I'm also displaying the width of each TextInput in its text property and it shows values which I've defined. What bothers me is the actual width of the TextFields doesn't match the properties of the phone emulator I'm running (Samsung Epic WxH = 480x775) or actual device. For instance the TextInput with width of 400 completely extends past the left and right sides of the device, while it should be contained inside it: it's 400 pixels wide and device has 480 usable pixels available. So do all other TextInputs.

View 1 Replies

Flex :: Mobile - Prevent Keyboard Show When Click Textinput Field On Device

Mar 2, 2011

I'm trying to prevent keyboard show when I click Textinput field on my device. I use Textinput only to show some text and for click event (to push a view).

View 2 Replies

Actionscript 3 :: Flex TextInput With Default Mobile Skins Automatically Regains Focus On Callout Close?

Feb 20, 2012

I'm working on a simple auto complete function for my Flex mobile app. For that I've got a CalloutButton that triggers a Callout.The Callout holds some lists from which the user can select items. On item select, the callout gets closed (calloutButton.closeDropDown())The very same behavior is done for a TextInput. The user inputs text, the callout opens and according to the entered text, the lists change. Works fine so far. Now, when the user selects an item from any of the lists, the callout closes. Also fine.Now the issue, after the callout is closed, the TextInput automatically regains focus.On a mobile device this is more than disturbing.

I narrowed this behavior down to the mobile TextInput skin spark.skins.mobile.TextInputSkin) since a TextInput without this skin class doesn't show this behavior.Now you might say just use the default skin instead but unfortunately I can't. The default skin has a bug with Android devices that doesn't pass though the enter event. That I could live with since I'n not necessarily dependent on the enter event, however, the spark mobile skin allows be to continue entering text in the TextInput even after the callout has been opened, which is desperately needed as the lists change according to the entered text.I can't provide any code as the problem has been narrowed down to the skinClass, thus should not be in my own code. Believe me, I tried every nice and not so nice method to prevent the TextInput from getting focus again, but nothing worked.

Edit:Below the steps of my application's behaviour. (to be fair, the workflow inside the callout is a little more complex, I'm working with several lists and a SplitViewNavigator here (thus can't use the Flextras autocomplete), but that doesn't affect the TextInput focus issue I'm facing).ter text in TextInputOn key change a Callout with two Lists is opened.The first List receives results according to the entered text from a webserviceUser selects item from listSecond list receives results according to selection from first list from webservice User selects item on second listCallout closes

View 1 Replies

Flex :: 3 - Flex: Affecting Function Result On Bindable Boolean Not Generating Databinding Event

Mar 14, 2011

I have a small question. I am probably misunderstanding something, but when I do :

[Code]....

View 1 Replies

Flex :: Disable Databinding In MXML?

Aug 14, 2010

When the Flex SDK converts MXML to actionscript it generates a lot of databinding code. I don't want to bind a variable, for example if I know the variable will not change.

I can't seem to find a work around in Flex to disable the autogenerated databinding. Also, I was hoping this might also help with some of the runtime warnings thrown by databinding. To get around them, I sometimes use the following, which only throws syntax warnings (and don't appear in my console at runtime).

Syntax warning: Data binding will not be able to detect changes when using square bracket operator.

View 1 Replies

Flash :: Flex DataBinding Drilling Down Through Arrays

Jun 14, 2010

The help page on the BindUtils.bindProperty function:url...Has this to say:"For example, to bind the property host.a.b.c, call the method as: bindProperty(host, ["a","b","c"], ...)." But what if I need to bind to host.a.b[2].c? How do I do that?

View 2 Replies

Flex :: Dynamically Databinding Radiobuttons To An Arraycollection

Sep 28, 2010

I have an arrayCollection with strings in them, is there some way I can databind a RadioButtonGroup to the array collection? As we can do for combo boxes [code]There is no RadioButtonGroup.dataprovider property.

View 2 Replies

Actionscript 3 :: Not Understanding Basics Of Dynamic DataBinding (bindPropety) In Flex

Jun 6, 2010

I need to dynamically bind properties of components created at runtime. In this particular case please assume I need to use bindProperty. I don't quite understand why the following simplistic test is failing (see code). When I click the button, the label text does not change. I realize that there are simpler ways to go about this particular example using traditional non-dynamic binding, but I need to understand it in terms of using bindProperty.

[Code]...

View 2 Replies

Flex :: Mobile Gesture Event : Slide Between 2 Views Like Google+ Mobile?

Mar 23, 2012

I would like to move (right or left according the current view) between 2 views when I move my finger on the mobile screen; for example with Google+ mobile application, in profil section, you can change the view just on move your finger on the screen, and the offset and the moving speed must be checked before change complete view.

View 2 Replies

Actionscript 3 :: Flex Databinding With SelectedItem Property Of The Combobox Update Many Times

Jan 23, 2010

well, I have a combobox which I have bind his selectedItem property to a value object object, like this

<fx:Binding source="styles_cb.selectedItem.toString()" destination="_uniform.style"/>
<fx:Declarations>
<fx:XML id="config_xml" xmlns="" source="config.xml" />
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

<mx:ComboBox x="66.15" y="63.85" editable="false" id="styles_cb" dataProvider="{config_xml.styles.style}" />

the value object is a custom class with some setters and getters, and I want to set a property based of the value of the selectedItem of the combo, so inside the value object I have something like this

[Bindable]
public function set style(value:String):void
{
_style = value;
trace(value);
}

my problem is that each time I change the combobox selection which in fact change the style property of the value object it does it 3 times, if I trace the value of the setter it actually do the trace 3 times, why?? how can I avoid this? I'm doing something wrong? or there is a better way to do it,

View 2 Replies

Flex :: Databinding Array To Canvas As Objects General Client Architecture?

May 27, 2009

I have creating a distributed note taking application in flex, it basically is a notepad I can keep in my desktop tray. When I add notes and goes back to a server and saves it in a database.

To am struggling to design the application correctly, I want to have a Syncing service that polls the webserver for changes and updates an Array of Note objects. The problem is that my note corresponds mxml component, aka SingleNote component. There are four different cases when being, a. a note is updated from the server poll, in that case I want to singlenote to update the settings b. a note is added to the array from the server, in that case a new SingleNote needs to be created c. a SingleNote is added from client, in that case a Note is added to array, and sent back to server d. a SingleNote is change from client, in that case the Note is updated in the array and sent back to server

The properties are SingleNote(Width, X, Y, Text).

View 1 Replies

Actionscript 3 :: Flex Databinding With SelectedItem Property Of The Combobox Update Many Times?

May 22, 2008

well, I have a combobox which I have bind his selectedItem property to a value object object, like this

<fx:Binding source="styles_cb.selectedItem.toString()" destination="_uniform.style"/>
<fx:Declarations>
<fx:XML id="config_xml" xmlns="" source="config.xml" />

[code].....

View 3 Replies

Flex :: Mobile Supports Native Mobile Features?

Jun 27, 2011

Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).

View 2 Replies

Actionscript 3 :: Flex: Changing Control Properties Based On Contents Of A Databinding Event?

Sep 3, 2009

I'm trying to set up a form that presents a combobox when an ArrayCollection it's bound to has several items, and doesn't present one when it's empty or only has one item. I've tried doing this by creating this class, but unfortunately, the data provider I've bound to is never not empty at the time the setter executes.

public class ComboboxOrFail extends ComboBox
{
public function ComboboxOrFail()
{

[code]....

View 1 Replies

ActionScript :: Android - What Is The Difference Between Mobile Project And Flex Mobile Project

Jun 5, 2011

I am going to make an Arabic application using Flex builder 4.5. I have two questions that need to be answered What is the difference between ActionScript Mobile Project and Flex Mobile Project. (AS Mobile Project supports iOS and Android but I doubt about it!!)
Is Arabic support available in Flex Mobile Projects or AS Mobile Projects? I know TLF supports Desktop and web apps but does it support mobile platforms?

View 1 Replies

Flex :: Detect TextInput Changes On An Editable ComboBox In Flex?

Jan 26, 2010

If my ComboBox is editable how can I tell if a change event comes from a change to the TextInput or a change in the selectedIndex of the drop down?

Is there a way to check for this in the event object?

View 1 Replies

Flex :: Flex 4 Textinput Skin Background Color

Jul 25, 2011

I'm trying to change the background color on a textinput component in flex 4. I've been able to change some of the appearance by messing with the canned code flash builder generates for the sparkskin but for some reason, background does nothing.I'm just trying to make the background black. I changed the background color but it's not working:[code]

View 1 Replies

Php :: Databinding Between Custom Component In AIR Application?

Jul 31, 2009

In my Main application I used label (like id=firstname) so we can use in main used firstname.text for databinding. But I have created canves custom component and load in main application using viewstack.In canves custom component how can I Bind label(id=firstname).I tried:var username:string = firstname.text but not show undefine firstname.How can I access all label and component in Main application to custom application.

View 1 Replies

Actionscript 3 :: Create A Databinding System?

Jan 14, 2012

I was wondering if it could be possible to create a databinding system in pure actionscript without using mx.binding.utils At least I would like to know what is the overhead of the databinding code and how exactly the ChangeWatcher knows when a property has been changed.

View 2 Replies

Flex :: TextInput Has Become Uneditable?

Mar 4, 2010

I have been developing an application for the past couple of weeks and as of yesterday all of the textinputs have become uneditable. It seems like when you click on one it switches between the focusIn state and then back to the focusOut state.

View 2 Replies

Flex :: TextInput - Component Goes Out Of Another One

Aug 31, 2010

If I drag a textInput from a component and drop it near the end of the another component, the textInput goes outside of the dropZone.
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="150" height="500" xmlns:components="components.*" >
[Code] .....

View 2 Replies

Flex :: Caret On TextInput Never Goes Away

Jan 29, 2011

I have a login form with various textInputs and a submit button. If you submit proper login credentials the system unloads the login view and loads the app view. Pretty standard. Unfortunately I've noticed this weird bug where if you hover over one of the textInput boxes with the mouse, then fill the form using only the keyboard (and leave the mouse parked on top of the textInput), and then tab to the submit button and press the space bar, i.e. login via keyboard, the mouse cursor will remain a caret in the new view, no matter what you do (move, click), until you find another textInput to undo the cursor state. I've tried to do all sorts of stuff via CursorManager but nothing seems to do the trick. I've tried dispatching events ROLL_OUT or MOUSE_OUT events to the textInput but that doesn't do the trick either.

View 2 Replies

Flex 4.6 TextInput Keyboard On IOS?

Dec 12, 2011

I have migrated my app from Flex 4.5.1 to Flex 4.6 and the TextInput click event was broken so I do this « skinClass="spark.skins.mobile.TextInputSkin" » (like was suggest here [URL]..and all seems work (tested in my Android and seems ok) but one user with iOS 5.1 complained that now the keyboard dont popup ?

Also complained for the TextArea that I dont have code in my extended component but also use the skin spark.skins.mobile.TextAreaSkin so the layout became similiar in my textinputs.

View 1 Replies

Iphone :: Access Mobile Device Camera From A Grails Application Using Jquery Mobile

Feb 23, 2012

I have a grails application using jquery mobile. I am hoping to find some way to access the camera on the devices. I thought about using flash to grab the webcam but that obviously wont work on Apple devices. Does anyone know of a way to do it and keep it all browser based? I am hoping that there is a plugin somewhere or maybe html5 has some magic in there that supports it.

View 1 Replies

Know When TextInput Component Is Active In Flex?

Jan 2, 2010

Imagine I have two TextInput components. How do I know which one is active?

View 1 Replies

Flex :: Change A Textinput Into Label

Mar 21, 2010

i create a form for order a item in flex. i use <mx:TextInput /> for getting the information from client and use a <mx:Button /> for submit the information in database. But client requirements is when user click on button then first show a confirmation page with details information that client give. But can't use another page or <mx:TextInput /> in this confirmation page, it will be <mx:Label />. After show the confirmation page if clients click on Button then submit the info. How can i convert a <mx:TextInput /> into <mx:Label /> with all properties in flex? Is it possible?

View 2 Replies

Flex :: MouseOver In TextInput Programatically

Jul 26, 2010

In flex, I am able to add mouseOver ( in mx:TextInput ) event as follow: mouseOver="canvas1_mouseDownHandler(event)"It is not the property of TextInput so how can I do it programatically in ActionScript?

View 1 Replies

Flex :: Place Cursor In Textinput In It?

Apr 21, 2011

How to place cursor in a text input when user login form comes. I want cursor place in username text input.

View 3 Replies

Flex :: MaxCharLimit On TextInput According To Its Width

Sep 5, 2011

I am using Flex 4.5 and I want to set the maximum characters limit according to the textinput width means if user enter more character then the textinput width it should not accept those extra characters.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved