flex

What is the use of event bubbling and event capturing?

What is the use of event bubbling and event capturing? ...

package to import for mx:XML

I am creating an app with Flex 4 using Flash Builder. When I try to use mx:XML component, I get the error Could not resolve <mx:XML> to a component implementation. Can any one tell me which package to import to resolve this error. ...

Best ORM for Adobe Air / Flex

I'm not sure what I'm missing here, but I can't find a reliable ORM for AIR. The ones I find are not documented well and don't seem to have a solid following. Is a solid ORM non-existant at this point? Ones I'm aware of: http://flexorm.riaforge.org/ http://code.google.com/p/airorm/ http://code.google.com/p/air-activerecord/ ...

16 bit tiff decoder for flex

Hey guys I am trying to open a 16 bit tiff image in my AIR app. What I have found is a baseline decoder which supports only 8 bit images. Here are my options: Extend its functionality to open 16 bit images but I dont know how to do that and how trivial it is. Open my images as 8 bit but I need to do that automatically within Flex. Do...

Two-way data binding in actionscript causes stack overflow

Hi - I'm binding two AutoCompleteModified objects to one another; meaning you type in one and it selects the correct object in the other. It works fine when I define it in MXML: However, a user can add a new row to a Grid and then I set up the binding and objects via actionscript and it gives an 'undefined' error: ChangeWatcher lin...

Spark TextInput incomplete value using Barcode Reader

Hello, working with Flex4 AIR app, using this component I get data from the barcode reader, <s:TextInput id="barcode" enter="showBarcode()"/> Then for handle the enter event, wich is automatically triggered when reader finishes its reading private function showBarcode():void{ Alert.show(barcode.text); } Ok, very simple. But my p...

Flex's FileReference.save() can only be called in a user event handler -- how can I get around this?

I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an ...

Getting 2032 error (On only 1 machine)

I built an AIR app a while ago. One of the users today got a new machine (XP) and keeps getting a 2032 error when the app tries to send/receive data via HTTPService I verified that this page works when accessed within a web browser. It also works on AIR apps on other machines. The page and the AIR app haven't been changed for months, the...

Issues with using # for deep linking into dynamic apps?

I have a Flex app I built. It uses the BrowserManager class to listen for changes in the # part of the URL. When a change is made to the hash my application updates accordingly so you can link directly to a state of the application. Also inside my programming when a user clicks something, all I do is use the BrowserManager to update the ...

How to get a channelSet to be authorized when a session already exists without calling login

In my Flex application, channelSet is reset on each browser refresh. If you've authenticated and refresh the page and check channelSet.authenticated, it says false, but your remoteObject calls will still work because the server session still exists. I have a service call that checks for a session on the server and can identify that one ...

ActiveCollection Encapsulation

I have a view, which wants to consume information from a presentation model. This model contains among other things, a collection of ActiveRecord objects. I would like to not expose the entire collection to the models consumers, but instead wish to only expose the 'data' part. I expect that I can write a method to create a data-only co...

Can I add a disabledIcon to a Flex Menu for use in PopUpButton

I am using the Flex PopUpButton & data binding a Menu object to the popup. I successfully added an icon to a menu item; however, it does not look like Menu supports the disabledIcon property common in many other elements for use when enabled: false for that menu item. Is it possible to extend the Flex Menu class to use disabledIcon? Sho...

flex chart annotationElement incorrect data points

I have 2 Y-axis on the chart and I am trying to use annotationElement's localToData to get the data points associated with a Point on the chart. The annotation Element is able to return a set of values for the point ( 1 Y - data, 1 -x data), But it is returning the values against one axis and not the other. Is there a way to associate ...

Hidden Features of cairngorm

Hi, I found a lot of interesting info in the 'hidden features of...' series. I am very new to cairngorm . What are some of the hidden features of cairngorm. ...

implementing singleton class for Actionscript

I know actionscript does not allowed private contstructor at any time and But if i want to write a sinlgleton class in action script So how to implement it in actionscript. Can anyone provide an sample example of a singleton pattern in actionscript? ...

Flash Media Server and XMPP Server Communication, is it possible?

i create a chat application using Adobe FLEX, currently it is not implemented yet, but i have a plan to use Flash Media Server as the chat server. The problem is my application should be able to communicate with other XMPP server such as AIM or Google talk. Is it possible to do that? or is there any better solution? UPDATE The point i ...

Flex RSL - IE shows Error #2124: Loaded file is an unknown type.

Implemeting RSL in Flex 3.2 The build comils perfectly but opening it shows Error #2124: Loaded file is an unknown type. URL: Whereas I have confirmed the requisite files are there in the folder. i.e. SWZ/SWF. I also noticed we assetCache does not contains framework swz. Any pointers ? ...

Flex UI Inconsistencies

I am having some issue with consistency across different machines with my flex application. There are three things that I have noticed with my application. On my development machine (Windows XP) I can not reproduce these issues. I have noticed them on a Windows Vista machine as well as a Windows 7 machine. The three things that I hav...

Displaying one component on the top of other

How can I display one component on the top of another one in flex without explicitly mentioning x-axis & y-axis? ...

Flex Dictionary: Order

Does Flex Dictionary maintain the order of its elements? ...