flex

Find out the character pressed key

If I add a listener to KeyboardEvent.KEY_DOWN, I can find out the keyCode and the charCode. The keyCode maps to a different character depending on the keyboard. The charCode is just as useless, according to the help: The character code values are English keyboard values. For example, if you press Shift+3, charCode is # on a Japanes...

Tools for hacking Flex data connections

I'm in the process of building a test plan for validating the security of our Flex/J2EE application. I believe we have some issues with trusting the Flex application too much, but I need to be able to quantify those issues. The ideal way would be a way to show me making data service calls outside of the application. Are there tools or i...

Speex or nellymoser

I am developing a voice application, I have 2 options speex and nellymoser .Why should I use speex instead of nellymoser in flex application. ...

flex compiler error (warning) message in flex ant task

I have following warnings if I compile our flex project with the ant task from the flex sdk. Does anyone have an idea where this comes from and why this happens and if I can safely ignore it? (The swf file itself seems to get created without an actual error) [mxmlc] The args attribute is deprecated. Please use nested arg elements. [mxml...

How can I tell if E4X expression has a match or not?

I am trying to access an XMLList item and convert it to am XML object. I am using this expression: masonicXML.item.(@style_number == styleNum) For example if there is a match everything works fine but if there is not a match then I get an error when I try cast it as XML saying that it has to be well formed. So I need to make sure tha...

Does Adobe Air have unconstrained file system access?

I've found several examples and documentation that show how to read and write files on the system, but all show user intervention or reading/writing files in user profile directories. There are a few things I want to do: Monitor system and other application log files for changes, then automatically load those files when changes occur ...

Flex/air or google gears or other...

Hello, I'm starting a new project divided into two parts: a php application and a desktop application that will use information from the php application. The desktop application needs to meet the following requirement : easy to install easy to launch allow off-line data view allow synchronization with php app. which solution is bet...

How do I read from a config file in Flex?

Hey, I'm working on a project for school right now and we're trying to get it set up so that it is easily deployable. The webapp portion of it is written entirely in Adobe flex. However, we need links to certain files / url's within the code which are different on different machines. For instance, my server might use 8180 as the port ...

Flex Write File

I checked in the API, that writing a file is only in Flex Air. Despite of that, is there still a way in Flex to write a file on the server or on the client machine ? More concretely, it's because I have a String and I will decode it by mx.utils.Base64Decoder to a doc. And I need to open it by Word directly on the client side, or write ...

Flex - Vertically position children of a horizontal HBox

I have a custom HBox as so.... public class MyBar extends HBox { public function MyBar() { super(); this.height = 65; this.percentWidth = 100; var newButton:Button = new Button(); //..... newButton.y = 20; var spacer1:Spacer = new Spacer(); spacer1.percentWidth = 50; var spacer2:Spacer = new Spacer(); spacer2.percentWidth = 50; t...

Re-measuring custom item renderer on a List

I'm writing an Adobe Air client to a service similar to Twitter. On the timeline (List component) I have a custom item renderer which is basically a Canvas with a fixed-width Image and a Text control, which is multi-line. If the text is long enough to change the Canvas height, it will only be resized if I manually change the width of t...

Suggestions for Stress Testing BlazeDS

We are removing our XSL-> HTML solution annd replacing it with a Flex UI for our userbase. One of the concerns is that the BlazeDS (amf endpoint, so streaming or polling) won't be able to handle the load as well as the EJB -> XML -> XSLT -> HTML stack. My theory is that it should perform better, but I need a way to statistically prove th...

Alternatives to swfobject for embedding flashplayer

Does anybody know if there's a better alternative to swfobject? I actually like swfobject, I just wanted to hear if anybody found something better. Or maybe it is the best way. If you do not know swfobject you can find it here: http://code.google.com/p/swfobject/ ...

BlazeDS and ArrayList of custom objects

I'm using BlazeDS to connect Flex with Java. I'm having trouble passing ArrayLists of custom objects from Flex to java. I have two objects, one is called Category, the other Section. A Category has an ArrayList of Section objects. I can send an ArrayList of Category objects back and forth between Flex and Java, the problem is when ...

Flex writing to it’s own directory

I have a Flex application I’m writing (Learning exercise) that I’d like to run of a network drive for many users to access. I’d like users to be able to save high scores on the network. Users have read write to the network location it's on. I don’t want to change anything on the computers that might use it (IE install AIR) or IE/Firefo...

Flash mesh tweening/animation

Is there a way to correctly tween/animate meshes in Flash authoring tool? Shape tweens don't recognise movement of specific vertices, don't preserve connections and generally mess things up. Shape hints are too few for any non-trivial mesh, and too much manual labor anyway. I am trying to accomplish smooth animation between two mesh sh...

Is there a easy way to hide the flex preloader?

Is there a way to hide the preloader. One idea I have is to make a new one that is empty, but surely there must exist an easier way to do it. It might sound like a dumb idea but in some situations it can be nice to just hide the preloader. Especially if it doesn't require a lot of work. ...

100% to 100% Flex application preloader positioning

Hello, everyone! I've got a problem trying to apply a loading animation to my Flex application - a whole browser window occupant. I'm subclassing DownloadProgressBar class as described on Adobe's article about this. stageHeight and stageWidth, reported by base class are incorrect. It says 500x375 pixels in constructor and 0x0 elsewhere....

How to send value through URL in FLEX

Hi, I want to send current date with URL in flex from client side and want to get it on the server. I am using MXML and ActonScript. Please help me. ...

Flex Text Control Undo

I'm having trouble finding any resource for adding ctrl-z undo capability to a Flex RichTextEditor control (a lack it apparently shares with other Flex text controls). I'm baffled that it's not in the native forms because it's such a fundamental capability, available in even standard browser text controls I believe. Any mention of this ...