flex

Desktop sharing application in Flex?

I want to make an application in Flex for desktop sharing. How should I proceed? ...

Flash/Flex Cursors

I work on a Flex app that loads external Flash resources created in CS3. I've just been reading about how I can use the Flex mx.managers.CursorManager class to change the mouse cursor explicitly. But what I'd ideally like to do is to set a mouse cursor property on some elements in the loaded Flash SWF, so as the cursor passes over this e...

Flex Command Line compiler capablities

Although the Flex command-line compiler (mxmlc) can compile MXML+ActionScript files into SWFs, I need specific insights into its capabilities, via the command-line switches. Configure which language you're writing in, ActionScript 2 / 3 Configure which Flash Player version you're targetting, 7 / 8 / 9 / 10 Configure what frames of the ...

[Flex] Converting a JPG to a Class at runtime

Some methods in the Flex API such as CursorManager.setCursor(cursorClass:Class, priority:int = 2, xOffset:Number = 0, yOffset:Number = 0) take a parameter of type Class for a graphic. This example lets you specify a JPG/BMP/SWF as the cursor, but the only way I know to get a Class from an image file is using [Embed] in MXML, and this nee...

What is the best way to reuse functions in Flex MVC environment?

I am using a Cairngorm MVC architecture for my current project. I have several commands which use the same type of function that returns a value. I would like to have this function in one place, and reuse it, rather than duplicate the code in each command. What is the best way to do this? ...

BlazeDS vs. GraniteDS

Anyone have any experience evaluating BlazeDS and GraniteDS? I'm curious about which is better at integrating with Spring/Hibernate. ...

Enabling HTTP methods other than GET and POST in Flex

My Flex UI is communicating with a local HTTP server through a REST-inspired API. I want to be able to use HTTP's put, delete and head methods as part of the API. Currently, whenever I use mx.rpc.http.HTTPService and set the method to something other than get or post, the server only sees a get. The Adobe docs for HTTPService say: Yo...

Do I need to worry about concurrency issues in my Flex/AIR code?

I have a situation where I'm starting a number of objects that, when they are ready to handle some input data, call a handler. That handler gets a dataset from an ArrayCollection of pending requests, assigns it to the object, and removes the dataset from the ArrayCollection. (I can't pop from the ArrayCollection because I need to searc...

Flex DisplayObject in fullscreen mode

I would like to make a display object fullscreen in my Flex application. I understand it is easy to make the complete Stage fullscreen in flex (example). But I have two charts on my Stage and I would like to make one of the charts full screen on clicking a button (or on double clicking on the chart area) and as per my understanding a Col...

Flex: How to assign method to Image.MouseMove event programmatically?

I understand how to declaratively assign a method to be called when an Image receives a MouseMove event. <mx:Image id="oneCent" mouseMove="dragIt(event, 1);" /> How do I do this programmatically in Flex/AS3? EDIT: Thanks for the comments. Here's what I have so far: myImage = new Image(); myImag...

Do you use jQuery, extJS, or other javascript libraries with Actionscript and Flex?

Since Actionscript is a proper superset of javascript, it should I suppose be possible. Do you use/have you used any of the the javascript extension libraries with Actionscript/Flex/Air? ...

How to set the RadioButton icon style to nothing in CSS (in Flex 3)?

You can skin a RadioButton in Flex by setting the following values in CSS: upSkin: Embed(...); overSkin: Embed(...); ownSkin: Embed(...); disabledSkin: Embed(...); selectedUpSkin: Embed(...); selectedOverSkin: Embed(...); selectedDownSkin: Embed(...); selectedDisabledSkin: Embed(...); But, it will still display the little circle icon...

MXML without Flex Framework/Components

The Flex compiler can compile "pure AS3" SWF files that don't contain any Flex Component bytecode. So, Would it be possible to create a custom component framework (used in place of the Flex Framework), that can still be visually laid out using MXML (read: markup), and compiled down to a SWF without any dependencies on the Flex Framework...

Flex with javascript only?

Have you tried using straight javascript (rather straight ECMAscript 3 standard) in Flex applications, with none of the ECMAScript 4 enhancements? If one were to do so, would it be better to let the AS3 compiler build from the javascript, or use the javascript bridge liberally? ...

What does the Flex [Bindable] tag do?

Meaning . . . I've seen cases where I've bound components to a [Bindable] dataProvider. When I updated the data in the dataProvider, the component doesn't reflect the change immediately. Do I need to do something to refresh the data? What event causes a component to refresh its dataProvider data? ...

Which event in the app's startup sequence is appropriate to trigger loading a config file in AIR/Flex?

I am working on a small AIR desktop application and I have some configuration infos that I want to store in a little file that's loaded at some point when the application starts and will be used to set public properties on the root application object. This should work just as if I had public variables declared in an <mx:Script> block at ...

Flex/AIR + Catalyst: What's the best way to get them to talk to each other?

What is the best way to get Adobe Flex/AIR to communicate with perl Catalyst? We are currently using Catalyst::Plugin::XMLRPC on the Catalyst side and as3-rpclib on the Flex/AIR side. That works fine, but I'd rather take as3-rpclib out of the picture and use a method that is native to Flex. From what I can tell, it's native compnone...

Flex 3 Localization: Removing a Locale

Although I'm still poking around in the docs and online, I figured I'd ask this one here, for future folks who run into it. Using copylocale for localization, I made a typo (e.g., "en_FR" instead of "fr_FR") and mistakenly created a locale I don't want. What's the proper way to remove it? Is it enough to simply delete it from my fra...

"freeze" one column in flex datagrid

I'm using a datagrid to display a column of date ranges and several columns of data. I'd like to make the first column (the date ranges) fixed; i.e. that column stays in place when the user scrolls the other columns. That way, the dates column will always be visible as the user scrolls through many data columns. I don't see a datagrid...

adobe flex problem with Base64Encoder

Hi, in the following code : var benq:Base64Encoder = new Base64Encoder(); benq.encode("force",0,5); var tmp:String = benq.toString(); 'tmp' turns out to be an empty string, i.e. with length 0. why? how to encode a string using base64encoder? ...