flex3

Downloading data posted to server as a file from Flex

Hello All, This should be trivial, and I'm pretty sure I did it once before. I'm trying to post data up to a server and have it bounced back to me as a file download, prompting the native browser file download box. I know the server part works just fine becasue I can post from a demo web form, but when I run the following Flex 3 code...

How can I add controls to the title bar of a flex panel?

I'm trying to implement a collapsible TitleWindow popup by adding a handle to the top right corner of a Panel control. Unfortunately, the image that I add as the handle doesn't show up when the control is drawn. I can trigger a redraw by changing the source of the image, so apparently it's there, but it's somehow hidden. Is there a way...

How can I cancel a DataGrid ToolTip before its shown?

Hi I've got a DataGrid that shows a tooltip on each item.. but there are a few items where there shouldn't be a tooltip. So I thought I could prevent the being showed. protected function toolTipStart(event:ToolTipEvent) : void { LOG.debug('Start ' + event); event.stopImmediatePropagation(); } But it does not work. Has anyone ...

How to embed flash files in HTML using SWFObject (and to get deeplinking to work!)

I have a problem that I have been trying to solve since days! I don't seem to get the BrowserManager.url property after I embed using SWFObject! the purpose is, to get the URL of the HTML where the SWF file is embedded and not where the swf file itself is! explanation: I mean the SWF file is only in the root, and the file is embedded i...

flex + AIR nativewindow minimize

Hi, In my Flex AIR desktop application I am opening a nativewindow(a window component). On a button click I am explicitly minimizing the nativeWindow using: nativeWindow.minimize(); It minimizes the window that is fine but after that if I traces the nativeWindow.x & nativeWindow.y, they comes as -3200, -3200. due to this I am unable t...

flex AIR NativeWindowDisplayStateEvent

Hi, In my Flex AIR desktop application I have a nativewindow. I am using nativeWindow.minize() to minimize the nativeWindow. As I know that the sequence of NativeWindowDisplayStateEvent's is 1. displayStateChanging 2. displayStateChange But in my native window on nativeWindow.minize() the sequence goes like 1, 2, 2 i.e displayState...

Flex Bar Chart not showing zero value as zero length bar.

I have a bar chart with three data points - $10, $0, $1. Flex 3 does not display the $0 bar at the zero point (i.e "x: 0px"). Instead it is showing a 15px bar as if it is relative or weighted with the other values. This is visually deceptive because at first glance it appears that the middle bar has a positive value. Does anyone know h...

Flex 4 compatible with Flash Player 9?

Could you confirm me that: Flex 4 is compatible and only compatible with Flash 10 Flex 3 is compatible and only compatible with Flash 9 & 10 ...

Using Alert.show in Flex 3

In Flex 3, when I use Alert.show("some text"); I will get an alert message along with the OK button. When I press the OK button I get another alert message. I have tried the following code, but it's not working. Alert.show(" Simulation for " + id_formulator.nme + " Campaign", null, mx.controls.Alert.OK, this, alertListener, null, mx....

How do I install a new locale in the Flex SDK?

I have a flex application being developed in Spanish, and I'd like to build it using a Spanish locale. However, the only locales installed in my SDK are en_US and ja_JP. Is there a site or resource where I can get other sets of locale files? ...

Is there a way to return LatLng, Google Maps' format for points, from a mySQL database

Hi, Is there a way to return LatLng, Google Maps' format for points, from a mySQL database? I'm using Flex 3 and MySQL with Google Maps. Currently, I select latitudes and longitudes from my mySQL table and then iterate over them in Flex in order to make the LatLng for Google Maps. public function latLngCreator():void { myLatL...

Problem with hardcoded numbers and letters in a Flex 3 replace statement

Hi, I've got the following Flex 3 lines, that I need some help with. I'm using javascript with Flex and I need to reformat somethings in order for it to work. myReturn = myReturn.replace( 'width=468', 'width="468"'); myReturn = myReturn.replace( '&contenttype=png', '&contenttype=png' ); The problem is that I've hard-coded the wi...

Different vertical gaps between siblings in the same mx:Tree control

Does anyone know of a way to specify different vertical gaps between siblings in a Tree? I want to child nodes spaced tighter together (maybe 10px) while the top level parents remain spaced further apart (20px). Essentially, I need to change the gap dynamically based upon the depth of the node, but I'm not sure if the Tree class (or the ...

programmatically skinng the roll over idicator of a flex list component

Does anybody know how to add custom rolloveridicatorskins to a flex 3 list component? it doesn't have the rolloveridicatorskin in the css. ...

Is there some way to force 'updatedisplaylist' immediately rather than at later some point.

In flex component life cycle, after we make some change in a components property, invalidation methods schedules a call to methods like commitProperties, updateDisplayList, etc for some later time. I need to call the updateDisplayList instantaneously. Is there some direct way to do this. Currently, both the labels are changed simultane...

Difference between RemotingServices, WebServices and HTTP in Flex.

Dear friends, We use 3 types of services in Flex; HTTP, Remoting and WebServices and would like to increase my understanding about their use cases. As far as I understand, Remoting can be used only in homogeneous environment like Flex-RubyOnRails (through RubyAMF) while Webservices can be used in Heterogenous environment using SOAP pr...

CKEditor running in Flex 3?

I'm interested in integrating CKEditor into my Flex 3 application so that users can generate full HTML documents. After some quick googling, I am interested in using CKEditor, but I can't find any home-run success stories on using it with Flex 3. For example, I found: http://blog.aboutme.be/2009/10/25/ckeditor-running-in-flex-and-air/...

Multiple update of values in a row in a Flex DataGrid or AdvancedDatagrid

How can i update multiple cells of the same row changing the value of a single cell of the same row ?? Example: id, height, weight, fat percentage, corporal mass. When i change one of the values in a row (except id of course) the corporal mass cell value must change using a formula like: (height/weight2)*fat percentage*100. Is this pos...

Strange Problem with compareFunction on GroupingField

Hi, I've two grouping option, Category and Status. We have some unique number along with the categories like, "302 Explosives". Earlier after applying grouping on "category" field, column sorting was lost. To fix this I've applied "compareFunction". Now, Sorting is working fine when we use group by on "category" field ( image -1) but wh...

A custom clip to run while flex application loads itself

Dear friends, Whenever a swf is loaded a custom movie is shown (by default a rotating circle), is there some way where I can have my custom movie to play there. If you have any idea in this regard, then please help. Thanks in advance. Ashine. ...