Flex :: Checking For Change In Fields Under A Tab
Aug 9, 2009
I'm developing a flex application with 4 tabs. When the user switches a tab I want to reset the previous tab to its initial state. Also I need to alert the user, if he hasn't saved the changes he made if any, will be lost.I'm planning to set a variable in the Model, and set/reset it if any change happens in a field under a tab. But how do I monitor this? Is there any listener available for this?Also how do I check and reset the state of the previous tab? The contents that come under the tab is from components only.
How do I check if the user has made any edits in the current tab? Some fields are generated dynamically too.I'm calling a function in the onchange event of TabNavigator and asks the user if he really want to switch the tab.I want the other tab to load its contents only if the user clicks Yes to the Alert box I'm popping up. But now the confirmation box pops up, and the contents are loaded into the other tab and if the user clicks No it goes back to the other tab. How do I prevent the action of loading the contents of the other tab at all till the user presses Yes?
View 3 Replies
Similar Posts:
Aug 5, 2005
I wanted to make a contact form which checks all the fields to see if they are empty or have their defualt values still, code is as follows.. but it doesn't work:
[Code]....
View 11 Replies
May 24, 2010
Just wondering where I find a list of what can be error checked in input text fields?I'm looking for things like...- checking that letters and not numbers are entered- checking that an entered number is in a certain range
View 2 Replies
Jul 9, 2003
I'm creating a form in Flash MX and I need to created a script that check if the two passwrod text intup field are the same or not, if they are the same it will go to one frame and is they don't match it will go to a diferent frame. I need to created another script that will check if the text input field for the email has the symbol @ and .com, if this is true or false it will go to one frame or another.
View 1 Replies
Jun 18, 2011
I am just trying to check the contents of text field that the user can enter text into.
Here's the code:
btn_check.addEventListener(MouseEvent.CLICK, checkAnswer);
function checkAnswer(evt:MouseEvent):void {
if (answer.text=="48%") {
messageBox.text="CORRECT";
} else {
messageBox.text="INCORRECT. TRY AGAIN.";
}}
View 1 Replies
Jun 1, 2009
i am putting together a basketball court that has a text field on the left and right side with the same instance name of borderText.i need the text to change in each text field (borderText) simultaneously as you click on buttons to change the text style, color and size.i have successfully gotten one text field to change to change on the left side, but the text field on right side does not change at all.PRESENT CODE:
var newTF:TextFormat = borderText.getTextFormat();
redTextBtn.addEventListener(MouseEvent.CLICK, changeToRed);
blkTextBtn.addEventListener(MouseEvent.CLICK, changeToBlack);
[code].....
View 5 Replies
Feb 24, 2010
I need to have an input text and various dynamic texts but i am trying to make a puzzle using a substitution cipher.
i want the end user to only have to change one of the fields which would automatically fill other matching fields rather than all of them typed manually.
View 2 Replies
Dec 7, 2009
How do you know if the browser is actually using the cached swf RSL/library for Flex projects? I would like to be able to do different things from the preloader based on whether or not the user has never downloaded the library vs. they have it already cached by their browser.
View 1 Replies
Aug 25, 2011
I am working on a game in flex, and I am trying to create an xml file for each user if it is their first use, and then after that just access that file and edit it accordingly.Is there anything that could do this same thing first off, basically create and edit some sort of save state? I assume that flex would have some kind of saving state type of thing, but I am not sure what to look for in that respect.If not, does anyone know how to do this with xml files?
View 1 Replies
Mar 16, 2012
So I've got an xml like this stored in a variable in Flex AS3
[Code]...
View 1 Replies
Mar 2, 2008
I already post this question in late December but didn't get a positive reply.How can I get rid of displaying "undefined" in fields and get instead blank fields?Is it possible to build a global function which could be applied to the entire .swf file?
View 7 Replies
Nov 12, 2009
I have a question about HTTPService and the data it returns.
Well lets consider this XML:
<PhotoGalleryData>
<Photo>
<id>1</id>
[Code]....
View 2 Replies
Nov 4, 2009
Basically I want to get the text fields in my Flash translated. To achieve this, I have the translations in a XML file and all text fields are dynamic. I read the XML (dependent on a language calling parameter from the HTML) and set the text fields like:
this["text_1"].text = "Hello";
The "text_1" and "Hello" are of course retrieved from the XML and I use variables in my code.
Now to the problem: I can successfully set the text field, that is visible in the Frame 1 (where my script is executed), but setting text fields that appear later give me an error. Translated it means something like Null Pointer not accessible. So I assume, that the this["text_x"] can not be found.
Is there a way to access it without copying the script into each text element? I have also thought about events, e.g. when the text is shown the first time and I do the translation then (would have to cache the XML at startup then to save time), but didn't find anything.
View 5 Replies
May 13, 2005
How come on my application, in the input fields, theres already txt in the fields? is there a way to get that deleted?
View 2 Replies
Sep 7, 2010
I'm using Flex 3.5, BlazeDS 3.2.0.3978 and EJB3 for backend. There are two RPC which are important to the problem. The first call will get a list of ThirdParty objects, this works fine. The second call happens when the user clicks on a ThirdParty, the details of this object (lazy collections) are retrieved. A single object is returned with most fields serialized. I say most, because for some reason, 4 boolean fields are not serialized and are put on false by flex by default.[code]I've set blazeDS logging to debug and all fields but these booleans are shown in the output. Next, I've tried stepping through the serialization process but it's fairly easy to get lost in there.
View 3 Replies
Jun 1, 2011
I'm trying to CREATE custom fields from flex, but I'm having hard time finding the correct syntax. Below is the piece of code that I'm using and it's resulting in error
"sf:INVALID_TYPE INVALID_TYPE: null objects not allowed in create/update request"
var con:Connection = new Connection();
var lRequest:LoginRequest = new LoginRequest();
lRequest.username = username1.text;
lRequest.password = password1.text;
[Code] .....
View 1 Replies
Aug 3, 2009
I am getting the the output in Flex from PHP as...
appSes = new ArrayCollection (ArrayUtil.toArray(event.result));
I need the value to be stored in textInput...
<mx:TextInput id="keyword" styleName="glass" width="100%"/>
How to ??
View 2 Replies
Dec 2, 2009
I am trying to display content of xmllistcollection in different fields in my datagrid however unless I use an itemrenderer the value is not displaying in the grid. The xmllistcollection is populated from a webservice call. Inside my item renderer i use a custom namesspace to retrieve contents from the xmllistcollection
value.ns::firstName
However if I try something like
dataField = "ns::firstName"
In the datagrid without using an item renderer I get no data output.
View 1 Replies
Jan 6, 2011
How can i add and remove rows in datagrid using check box`
[Bindable]public var _files:Array = new Array();
private function init():void{
_files = new Array();
for(var j:int=0;j<10;j++){
[code]....
in the above code if i select check box i need to add row if i deselect i need to remove the row how can i do that ?
View 1 Replies
Apr 21, 2011
in my flex 3 application i have 5 fields with textboxes...im using datagrid for those fields..for edit and update process i want the data should show in thier corresponding textboxes when a row is selected in datagrid.
View 1 Replies
Jun 8, 2011
here is the existing chunk of code:
if (status != FlexFieldInfo.EDITABLE) {
setToolTip(uiComponent, status, entityForm);
graphics.beginFill(0xFFABC0);
graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
graphics.endFill();
i would like to replace the background color with a tiling background-image. i understand that "graphics." can only fill or draw. i understand the chunk of "graphics." in the code above needs to change to something else, but i am at a loss of how to call the following image: background-image: Embed("images/bg-uneditableField.jpg");
I have searched high and low unsuccessfully. I am a front-end developer just stepping in to our Flex 3 environment and am not a strong javascript/.as person. Note: our application needs to stay in Flex 3, upgrading is not an option at this time.
View 1 Replies
Feb 28, 2012
In my project, I use LCDS to define a holiday table which contain holidayId, countryCode and companyCode. LCDS generated all the getBy which are very handy. However, I need to get the records which are having countryCode = US AND companyCode = ABC. Surely I cannot use any of those generated getBy (each of them deals with a single field only). Can you suggest me how to modify the code in generated services (in my case, it is _Super_HolidayService.as) to handle multi-key data retrieval
View 1 Replies
Aug 25, 2010
We have a pretty big application with lots of objects being passed between flex and java One object in particular has a subtle bug:It's a plain old java object being passed to the flex front end (using blazeds producer/consumer messaging). The POJO has two String properties such as:[codewhen I get the object on the frontend, in Flex, the value object's properties are swapped, as in:[code]Clearly, this is some type of confusion blazeds is having when the objects are serialized/deserialized. Since they are both Strings, it seems something is getting confused when reading/writing the objects.Both objects exactly mirror each other with parameters and methods in the same order in the files with the same names.How do I correct the serialization, preferably without having to handle it on my own?
View 1 Replies
Mar 19, 2011
Despite adding: source="myScript.as" (that basically feeds the main.mxml file)
to my TitleWindow component MXML file (which I instantiate from the main.mxml file) the variables defined in myScript.as appear to be null hence I can't populate my text fields in the title window, even though those variables work fine in the main.mxml.
View 1 Replies
Mar 24, 2010
I'm working on a project with a flex component that I designed in flash and exported as a swc. The moment I changed two of the text fields in the flex component to from static to dynamic text fields, my app started throwing an error when I create a new instance of the flex component. I get the following error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@1dddb179 to flash.display.MovieClip.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
[Code]..
When I deleted the text fields from the stage and republished my game swc, it worked fine.
View 6 Replies
Jul 24, 2009
i have a problem where if my application is full screen i cannot click on any text input component and i cannot input any text into the fields. i have tried creating the text input fields at run time and i have tried creating them on the canvas when on the gui design window in flex builder. however they both give the same results and do not let me pick them and enter text.
View 3 Replies
Feb 21, 2011
I get the following warning when I run my application:
warning: incompatible embedded font 'Arial' specified for spark.components::Label (Label104).This component requires that the embedded font be declared with embedAsCff=true.
The application I am working on is a mix of Halo and Sparks components as I am migrating it to Flex 4. The text that is showing in the text fields is defaulting the systems serif font. There are a few problems with this warning.
1) I am not embedding any fonts in the application. I am not even assigning the Arial font to any of the components.
2) If I check the "Use Flash Text Engine in MX components", then all the text fields in the app throw the warning. Not just the sparks text fields.
Why does flex 4 think that I am using an embedded font with the sparks components? Is there any way to get around this warning and have the text fields use a non embedded font?
View 1 Replies
Feb 3, 2010
I am displaying a combo box in something of a WYSIWYG preview. I want the user to be able to click on the combo box and see the options inside, but I don't want them to be able to change the value. I tried using preventDefault() on the change event but it doesn't work. I don't want to disable it because I do want the user to be able to "look inside" the dropdown.
So I'm trying to block the change, but can't. My next resort is to change the selected index back to what it was before the change, Is there any way to do this within the scope of a ListEvent.CHANGE event listener?
Current Workaround is to basically re-assign the controls selected item the same way I am defining the selected item when I originally build it (a default selection). So a user sees their change then it immediately changes back to the default selection.
View 1 Replies
Mar 8, 2010
I've got a whole bunch of data being displayed in different Labels, now I'm adding an edit state. I'd like all the labels to "transform" into TextInputs. I was just wondering if it possible to uses states to change
View 1 Replies
Jun 23, 2011
I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
View 1 Replies