flex

How do I dynamically add Image objects to the display and then interact with them?

Below is sample code from a Module I have in my Flex app. I want to dynamically create mx.controls.Image objects and add them to the display. I want the user to be able to move them (this works as below) and be able to change their z-index as well as record new X and Y coords after moving back to the database. How do I determine which ob...

AMF Channel without Livecycle, BlazeDS or similar

Is it possible to use an AMF Channel in a Flex HTTPService client application without using Adobe Livecycle, BlazeDs or similar in order to do real time asynchronous request from an HTTPService? ...

DataGrid - Edit the selected row when a button is clicked.

Hi all. I have a very simple DataGrid with 2 columns, some thing like this: <mx:DataGrid id="grid" > <mx:columns> <mx:DataGridColumn dataField="name" headerText="Name"/> <mx:DataGridColumn dataField="date" headerText="Date"/> </mx:columns> </mx:DataGrid> What Im trying to do is to activate the edition of the s...

Flex FileReference - FireFox Multipart-Session bug.

Hi All. In Mozilla FireFox, every time you send a request to the server that has a multipartform-data (using FileReference when uploading a file) the SESSIONID value is not send in the HTTP header. That means that if the application/page/site you are working on is authenticated its not going to work. This only happens in FireFox, IE 6, ...

Internationalizating images in Flex

I have a button in Flex that has mx:skin set to an image, but i want to set it so that when i change the language the image change as well. The code is something like the following: <mx:Button id="btnMain"> <mx:skin>@Embed(source='main/resources/images/ABA_MAIN_IDLE.png')</mx:skin> The way i handle i18n is by using a class called ...

Disabling radiobuttongroup

Since Repeater component won't generate radiobuttongroup in mxml, and since I can't do the same through ActionScript because radiobuttongroup doesn't have an id property when I try to create it that way, is there a way to disable radiobuttons at all? As far as I can see, the only thing I can set and access is groupName property of radiob...

What are the drawbacks of using Spring BlazeDS Integration?

I have a little prior experience with Spring framework and Flex, but never used them together. I'm starting a new project and would like to use Spring and Flex. I noticed that there is some special "Spring BlazeDS Integration" library. Due to tight deadlines I'm unable to do a proper evaluation and I would appreciate StackOverflow commun...

how to print huge reports in flex?

I have a web app that prints reports, most are just one page, or two, so I just create a component that shows the data and print it. But I have this one report that can have thousands of lines, with a custom format, Flash will slow down with this. Is it posible to print it without showing the actual data on screen? or is there a compon...

ComboBox dropdown scaling does not follow DisplayList...

I've been working on an application (with ComboBoxes) that requires scaling the entire application based on screen resolution. I thought it would simply require changing the "scaleX" and "scaleY" properties of the top-level application, but discovered that the ComboBox dropdown doesn't appear to scale accordingly, as in the following ex...

Flex charting dataTipFunction

My PieChart has a dataTipFunction property My PieSeries has a labelFunction property I would like my dataTipFunction to return the same string that my labelFunction returns. Example, I would like my dataTipFunction to return: return [whateverMyLabelFunctionReturned] + someExtraStuffThatIAdd thanks. ...

URLRequest with DELETE method

Need to find a way to send a delete method from Flash Player (Flex). Currently it's not done by default (except for from AIR), but I am sure someone has augmented the URLRequestHeader to get it to work properly. I've tried this, it isn't working: request.requestHeaders = [new URLRequestHeader("X-HTTP-Method-Override", DELETE_REQU...

AS3: Textfield active state

I would like to create some text on the stage that does not respond to mouse activity. I've found that after adding a piece of text to a class I am using to draw, it covers up some of the mousing area of my class and disables the user from being able to roll over the other graphical elements... Is there something like: var t:TextField...

add bar chart in US State Map

Hi, I am a beginner in Flex.I need to add bar chart in ilog:USStatesMap based on certain data for each state.Can u please help me. Thanks in advance. Mariam ...

Scrolling issue in Flex 3

In Flex 3 I have component that displays html taken from a db just by using the htmlText property of a TextArea. The component contains multiple TextAreas for different areas of content (ie header, left column, right column). This is contained inside a canvas element which has a fixed height. As the length of the content varies, my comp...

Dynamic loading and compilation of MXML/AS at runtime

Greetings! I am trying to build an application which has a flex front-end and a php back-end. I am struggling to do something with this application which I couldn't figure out a way to do. I would want my flex application to show a view based on an MXML it recieves from the server as a response to some interaction in the flex applicatio...

Problems with indepth flex loading of value objects (Lazy loading at the front-end?)

Hi, I'm using a java-backend with a flex frontend. And when i want to use a labelfunction it doesn't load the indepth properties such as a value object, it's like it is lazy loaded in the flex side, I'm sure it is not comming from the backend because i've checked it overthere. I've got it also in datagrid's that it doesn't load all the...

upgraded to Flex 3.4 and tried 3.5 PopupManager.centerPopup broken?

How can I center a popup in Flex 3.4+? In Flex 3.1, I could center a pop-up over its parent by setting its parent in the createPopup, then using centerPopup. In Flex 3.4 and 3.5, the window appears with its upper left corner matching the upper left of its parent... even after the centerPopup. Is there a work-around? or am I not usin...

Flex: AdvancedDataGrid Tree dropParent

Hi I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete. advancedDG.addEventListener(DragEvent.DRAG_COMPLETE, dRAG_COMPLETE_Handler); public function dRAG_COMPLETE_Handler(event: DragEvent):voi...

How to prevent tree items from being dragged into themselves?

I have a flex tree with dragMoveEnabled = true. I want to find out, when an item is dragged into itself or it's children. I'd like to use DragManager.showFeedback(DragManager.NONE) in the tree's onDragOver handler, but can't find out how get this to work. I'm using an ArrayCollection of nested objects as dataSource for the tree. ...

One web service per module, or one web service overall?

I'm doing a flex application that has tons of screens (each very different, can't reuse :( ), and tons of web methods in .net. is it correct to create one .asmx per module, or should I stick to one big .asmx Would there be connection or IIS problems? thanks ...