flex

properties with $ prefix in Flex

What is the significance of the $ prefix on some properties of Flex Objects? e.g. item.$width ...

FLEX - Load an image of type class instance

I have a barCode class that is used to generate an image of a barCode. I create an instance of this class and it works as expected for example: var myBarCodeInstance:barCode = new barCode(); var myBarCodeImg:Image = new Image(); myBarCodeImg.source = myBarCodeInstance; Using this code the image appears and works fine. However, my que...

NativeDragEvent for drag and drop from the desktop not called Flashbuilder debugger

If I build my mxml file to an .air application, NativeDragEvent works like a charm. However, I would like to be able to debug this feature from Flashbuilder. From Flashbuilder, the NativeDragEvents are not called. Any workaround? ...

flex tree custom item renderer children creation

Hi, I have created a custom item renderer for the tree, i have added some children in create children function, my problem is that sometimes i need to show these children and sometimes i don't, depending on clicking on a button which also i have added at create children, the problem is that i had to create the item even if i don't want ...

Adding an image on the right side of the title bar of a panel in Flex 4

Hi, I'm trying to create a MXML component based on the spark Panel and I would like to add an image on the right end of the title bar, so that the panel will have a text on the title bar and a small image at the right end. I'm using a skin to define the colors, background fill etc. But how do I add this image at the right end of the tit...

Grid Renderers updating without updateDisplayList being called

I have an item renderer for a grid that has a fairly basic updateDisplayList function: override protected function updateDisplayList( w : Number, h : Number ) : void { super.updateDisplayList( w, h ); var labelWidth : Number = Math.min( _labelDisplay.measuredWidth, w ); var labelHeight : Number = Math.min( _labelDisplay.mea...

Flex: Write data to file to open in Excel

Hello, I have a Flex application with a couple of DataGrids with data. I'd like to save the data to a file so that the user can keep working with them in Excel, OpenOffice or Numbers. I'm currently writing a csv file straight off, which opens well in OpenOffice or Numbers, but not in Excel. The problem is with the Swedish characters Å...

Is it possible to create skinnable components in MXML using the Spark component architecture?

There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML. What I'm mainly referring to is defining the skin parts and skin states. It seems as though the SkinPart metadata is supposed to be associated with properties and as s...

Need to "introspect" innards of flex <mx:itemRenderer>

I've got a flex app with a DataGrid with several columns (defined in the MXML file), and I need to "introspect" the grid columns. That is, I need to write some ActionScript code which, given the DataGrid object, can determine various things about the grid (and more specifically, the columns of the grid). In particular, if a column is ju...

How do you make a TileList's itemrenderer size itself to the content of its data?

(Flex 3) I have a horizontally oriented TileList that is using an ArrayCollection as its data provider, and an ItemRenderer based on a simple mx:Text component. How can I force newly added tiles to size themselves (specifically width) dynamically, according to the width of the element being added? I've tried some invalidateDisplayLis...

SFDC: Unable to access static resource on site page

Dear Friends, I am working on Flex-SFDC apllication. In SFDC, I have few static resources which I can access in my flex application. This happens when Visual Force page is accessed directly. Now When I try to use this Visual Force page through a site page then SWF is uanble to load this files, any idea where I am going wrong. I am usin...

Can an Android AIR app call an NDK library?

Using AIR for Android, is it possible to call from Flex into an NDK library? If so, how can this be done? I have a large C library that I need to use. I know that I can do this from an Android Java app (through JNI), but I have a large Flex codebase that I'd like to reuse. ...

Styling both foreground and background selection color in a Flex list/datagrid

Flex exposes a "selectionColor" CSS property for styling the background color of a selected list/datagrid. However, I cannot figure out how to style the foreground or text color of selected list. It appears you can only change the foreground color for all rows. So, for example, that I wanted a very dark selection background color an...

Flash vs. Flex vs. Actionscript for data visualization

I'm trying to learn how to build interactive data visualizations, and I think I want to go the Flash/Flex/ActionScript route instead of using Processing. The problem is, I've never understood what the difference between all three is, so I don't know which one I should be learning. It sounds like Flash is more for designers/non-programm...

Desktop Flex application login system

I'm currently in the planning/early building phase of a desktop flex application that will be communicating to a Zend Application on a web server. The flex app will basically be like a layout/view in terms of the MVC pattern, it will make requests to various controller actions and display the data returned in a meaningful way, and post ...

How to skin an mx:DateChooser in Flex 4

I found these properties: selectionIndicatorSkin="..." todayIndicatorSkin="..." Which skins the DateChooser Selected and todays item. Oddly enough I didn't find a way where I can specifiy the skin for regular days! I found this property: weekDayStyleName="..." so I created a style .myStyle{ skin-class: ClassReference("com.my...

Air 2 and streaming mp3

I plan to play more than one MP3 at the same time like multi-track does, I know this will caused a huge increase in memory. Is there a way to stream or buffer live? If I use it on creating a virtual piano, would it be feasible to embedded 88's or 500MB of MP3 for performance or dynamic load? ...

Chart problem in Flex/AIR

here the link of my problem pic:here the problem showed above just happened on CandleStick and HLOC Chart. Anyone know what actually happened, and what the solution?? one more question : how to fix width of vertical axis label (shows prices in my picture) thx ...

Air 2.0 native process run multiple applications

After I could execute more than one VLC media player at the same time, am I able to close specific process/VLC instead of all at once? If possible, please guide me. ...

Flex 4 Drag-n-Drop with custom DragProxy

Hi, I'm doing the drag an drop of an ItemRenderer manually (DataGrid) and want to know how to generate a custom DragProxy of a component that hasn't been added to the display list. I tried something like this but didn't work: private function doDrag(event:MouseEvent):void { var dragSource:DragSource = new DragSource(); d...