flex

keep 'down' state for spark skin button

I have spark skin a button with up, down, over, and disable states in a button component to create a modular. Is there a way when the user press and hold a key, the button will remain in 'down' state? The button component include skinclass: <?xml version="1.0" encoding="utf-8"?> <s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" x...

Maven and flex compile problem

I tried to compile using maven-flex2-plugin plugin with maven here is the error I got: D:\PROJECTS\flex\Reports>mvn clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Reports Maven Flex [INFO] task-segment: [clean, install] [INFO] -------------...

Flex3: How to "Re-load" A Component

Hi, How do I, in effect, "reset" a component in order to have it look the the way it did when it first loaded. For example, I've got 3 buttons in an HBox. They start as red, visible, and have a label. I then programmatically make different changes to them-- change the color of some of them, change the visibility of some of them, etc. ...

Flex: Why does mouseOut of a DataGroup ItemRenderer cause a state change?

Hi guys, I've found a very annoying problem with the itemRenderers in a DataGroup in flex 4, when I mouseout of the itemRenderer is returns to its default state. Here's an example: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"...

How to send email with Flex Exception

As I'm rolling out my Flex app to Beta I realized that I need to know about any exception that happens in Flex Side. But as it runs on users machines I don't get to see them. Is there a way to make Flex send email every time an exception happens? ...

XAML To MXML Conversion

Is to possible to generate MXML file using XAML file and vice versa??? Both are based on xml and contains similar type of coding.... So is there a way to convert XAML file to MXML file and vice versa? Thanks in advance... ...

can i add a container to a canvas in flex using action script?

hello i am trying to add a container having some UI components as child in it to a canvas and also want to set the border size only using the action script without MXML, 1) is it possible to add the container that is a lower class in hierarchy from parent to child upward, can canvas addchild() accepts the container as child ? 2) how ...

Top Horizontal Grid Line on Flex Column Chart is not applying my style

I have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black. <mx:backgroundElements> <mx:GridLines> <mx:horizontalStroke> <mx:Stroke color="0x000000" /> </mx:horizontalStroke> </mx:GridLine> </...

how to get an icons in a dropdownlist

Hi. In a dropdown how to get icons along with text and once we select any of the index from the dropdown i want that icon also be selected and to be displayed on that dropdown header ...

Parse a large JSON file in ActionScript 3

I need to parse a large trace file (up to 200-300 MB) in a Flex application. I started using JSON instead of XML hoping to avoid these problems, but it did not help much. When the file is bigger than 50MB, JSON decoder can't handle it (I am using the as3corelib). I have doing some research and I found some options: Try to split the fi...

Setting background-color for Flex Tree component..?

I have a Flex Tree component in my app. I set the icons for open and close. BUT I can't find something about changing the default background-color from white to something different. obviously there is no background-color setable in css... any ideas? thank you ...

Fxcomponent: Flex video player issue

I'm using the fxcomponent: Flv video player to play my flv/mob files. You may get it from here. Now, player works perfectly as shown in their site, but when I try to use the FXVideo control in popup window (popup manager help is here), the component gives mirror image!, strange, I didn't change any code in that. So can any one help me...

how to add click event on image area on flex?

Can i create img map and then add several click event? for example this img- I have 4 area for event top-left, top-right etc. How i can do this? I need something like tag map on HTML. ...

What is the diffrence in MouseEvent.CLICK & MouseEvent.MOUSE_DOWN on ActionScript 3.0

Hi, I'd like to know what is the difference between MouseEvent.CLICK & MouseEvent.MOUSE_DOWN. Because when i use MouseEvent.MOUSE_DOWN for a button to set full-screen view its doesn't work, instead of this MouseEvent.CLICK works. So what was the reason. ...

Flex 4: Help adressing an object.

Hi, I found this amazing code to make a dropdownlist with check boxes: Click here I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back. I have implemented as follows: <local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" it...

show focus on Canvas when click on linkbutton in flex

Hi, In my application one Datagrid and down one Canvas is there. I have a DataGrid with Data. When i select the data in the Data grid, the focus is displayed in the canvas. In the canvas i have a chart component.so when i select the link data on the datagrid the focus should be in the chart component in the canvas. Can any one pls help...

Webpage Icon that appears in the browser tab in Flex 4

Hello I want to add a Icon that represents my webpage in the browser tabs and when is saved to favorites. How do I add this. Probably some propriety of the Aplication tag that I can´t find. And what it the correct size the icon must be ? (32*32 or something like that) Thanks in advance. ...

first value should be select byDefault in the Advanced datagrid while loading th data in flex

hi, I have a advanced datagrid with data. if click on the any one of the data, based on the data below chart is plotting. But now my requirement is While loading the advanced datagrid data, the frst value select by default and plot the chart. Can any one of you know , how to select the first value while loading the data from server in a...

Flex 3: Problem with Flash Player 10 Upgrade on Firefox

UPDATED INFO: Hi, I uninstalled Flash Player 10 and re-installed Flash Player 9 debug version. I also uninstalled and re-installed Firefox. Unfortunately, I'm getting the same problem. If I set Flex's browser to Safari in the preferences, then everything works fine. If I switch it to Firefox, then it blows up. My project has an image ...

Flex: Drag-and-drop onto List item

I have a List with an item renderer and would like to enable drag-and-drop onto the items in the list, rather than adding the data to the list. Is it possible to find the item that is being hovered over when dragging? ...