flex

Spark List reusing the wrong item renderers

I have a List component using multiple item renderers determined by the itemRendererFunction. When I set the data the first time, it works as expected. Then, when I set the data a second time with new data, it doesn't call the itemRendererFunction and tries to reuse the current renderers even though they don't match the data. Once I scro...

Can't execute query on geocoding service

Hi, I'm building Flex 3 application and I have a geocoding service (http://.../GeocodeServer) on a ArcGIS server (ESRI). I'm trying to execute a query on this service in order to retrieve some informations. Unfortunately, when I execute the query, I get this error : [RPC Fault faultString="" faultCode="400" faultDetail="Invalid URL"] ...

Changing 'top' property at runtime in Flex.

In the follow Canvas, how do I change the property top at runtime? <canvas top="10"/> I tried: <canvas top="{ topVariable }"/> But the binding doesn't seem to take effect. How can this be achieved? ...

How to reload checkbox in itemrenderer

I am having a problem with a checkbox in my datagrid. It pulls in a dataprovider (xml file) and I am using it to set the checkbox selection with a custom itemrenderer. I then save the datagrid, when updated, back to the xml file. The checkbox, when clicked, saves to the xml fine.. I know this because when I reload the application it s...

Powerflash FDT: Obscene number of errors?

I would really, really like to move off FlexBuilder onto FDT, but FDT is giving me an obscene number of errors… Almost none of which are legitimate. For example, I've been told "incompatible types Function and Function" and it didn't like it when I used complete paths (eg, new mx.logging.LogEvent()). Apart from turning off all errors, i...

uploading a file on mac os x using adobe flex 3

Hi, I've created a fileUpload.mxml component in flex 3 which basically uploads m4a's to a designated server. The general code is below: private var uploadURL:URLRequest; private var file:FileReference; file=new FileReference(); file.browse(getTypes()); var params:URLVariables = new URLVariables(); params.fileID = model.selectedFileUp...

work around needed for bizarre flash player bug involving htmlText

There is this bug I found in flash player, I described earlier today in this thread: http://stackoverflow.com/questions/2227048/fix-needed-for-bug-in-textfield-text I was able to confirm via that thread that it is in fact an actual bug in flash player, and now I'm just trying to discover some work around, because from my vantage point...

ATG & Flex via AMF?

How easy might it be to build a front end with flex, and have ATG as the backend and do all communication / integration via AMF, using BlazeDS or Live Cycle Data Services? Thanks! ...

When is the right point (from the life cycle view) to set data provier for LIST container on Flex 3

Hello again, I'm making a LIST container with my own item renderer to display xml file. Now, I'm overriding the public override function set data(value:Object):void method in my item renderer, the problem is that this function been called many times(!!) (more then the data provider length). Maybe I'm not setting the data provider righ...

Creating a toolbar in adobe flex 3...

Hi I am creating a Adobe Air Application. I have a menu and and I need to create a toolbar which has icons to represent some actions. Can you give me code or reference how to create toolbar and event handling? ...

breaking up line chart in flex charting

Hi All, I am wondering how will i proceed with the following requirement. I need to create a line chart of business data of the last 8 quarters. It is easy, but the requirement is that, there should not be a connection between last year's Q4 and this years Q1. In effect, using the same array collection i need to split the line chart so ...

Basic usage of swffit. How to make it work

How swffit (http://swffit.millermedeiros.com/) can be used? I mean in my project I have dynamically expanding flash application, so once the expanding part riches the bottom I see standard flash scroll bar. Not browser scrollbar... Here is how I defined my application: public function addPanel(evt:Event):void ...

Can a modal-window-type blur be created for any Component in Flex?

I'm aware of PopUpManager and that custom modal windows can be created. But let's say I have a simple Canvas(or any component) and when I show it the background needs to be blurred out like how PopUpManager does when a new pop-up is shown. Is this possible? ...

Dynamic resizing of absolutely drawn Flex 4 component (drawing code generated by Catalyst)

Hi, I have some code generated by Flash Catalyst, and I need it to be resizable & rotatable. At the moment, I have no idea how to get this to happen. The basic idea is: I have a windmill. windmill contains windmillBlades. windmillBlades rotate. windmill resizes. When the windmill resizes, the windmillBlades should scale dynamicall...

Zend Framework model with service

Hi, i have a question about Zend Framework and mainly the model part. I know there is no abstract model class and understand why. I red a lot of blog posts about it, but couldn't find any example that would clearly explain it to me. I'm building a very basic application. Lets imagine we have just three tables. company(ID, name, street, s...

Keep Remote Shared Object Alive

Hi, I am creating a game which 2 users can play. For this I have implemented the concept of RTMP and Remote Shared object. I have implemented this successfully. Now as per the requirement, If player close window and again join after some time then the current status of the game should be loaded. For that purpose I have converted remote...

How can i show delete image in each row in a Data grid ?

i want show a image onmouse over inside data grid to each row,so if i click on that image,some function should call(as per my requirement). how can i do this ? <mx:DataGrid width="320" height="624" verticalScrollPolicy="on" dataProvider="{blocked_Usernames}" editable="true"> <mx:columns> <mx:DataGridColumn headerText...

Problems when printing a SWF in browser

I'm trying to print a SWF and have come across some problems. When using the Print function in the browser, the SWF will be distorted, and not scaled correctly. So I've tried to implement a Print function using Actionscript instead. The different approaches I've taken are: Printing using the right click context menu of the Flash Pl...

Possible to have more then one labelField in Flex?

I have a combo box that is currently getting its information from a database this seems to be working fine. Now I would like to have content from two fields displaying in the combo box at once. Say First Name & Last Name I've added the information to the query fine but the data displayed in the combo box seems to be controlled by the l...

Flex DataGrid - how to find the maximum value in a column?

How would I find the maximum value in a specific column in a Flex DataGrid? ...