flex

How can I test for an event sequence in FlexUnit 4?

I have a component that, on creation, dispatches two events to populate data fields. The events should remain separate because they're used elsewhere for distinct actions. I want to write an asynchronous flexunit test to confirm that these events are both sent. The problem is, they're both variants of the same event. Here's the code: ...

Highlight the maximum or minimum value in a flex advancedatagrid

I've tried and tried to do this myself but failing abysmally so hoping someone here can help. I have an advancedatagrid that displays a table of values from an arraycollection coming from a webservice. I am wanting to highlight either the maximum or minimum value in a row or column. I'm not bothered how they are highlighted - be it th...

Using Web Service data across components in Flex

I am currently writing a flex project which works a bit like a standard website, with categories on the left side and then the products from that category on the right hand side (and also pages for the products etc and checkout process). This is made up of seperate full page components in a viewstack which get shown when a user clicks on...

How to detect unplayable video channel?

I'm using NetConnection, NetStream and a flash.media.Video control to play back video files stored on the local machine. Works great for FLVs, and for H.264-encoded MP4s, but for non-H.264 MP4s, I often get audio, but no video. I realize this is to be expected. What I'm wondering is whether there's a way to reliably detect that the vi...

How can I get started with Emacs + fcsh + Flex3?

I've got some reasonable emacs-fu, and I know how to use the Flash Builder IDE to work in Flex/Actionscript, but I'd like to move to using Emacs to do most of my coding instead of the flash builder. This poses some problems, though, namely that I'm not sure how to go about compiling my flex project from the fcsh-mode command line. Here...

Eclipse/Flex: update a file every time I launch?

OK my project uses an xml file called Chart-app.xml inside this XML file there is a tag called <version></version> which I keep in the format like: <version>1.2.128</version> I am wondering if I can set it to append to the third number every time I run my project. So if I ran it now it would be 1.2.129, then if i ran it again it would b...

How far is HTML (and SVG and CSS and WebGL and JavaScript) to reproducing what Flash/Flex can do today?

As a Flash and Flex developer it is a little disheartening to see the strides in HTML5. Don't get me wrong I have nothing against progress, for me it is just that currently it is easier to write an app in Flash vs AJAX. I love writing in Flash and Flex and think ActionScript is a really great language. But, it appears the strides made in...

Flex HDividedBox custom divider

Before I go ahead and begin coding one, I was wondering if there are any existing components that allow me to do the following in an HDividedBox: Have an embedded arrow that, which clicked, will collapse a child of the HDividedBox and when clicked again, restores the child. It is something like a vertical accordion with the way the co...

Flex/Flash: capture 'trace' in code?

In Flash/Flex, is it possible to capture the result of 'trace' in code? So, for example, if one part of the code calls trace("foo"), I'd like to automatically capture the string "foo" and pass it to some other function. Edit: I'm not interested in trying to use trace instead of a proper logging framework… I want to write a plugin for F...

Left align for Tilelist or List in Flex

How to use the horizontal align property of TileList or List in flex? I want to make an align left of my TileList with only 1 column. I know I can use a simple List for that, but this is a requirement. Regards Zeeshan ...

Can Adobe Air application use p2p?

I've already built a flash 10 flex application which use the p2p feature (I'm using a developer key to connect to stratus), currently everything works fine. Now I want my application to run on Adoble Air Runtime, but it seems that p2p does not work for Air. I can successfully connect to stratus server in Air application, but after that...

calling invalidateProperties and invalidateDisplayList in UIComponent renderer

Hi All I am working on a UIcomponent based item renderer and am getting some odd behaviour. In my set data function I call invalidateProperties and invalidateDisplayList. I then get updateDisplayList being called before commitProperties and updateDisplayList is not then called again. I was under the belief that commitProperties was al...

How to remove validation programmatically from flex component

Hello, How to remove validation programmatically from flex component This is my method public static function validateRequired(txt:TextInput, errorMessage:String="This field is required"):Boolean { var v:Validator = new Validator(); v.listener = txt; var result:ValidationResultEve...

Prevent exit fullscreen when "ESC" is pressed in Flex

We have a Flex application which goes fullscreen on startup (which is possible when it's a projector .exe). When a user presses ESC, the application exits fullscreen mode. Is there any way to prevent this? This because we want to use the ESC-key for other functionality. Normally all keyboard input is disabled in fullscreen mode, but not...

Flex: Different width for different tabs in tab navigator

Hi friends, Is there some way to have a tab navigator in flex where each tab width can be controlled explicitly ? Thanks in advance. ...

How to solve null object reference after instantiate FacebookSessionUtil

Hi, everyone. I think you can help me out from this little problem. I am a novice in Facebook developer by choosing ActionScript 3 as my developer platform. I use SWC library from official facebook-actionscript-api that promoted by Adobe. So I followed their tutorial. So I did following instruction: Create Flex project. Download and...

Flex ExternalInterface : possible for ActionScript to interrogate the HTML document?

Is there a way for the Flex app to get any information about the HTML document via the ExternalInterface? Can Flex find out if a particular DIV exists, for example? ...

Flex, <mx:Combobox> & XML: get xml node to specify's dataprovider

Hi! I'm trying to set a combobox's dataprovider. I have 2 comboboxes: cb_div and cb_stores. For cb_div, I get to set the data provider correctly with an XML file. Cb_stores' dataprovider is to be set depending on the selected item of cb_div. First, here are my XML files. Data provider for cb_div: <?xml version="1.0" encoding="UTF-8"?>...

Ruby on Rails Routing Error

Hi, I was developing the Application in Flex and ruby on rails. It is working fine some times. but some times i am getting routing error. Error: "No route matches "/index.html" with {:method=>:get}" Here index.html is my login page Please help me on this. Thanks, Ravi ...

Flex advanced datagrid styling

Hi all, I'm using an advanced datagrid in a system I'm building. the design PSD from the designer includes a special background on rollover. So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row. is this even possible? can a row get the background from an im...