flex

AIR: sync gui with data-base?

I am going to be building an AIR application that shows a list (about 1-25 rows of data) from a data-base. The data-base is on the web. I want the list to be as accurate as possible, meaning as soon as the data-base data changes, the list displayed in the app should update asap. I do not know of anyway that the air application could be n...

Error / Validation / ToolTips in Adobe Flex

Hi, Is there any code or custom options available to achieve the following : 1> When an error occurs in a text box, the validation shows the error. Enforces / Forces the user to remove the error and only then proceed to complete remaining text inputs. KEEPS the mouse focus on the Text Box. I have used built in mx:Validator tags, but i...

Text Input error / validation and restore previous correct value in Flex

I have text input boxes. There is validation for each of the boxes using numberValidator. Now, the thing is that am using alert box to show if any error occurs. Flowchart :: 1> Insert value in textBox. 2> NumberValidator validates the input on "trigger=change". 3> If error, alert message is displayed. The user clicks OK to go back to f...

Customize the sorting in datagrid in flex

I have a column with 4 fields named : a> Main, b> Forward c> Back d> Link, if I use pre-defined sorting of datagrid with the column names which will be alphabetically, then the order is c>Back b>Forward d> Link a> Main. But, I do not want to sort based on the alphabets. I prefer to sort by names of the column fields. i.e. somehow give pr...

Passing values between functions

Hi All is there any way to locally define a variable in a function and then pass it to the oher function. I mean to say is it possible the pass a local value from one function to other function. Somebody Please suggest me the solution. Thanks in advance ...

Flex ~ Quit FullScreen mode only when the Esc key is pressed .. is tht possible?

hi i use FullScreen mode for my flex application. what i need is ... when in fullscreen mode i wanna allow the user to quit fullscreen only when the Esc key is pressed. apart from Esc key .. if the user hits ny other key the application shud not quit FullScreen. looking for the solution! Thanks in advance :) Sris ...

Why does Flash CS4 startup when Flex Builder 3 runs the selected project?

I'm using Flex Builder 3 Pro with flex_sdk 3.4.x and the latest Flash CS4 is also installed on Mac OSX 10.5.7. I believe the problem is related to the operating system and not Flex Builder Pro. However, I've set the default program for swf's to be a particular version of the Flash Player, located in flex_sdk's folder. Regardless of sy...

Flex components for JSF

It would make sense to use Flex components with JSF, but searching around I can't find something mainstream. At least not as mainstream as ICEFaces, Woodstock and the other JSF components. ...

AIR: Connect to database over network?

Is there a way to make an AIR app connect to a database over a network. I know it has a built in SQLLite but I need to connect to a database over a network. Is there anyway to do this? If not directly then maybe through the help of something else like Java. Thanks! ...

Can I access crossdomain files outside the originally requested domain?

Flash Player 10 specifies: "Redirects to policy files outside the originally requested domain will continue to cause policy files to be ignored by Flash Player." Is there a way to access policy files outside the domain? ...

AIR: Why is stage == null?

I am trying to set the scaleMode on my AIR app. which is set via stage.scaleMode. However when I try to reference stage it returns as null. I do not know why? Here is the entire app: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"> <mx:Script> ...

Alternatives to create swf files (which has external content loaded into them) dynamically?

I'm about to start a project where there will be a Flash application where the visitor customizes a profile with externally loaded images and texts. Then the visitor needs to be able to download that profile as a dynamically created swf with all that external content baked into the swf. Any ideas how to achive this? Thank you! ...

fade in of added component with Actionscript

Hi when I add a new component using Actionscript I want it to fade in smoothly, for example this component var df : DateField = new DateField(); df.text = DateField.dateToString(new Date(),stringFormat); df.formatString = stringFormat; I tried this var fade : Fade = new Fade(); df.setStyle("showEffect", fade);...

AIR: new window...adding content to it doesnt show up.

OK I created a class called WindowManager, so far it just as 1 method, to create a new window. You pass the DisplayObject to it that should be contained in the window. The problem is if I added a newly created display object to the new window it does not show up. However if I first as the new display object to the main window, then try t...

Rails and XML

Hi So I have a function that outputs an xml string that goes something like <expensesAC> <cashflow> <month>6</month> <cash>300</cash> <projected>null</projected> </cashflow> <cashflow> <month>6</month> <cash>300</cash> <projected>null</projected> </cashflow> <cashflow> <month>6</month> <cash>300...

Flex: Remove drop shadow from ApplicationControlBar?

Does anyone know how to remove the default drop shadow from ApplicationControlBar? I tried this but no luck: <mx:Style> global { dropShadowEnabled:false; } </mx:Style> ...

Control SWFLoader Volume

Hi, I am doing a elearning project in flex and it consist in a secuence of swf files and a player that load it based in a xml file, the problem is all swf files contents narrations and I need to control the volume of narrations from the player interface, anybody know how I can control the volume of a swf file from flex?? Thanks for you...

Remove / Clear Error message tool tips on Cancel button click.

Hi, I have referred this for creating error message tool tips, to be displayed continuously unless the error is resolved by the user. :: http://aralbalkan.com/1125 ..................... But, this is being applied to a pop-up window visualized as a pop-up form. When the user clicks 'CANCEL' button, I want the error message tooltips if ...

Flex Advanced Datagrid Condition Row Background Color

Hi All, I am trying to set the row background color for the advanced data grid control in Flex 3. Does anyone know if this is possible using a style function. Currently my style function looks like: public function myStyleFunc(data:Object, col:AdvancedDataGridColumn):Object { if (data["status"] == "PRICING") ...

Flex 3 focusManager.getNextFocusManagerComponent() returns null

I have an app where I am looking to make the enter key act like a tab key. I can easily capture the keypress event and setFocus to a textinput field. The problem is figuring out which textinput field to give focus to. I have this code trace(this.window.focusManager); //returns TheWindow86.focusManager trace(this.window.focusManager.ge...