flex

pie charts

Hi All, Any possible to create below type(please go through the link) of pie charts and values create dynamically? ![alt text][1] http://img406.imageshack.us/img406/7139/piechart.png ...

draw dot on linechart in flex

Hi community, I have a line series in a linechart and a slider that goes from 0 to 200. When I now move the slider, I want to have a dot appearing at the chart so when I move the slider to 150, there should be a dot where the x-coordinate of the chart is 150. Has anybody an idea? I did not found anything. Thanks in advance Sebastian ...

Only act on turnOff() once all objects that have called turnOn() call turnOff()

I want to have 2 static functions called turnOn() and turnOff(). Say objectA calls turnOn(), then objectB calls turnOn(). Then objectA calls turnOff(), it should not turn off because objectB turned it on as well. Also say objectA calls turnOn(), then objectB calls turnOn(). Then objectB calls turnOff(), it should not turn off because o...

In Flex, how to use command-shortcuts in the browser?

I tried catching the command key shortcuts using the keyDown event and checking for KeyboardEvent.ctrlKey, but the browser(Safari) seemed to have intercepted all those key events because the shortcuts I am trying to use coincides with the safari ones. Is there anyway to override this behavior? ...

How to implement macros in Flex/FlashDevelop/AS3

Hello, I am new to using the Flex Compiler with FD, although certainly not new to flash/as3 and FD. Currently, i have been compiling my applications with FD/CS3 and want to make the switch to the flex compiler. One of the main things i want to experiment with the flex compiler is using Macros in AS3. For instance, say i have some extrem...

Is there a way to choose an MXML component at UI construction time based on the value of a field?

I have a flex MXML UI that is building a set of radio buttons using the Repeater component: <mx:Repeater id="radios" dataProvider="{_lists.(@id == _question.single.@response_list).group.listItem}"> <mx:RadioButton groupName="responses" label="{radios.currentItem.@text}" data="{rad...

Flex HTTPService in Flash

Is there a standard equivalent to the Flex HTTPService class in Flash CS4? ...

Custom Preloader in Flex 4?

Has anyone successfully implemented a custom preloader in Flex 4? In my experience, when I specify a custom preloader using the preloader="com.foo.MyPreloader" in the Application tag, the preloader does not display until the SWF is completely downloaded, defeating the purpose of the preloader! Perhaps this is a bug in the still-beta Flex...

How to refresh a particular portion

Hi, I'm new in flex.I'm trying to show some images from a folder with flex.Suppose when the flex application is running that time some images inserted that images folder and on the front page(flex) have a button.When click that button just refresh the portion where the image shown without whole page refresh. How can i do the whole proces...

calculate start and end angle of piechart slice

hi All, In Flex 3 how to calculate start and end angle(point) of every pie chart slices? Thanks, aravindakumarThangaraju ...

Compiling text resources int SWF and reading them

Hi. What I want to do is to display the buildnumber in a Flex appliation. My build system (Maven) will supply the buildnumber. But how do I compile it into the SWF and display it in the UI? A possible option might be to create a text file and compile it somehow into the swf, then read the resource in the actionscript code and display i...

Custom component with combobox-like behaviour

I am trying to create a custom component in flex that consists of a Button, and a TileList directly below that button. On button click event the TileList should open/close. The component works fine, but when I add it to my main flex app, inside a VBox, it simply opens and closes within the VBox. Because the height of the VBox is much sma...

Click-outside event on custom components in flex

Is there a way to write a custom event that gets triggered when the user clicks outside of that custom component instance? Basically anywhere else in the main flex app. Thanks. ...

in flex, is it possible to embed speex files?

Flash 10 supposedly has support for the Speex audio format. I'd like to embed some Speex files in my SWF: [Embed(source='assets/test.spx',mimeType='audio/x-speex')] private static const SpeexSound:Class; However, I get the error: no transcoder registered for mimeType 'audio/x-speex' Any ideas? ...

Error reporting from Flex app

I have a Flex 3 app which I want to instrument to report errors generated by the app to a server via simple HTTPService call. My idea is to wrap all the methods in try ... catch blocks which then pass the Error object to the reportError() function (which then fires off the HTTP request and pops up a dialog) but is there a better way? ...

Flex. Stop the movie

Hello I load the swf movie to my flex application <mx:Image id="preloader" x="0" y="0" width="100%" height="100%" scaleContent="false" source="@Embed(source='/assets/swf/preloader_small.swf')" horizontalAlign="center" verticalAlign="center"/> It is the animated preloader. Please tell me how I can stop the preloader any...

Is there a way to bind my flex builder to my django application

Hi! I am trying to create simple flex application, which uses django as a back-end part. Have a question: Usually when I run my application Flex Builder creates a file in a directory on my local PC and then opens a browser and points to it. Everything was fine, but when I decided to link django server to flex applications via xml data ...

XML in Flex

<mx:HTTPService id="theXMLtree" url="http://localhost/file.php"/&gt; <mx:Tree dataProvider="{dp}"></mx:Tree> The file generates the XML, i need to embedeed that info in my tree... how can i do it. ...

Live Preview on a Flex (compc) generated SWC

Does anyone know what criterea Flash uses for discovering the Live Preview class for a Component? Background We are attempting to automate the creation of a SWC that contains a component to be used from Flash. We are able to make it visible to flash by modifying the manifest.xml and wiring up the component definitions. However, the com...

How to spot memory leaks in profiler?

I have an AIR/Flex app I made, I have a few people testing it and everyone is reporting that after leaving it running for a while, it is making all there machines run very slow. It runs fine at first so this must be a memory leak somewhere. I used the profiler on this and the only thing that shows as using a substantial amount of memory ...