flex

TabNavigator not showing children

I have a TabNavigator component which is not showing its children when adding them at runtime. Is there a way around this please? I'm doing the following at the moment: var tabNavigator:TabNavigator = new TabNavigator(); // etc. parentHBoxContainer.addChild(tabNavigator); // etc. // Custom component with nothing special in it //...

3-state "expanded", "collapsed" and "semi-expanded" tree control

What I'm trying to do is have a 3 state tree expansion. I have three different icons for "expand" "collapse" "semi-expanded" which I want to use to show a partially populated tree control with all nodes initialized to semi-expanded state and then on clicking the "semi-expanded" icon it gets data from server and populates the tree and op...

How can I force explorer to reload Flex page( swf embedded in HTML)?

Hi guys, I developed a flex website, the web explorer always caches swf file which embedded in HTML. Sometimes I make changes to the flex file, clients computer still view the previous version which stored in cache. How can I force client's web explorer to reload/refresh the swf file? Thanks ...

In flex, how to divide text between two components seamlessly?

I have a text that I want to divide between two Text components. The first component has variable height and after fitting all the text, I want to fit the remaining in second component. How can I divide text seamlessly beween the two. ( By seamless, I mean there should not be any white space in first component and then remaining text s...

How to avoid type conversion in flex from string to number ?

I am returning 12345678910111213171819 from java to flex, with in xml tags using http serivce. The result format is object. but when I display the text it automatically converted or treated as number so it displays like 1.234567891011121317181 x e^21 .... How to avoid this? Thanks in advance. Regards, Sankara narayanan Ekambaranathan....

about data-binding in mxml

Hello,I've done a data-binding following a tutorial on the web: <mx:Script><![CDATA[ public static const selectedChild:Boolean = true; ]]></mx:Script> <mx:Button label="{resourceManager.getString('resources', 'button.startLab')}" id="nextStepButton" enabled="{selectedChild}" /> My question is how we can...

Google maps api on SSL Flex website, problem

I am using google maps api on my Flex website. My website has ssl. So the issue is, everything was working fine a couple of days back, but the google map api stopped working suddenly. And I can not see the reason. my code for maps looks like below: <maps:Map id="map" mapevent_mappreinitialize="{init...

Where can I find the FlexMonkium source code?

Does anyone know where I can get a hold of the FlexMonkium source code? I can checkout the FlexMonkey source but I cannot seem to locate the FlexMonkium source. ...

How to add an image at a specific location in Flex/Spark TextArea or TextFlow

I have a Spark TextArea: <s:TextArea id="editor"> <s:textFlow> <s:TextFlow id="_tf" > <s:p>Lorem ipsum etc.</s:p> <s:p> <s:img source="http://example.com/example.jpg" /> </s:p> <s:p>Aliquam tincidunt tempor etc.</s:p> </s:TextFlow> </s:textFlow> </...

Flex: Lose Component Focus

I have a (hopefully) quick question. I've got some stepper boxes. Though really this could apply to any interactive component. I want the selected box to lose focus when when I click anywhere else ( stage included ). Is there an easy way to do this? I can't seem to find an effective way to make it lose focus. ...

Flex AdvancedDataGrid - remove default data sorting/shuffling

I have this AdvancedDataGrid you can view at http://rtistique.com/foo/ to view the source, right-click -> view source It displays a simple ArrayCollection private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:"Southwest", Territory:"A"}, {Region:"Southwest", Territory:"B"}, {Regio...

Flash + pyAMF + Django session cookie security

First off, if there is a true, official way of having flash/flex's NetConnections usurp the session/cookie state of the surrounding web page, so that if the user has already logged in, they don't need to provide credentials again just to set up an AMF connection, please stop me now and post the official answer. Barring that, I'm assumin...

Embed Windows media player in flex

Hi all, I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in window...

Flash Total Memory Usage and TaskManager Memory Usage are diffrent?

Hi I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference. Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of ...

Error when the scroller of the mx:Tree with custom renderers is scrolled

I have created a custom multiline item renderer for mx:Tree component. Important to mention that my item renderer has two UITextFields in it. Sometimes (depends of the input data) only one of UITextFields must be shown, so when second UITextField is not needed I hide it and recalculate the height of my item renderer. According to my test...

Creating custom Layouts with DataGrid and Adding Components in its cells at runtime ?

Hello, i am trying to creat a gallery applicaiton, i have adobe's imageViewer component and i want to make a custom layout functionality on my applicaiton. 1- How can i creat custom (2*3 - 3*3 - 4*4) layouts at runtime ? 2- How can i add my imageViewer component in it at runtime ? I tried to use datagrid component but adding and dele...

problems with KeyboardEvent and special characters requiring shift key

Hi it seems Flex trapKeys(e:KeyboardEvent) has problems when user is pressing some special marks ; / ? = + ( ) & * with non-us (european) keyboards. Pressing these require shift key. I am using String.fromCharCode Any ideas why e.g. pressing semicolor combination faulty outputs "<" var key:String=String.fromCharCode(e.charCod...

what encoding unescape() function uses?

what encoding unescape() function uses ? I have problem that URL param has utf8 foreign chars, that flash fails to read. ...

what is jat file found in flash web games?

Hi Guys I found many .jat files when i analyse a flash web game with firebug. It maybe a user model.But I don't know how does it make? ...

Flex 4 Best Practice when using RemoteObject and multiple components

Hello! I was wondering what is considered to be a best practice when I have multiple components and use RemoteObject for AMF communication with a PHP backend. Have the RemoteObject in the Main.mxml file with all the methods declared here (with handlers and all) and have all components call functions from the parentApplication, thus ha...