flex

Flex lint (ie, style checker)?

I remember reading about a lint-like tool for Flex code… But I'm having no luck finding it on Google. Can someone point me towards it? Thanks! ...

Flex faultCode list

Is there a list of possible faultCode values for Flex's Fault object (mx.rpc.Fault; Flex SDK: 3.4)? At least faultCodes for faults generated on the client side? I'm thinking of something like the list of possible runtime errors, found at Adobe's RTE List, but for faultCodes (such as Client.Error.MessageSend, Server.Processing, etc). C...

How to get the width and height in ActionScript for a Flex application running inside the flash player in the web browser

Hi all, Does anyone know how to get the width and height in ActionScript for a Flex application running inside the flash player in the web browser. e.g. In the web browser I can use the tag to embed a Flex application (as a .swf). To the embed tag, I can provide the dimensions. I would like to get these dimensions inside the flex ap...

In Flex, What is the difference between a skin and an itemRenderer?

Indeed they both (skins and itemRenderers) seem to do drawing using the flash.graphics.* package. I have copy pasted code between skins and itemRenderers before, so I really don't understand the difference. I have had more experience implementing itemRenderers than skins, so that might be part of the problem. Thanks, let me know. ...

Open custom IE window from Flex or Can a window customize itself?

Is it possible to open a custom IE window (i.e no status bar or address bar etc) from within flex? or if i call a php file or html file can the page customize itself when loaded? ...

FileReference.load() not populating FileReference.data.

I am trying to use the load method of FileReference object to load the data and use it to display a thumbnail of the selected image. However, after calling fr.load(), fr.data remains null. I'm using Flex Builder 3.0.2 on Windows 7 with Flex SDK 3.4 and Flash Player 10 Debug. If I evaluate fr.load() in Eclipse's watch variables list, I ...

Using a For loop with an array and addEventListener

I have this map I'm creating in Flash. You click on a state, then you can click on an icon to view a tooltip/popup of some information. What I was trying to do was instead of creating new functions and event listeners for every different icon is to use a for loop...but it's not going so well. I haven't touched AS in a long time so bear w...

how to freeze a label in flex?

I want to have the title of my application to be freezed, that is, even if I scroll down the page, I want the label name to be in focus, at the top always.. Is that possible? Now if I scroll down , the screen name disappears. Instead, can it be freezed like freezing columns or rows in excel? ...

Javascript Global Keyboard Handling, not hearing A-Z Keys?

I am trying to use Javascript to intercept keyboard events, so I can do CMD-W for "close-window" and whatnot, inside a Flash application, so the Browser doesn't get to use them. Well, I am able to listen for ALT, CTRL, and CMD onKeyDown/onKeyPress events, but I am not able to listen to anything else... Here is the code, in the index.ht...

Flex reset chart axis minimum/maximum

Hi, I am showing a stacked bar chart with Flex, and I am dynamically changing the data of the dataprovider. However, the minimum and maximum for the y-axis do not get reset with the new data. So if one dataset had a value of -100,000, but the next dataset has only positive values, the y-axis still starts at -100,000. How can I force t...

Pass a set function as an argument

Hi, How can I pass a 'set' function as the Function Object argument of another function? eg: public class IdModel { private var _id:String; public function IdModel(source:Source) { //Create Binding BindingUtils.bindSetter(id,source,"id"); } public function get id():String { return _id;...

Flex RemoteObject: Arrays with same values reference same memory

If I send remote data from Zend_Amf to Flex, if two array properties on the object have the same data values they are deserialized at the remote end with the same memory storage. Example: AS3 object: Snippet: [RemoteClass(alias="TestVO")] public class TestVO { public var test1:Array; public var test2:Array; } When this receives ...

Passing along information on a FileReference Complete event.

I need to pass along a string with my FileReference, or provide that string as an argument when an event fires. To be clear, it really annoys me that AS3 doesn't allow you to pass parameters on events. Right now, I've extended the FileReference class to include an additional variable. I'm trying to get this to compile, but it won't comp...

Client.Error.MessageSend problem with Flex/BlazeDS on JBoss

I'm developing a Flex 3.4 app that interops with a Java EE backend running on a JBoss-4.2.2 server, through the most recent release of BlazeDS. When I ran the Flex app from Flash Builder 4 beta 2 on Tomcat, everything was fine, the Flex app was able to make the remote call needed. But my production environment is on JBoss, and when I mov...

Computer readable list of human names / phone directory?

Hi all, I'm trying to compile a decent .zwl file for squiggly spell checking in Flex; using British words, not American as supplied by default. Ive managed to create a decent British list of words and ran them through the AdobeSpellingGen app to get a .zwl; great stuff. However i need to add into this list a list of names, so they won...

In ActionScript 3, how can I pass the current value of an array in a loop to an event listener

Code Example: var gospels : Array = ["john", "mark", "matthew", "paul"]; for each (var book : String in gospels) { var loader : URLLoader = new URLLoader(); loader.load(new URLRequest("http://example.com/" + name)); trace(book) // outputs current value of array loader.addEventListener(Event.COMPLETE, function(e : Event) : voi...

is creating the model as a singleton the only way to share data in the mode between views

Hi, I'm creating a MVC base application, in the past I've alwaysed use Cairngorm as the framework for my Flex applications. For this app I'm experimenting with other approaches to mvc, not other frameworks (pureMVC or Mate), but writing my own MVC base application. My question is in Cairngorm I've always created the model as a singleto...

Dynamic Image resizing

In my flex app there's an item renderer for a TileList that I am using. I load the image into the Item Renderer at runtime. I am using the following code to resize the image width and height. But it doesn't seem to be working. I debugged the flex app and find that the actual width and height values are getting assigned. But the image n...

Flex application loading and synchronicity

I know there are a lot of questions that have been asked about synchronicity in Flex, but I'm not sure if any cover the same issue I'm having. The title only refers to one possible solution I've been going for with this, but essentially here's my situation: Say I have a Flex application, and I have an XML file with configuration setting...

Flex Compiler Api: Adding images in Java

Hi there, I have a very specific question. I want to compile an ActionScript project within Java in-memory with the help of the Flex Compiler API ( http://livedocs.adobe.com/flex/3/compilerAPI%5Fflex3.pdf ). My last problem is to add images (jpg, png) that are embedded in the project to the compiler. I don´t see a possibility to do thi...