flex4

Corner radius applied only to specific corners

Guys, I've this tabs that I wanted to make rounded only on top-right and top-left corners. But it ended up rounding all 4 corners. What I did: <mx:TabNavigator id="myTabNav" x="58" y="61" width="584" height="200" creationComplete="setColors(event)" styleName="myTabStyle"> <pages:One label="ThisOne" id="one" name="One"/> <pages:...

How to set link colors in a RichEditableText component

I've got some text that includes links that I display in a RichEditableText component. How do I change the color of the links from the default blue? I tried the example posted by Peter deHaan but it doesn't work with SDK 4.1. I found a way to do this in MXML, but the text needs to be localizable which means I load it at runtime based o...

httpservice vs urlloader vs dataservices

i'm creating an application that will ping the server every 5 secs and check for data changes and refresh data on multiple screens. i have tried all three methods. all works fine. Which is the best that uses less resources. ...

actionscript: how to customize the loading animation

Hi, I have a swf published into the web, I noticed that Adobe has provided some basic sort of loading animation, as I can see it when I loading the swf(including the library swf, the overall size exceeds 1M bytes). My question how can I add some text into it, like percentage? Or further more, can I write my own "swf loading progress bar"...

How to implement an Object Pool for Flex Data/Item Renderers

You can hook into the creation of Flex 4 item renderers easily enough (through itemRenderer, or itemRendererFunction) allowing you to pull renderers from a custom object pool, but how would you put those renderers back into the pool? I understand that layout virtualization does a form of object pooling, but I'd like a way to hook in to ...

How do you synchronize the scale of the y-axis on two charts in Flex

I have two line charts appearing on one page side-by-side in Flex. In each case the x-axis is a date time axis, the y-axis is whatever I get by default. The maximum value shown on the y-axis of each chart (i.e. the y-axis scale) automatically adjusts itself according to the data on the chart. This is good, since I don't know what data w...

flex URLLoader get Location header

hello, I'm sending POST request using URLLoader and URLRequest with XML data. Then API sends response with redirect page(Location header) and i want to get this URL. How do I catch this response? UPD: Event.COMPLETE in debugger: event = flash.events.Event (@6e1edf9) bubbles = false cancelable = false currentTarget = flash.net.UR...

Making scroller of spark list visible by default

I have a spark.components.List component on which I would like the vertival scroll to be visible by default. Any ideas? ...

flex 4: is there a command to restart the application ?

Hello. I have some testings in my flex application to make sure everything is alright. is there a way to restart the flex application once i detected some kind of a bug/error ? i know i can send a javascript command to restart the page. i wanna know if this functionality is available in flex. thanks ...

Flex 4 timers keep Firing

I'm trying to create a simple flex4 project which involves some timers that trigger other functions. I don't have much experience with Action Script and even less with timer events. Here is a bit of my code it seems to be working for the most part but you lines were I'm adding up the total score (score = score +1;) seems to just keep a...

Change BorderContainer background color with AS - Flex 4

I'm trying to change the background color and or text color of a BorderContainer in flex 4 using Action Script, but have not idea how to. The Border Container component doesn't seem to have any properties like: idname.color = "#333333"; idname.backgroundcolor = "#333333"; How might I go about doing this? thanks! ...

actionscript: DownloadProgressBar and Flex 4 can't find resource bundle

I am using flex 4 and I want to custom the preloader, but I meet error of DownloadProgressBar. The code: public class MyPreLoader extends DownloadProgressBar { var progress:ProgressBar = new ProgressBar(); Or substitude ProgressBar to Label will produce the same error: Error: Could not find compiled resource bundle 'collectio...

How to get rid of a thin gray border of SkinnableContainer in design mode

I'm learning skinning techniques for flex 4 and spark. For an example I've created custom component derived from SkinnableContainer. It is simple container with surrounding frame and a title. Everything works just fine when I run test project with a component on it. But at design time my components border is not visible, so developer us...

flex MS Project library

Hello all, Is there ActionScript library that works with MPP(MS Office Project)? library that parses MS Project XML? Also please advice me all links that may help me ...

Network Monitoring

I have a flex application with one server and 12 clients. The clients ping the server every 5 seconds using URL request. I want to build a screen to monitor if the clients are pinging properly? what is the best way to do this? ...

Datagrid, getting and setting individual cell values

Hi, I have Flex 4 DataGrid, what I would like to do is when an cell has been edited, I would then like to walk through the values of that column and preform math on the values, eg I want to total up certain values. 1) How do I reference individual values of a specific column so that I may set them. 2) How do I then set those values or ...

Allow end user to define state transitions in a Flex mxml application

Adobe has a great tool for designers called Adobe Catalyst to develop AIR based desktop apps which designers can customize to define state transition in a screen-flow based application. Now Is there a way in which an end-user who gets that application can change the conditions for state transition and the the content of the state. For ex...

Get or Set Cell Values in a Datagrid progmatically

Hi, In Flex 4 using a pre populated data grid, how can I get or set specific values programatically, IE I wont be using selectedItems etc. How do I reference the value of a cell in row 4 colum 6 for example. Please and thank you in advance for your help. Craig ...

Insert text at cursor in a TLF-based Flex Spark RichEditableText?

I want to programmatically insert formatted text at the current cursor position in a Flex 4 (Spark) RichEditableText control. I could just modify the .text property.... But that doesn't allow me to insert formatted text. So I believe I need to interact with either .textFlow or .textFlow.interactionManager somehow? However, TLF is quite c...

Reading large CSV file line by line in Flex

Hi, I need to read a large CSV file (8-15 MB) and generate a LineChart in Flex AIR. Since Chart need data in structurd format like XML. When I read CSV and convert it to XML object 8 MB file size become 24 MB XML object and not able to graph. Best solution is to read Line by line and read only part of data. How can I acheive this in Fl...