flex

Flex: Is it guaranteed that code is excluded from compiled build when not reachable?

Suppose you have private static const INCLUDE_MY_DEBUG_CODE:Boolean = false; public function runMyDebugCode():void { if ( INCLUDE_MY_DEBUG_CODE ) { callADebugFunction(); } } private function callADebugFunction():void { ... } Given there is no other reference to callADebugFunction, will it be guaranteed that c...

When to render Legend in Flex

My Flex chart has code that creates a legend from each data series. Currently, I have the drawLegend function execute when a button is clicked. I am trying to get the legend to draw automatically but I am having trouble determining when to call the drawLegend function. Users click on an 'Update' button which retrieves data. I want the l...

Populate ArrayCollection with HTTPService

Hi guys. Yes there is a question like this one, but there is no activity and no answer. I want to load data from a external XML file, using a HTTPService, and on the ResultEvent of the same HTTPService i want him to populate a ArrayCollection with the data from the XML. I think a ArrayCollection is the ideal for this XML. but I'm open...

Compiling a Flex Library with a source attachment using compc or FlashBuilder

I am trying to compile a Library SWC using FlashBuilder while retaining the references to the source code so that asdocs will still appear and the debugger will show source code when there is a problem. The results I want are similar to what you get when you set a "source-attachment" in the "ActionScript Build Path" settings panel. (see ...

Flex date formatting XML result.

I am retrieving a twitter feed using a php file and it is returning the XML, however the date XML field is.. <created_at>Sun Nov 08 07:26:07 +0000 2009</created_at> I am calling this inside flex from my [Bindable] public var twitterData:XMLList; using {data.created_at} how would I format this to read as a normal date? (i.e Sun Nov ...

Flex ComboBox subclass with "Null" / "All" option?

Just wondering if anybody knows of an existing component that subclasses ComboBox but lets you specify an item in the list with a label like "all" or "none" that will set selectedItem to null? I've looked into writing one, and due to the internals of the component it looks like a lot of work, so I'm wondering if somebody's already done i...

Interactive heat map in Flex

Hi All! I’m at a very basic level with Flex and with programming in general. I am working on a project where I have data in an Excel (.csv) format, it’s a large Excel plot/matrix where each cell has a temperature number. I want to import this matrix into Flex somehow, or parse the data in Flex, so that this matrix turns into an interact...

How to stretch out the movie clip after applying some Pixel Bender filter? (Flash)

How to stretch out the movie clip to twice its width and height after applying some Pixel Bender filter? I have some object with video on it (for ex 512 by 512) I apply a Pixel Bender Filter on it. Now I want to stretch the result (for ex to 1024 by 1024). How to stretch it? So my point is 1) Render the result of effect 2) Stretc...

[Flex3] Why are my swfs not the right resolution?

Forgive me if this is a really stupid question, but I cant figure it out. I must admit this is my first project in flex as opposed to flash cs3. All of the assets that I'm using in my .swc are in a .fla that is 1024x768. Nothing in my actionscript code is scaling down the size of my app, but every time I test my project, my project on...

How to use flex tilelist data effects combined with a ListCollectionView dataprovider

I am using a TileList control with an effect sequence linked to the itemsChangeEffect property. <mx:TileList itemsChangeEffect="{dataChangeEffectSequence}" ...> </mx:TileList > <mx:Sequence id="dataChangeEffectSequence"> <mx:Blur blurYTo="12" blurXTo="12" duration="250" perElementOffset="150" filt...

How to set alternate row color in flex datagrid?

Hi, What is the method to set different colors for alternate rows in a flex datagrid? So that two adjacent rows are identified easily? ...

Removing VideoDisplay in flex/flash

Hi, I have a videoDisplay object in a popup. When I remove the popup the video continues to play. How do I remove the videoDisplay object from memory? I have tried setting the variable to null but with no luck. I can just call the stop() function and forget about it but am wondering whether this won't come back and bite me. Any help mu...

Flex Glow effect customization

Hi, all. I use Flex's Glow effects in my custom VBox-based component for highlighting it on roll over. It looks great. But I would like it to have rectangular shape with gradient to alpha 0. How can I accomplish that? Should I add some properties to Glow effect or mix it somehow with other effects or use another effect? Code is below: ...

Adobe Flex mx:TileList scrolling issue applying filters to DataProvider

After scrolling down a TileList if I apply a filter to the DataProvider (ArrayCollection), the TileList UI object doesn't re-position correctly. It let the user in the bottom of the list that looks like empty but it isn't, simple the existing records are above the scrolling position. I solved the issue calling method scrollToIndex(0) of ...

Flex RemoteObject + Zend AMF Server problem

Hello! I am working with php, Flex and zend's AMF Server using this guide. I successfully managed to connect php with Flex but after 'reconstruction' of my MySQL query I get a little bit different objects - some of their values are NULL. That confuses Flex and I get an error from my RemoteObject: Was expecting mx.messaging.messages.Ackno...

Air / Flex / Zend Amf - How to move from localhost to web server enviroment?

Hi Everybody, I'm new to flex and Air development and have been stuck on a problem for weeks ;). Are there any Air + Zend Amf examples that use a real world web server and not localhost? Basically I cannot get an Air or Flex application connected to a remote mysql db to work once deployed. How can I successfully move a finished applic...

Watching an ArrayCollection's length property in AS3/Flex

I would like to put an eventListener on an ArrayCollection's length proprety, but I don't know how to go about this. I want to do this because I only want code to execute when a certain number of things are in a certain ArrayCollection. I want Flex to wait to execute this code over the next object until that length property drops back t...

advancedDataGrid with two providers

I want to have 2 dataproviders for 1 advancedDataGrid: 1 normal and second one for combobox in a one of columns. I want to have this combobox to have data from a column in database (i already have it in arrayCollection). I just don't know how to provide data for comboBox in a way that it doesn't have to read that data from database every...

Acoustic Echo Cancellation (AEC) with Flash AS3?

Acoustic Echo Cancellation (AEC) with Flash AS3? What do I need? Open Source Libs/wrappers. Tutorials and blog articles on How to do it. ...

Extending Flex FileReference class to contain another property

I want to extend the FileReference class of Flex to contain a custom property. I want to do this because AS3 doesn't let me pass arguments to functions through event listeners, which makes me feel sad, so I need this property to exist on the event target, so I can access it. I also want to be able to cast extant FileReference objects to...