flex

Item's depth in ArrayCollection

Hi, is it somehow possible to get item's depth in ArrayCollection? ...

extract and display contents of zip file in Adobe AIR.

I have a requiremnt where my Air application loads ZIP files instead of swf. The zip contains all swf ,images and other files. My requirement is when user browses for file in a browse dialog, user selects a zip file and the contents of this zip file should be displayed to the user. i found examples to extract zip files, but i want to k...

Problems with listening for an event in child object in Actionscript

I have two classes. The first one (the starting class): package { import flash.display.Sprite; import flash.events.KeyboardEvent; import tetris.*; public class TetrisGame extends Sprite { private var _gameWell:Well; public function TetrisGame() { _gameWell = new Well(); addChild(_gameWell); } } } The second...

How should a programmer go about getting started with Flash/Flex/ActionScript?

What is the shortest path between zero (ie no flash related development software on my computer or information about where to obtain it or get started) to running a "hello world" ActionScript? I'm hoping for an answer that gives step by step instructions about exactly what software is needed to get started, an example of some "hello wor...

"Packages cannot be nested"

Hi guys, Im having a problem with Flex 4 beta 2... I cant call a class using: "<fx:Script source:"myClass"/> For some reason, no matter what I do, the error is always the same. "Packages cannot be nested". I googled it and I found links to help.adobe.com... but they are all broken links... So, is this a Flex bug or there is a new wa...

Flex: Why is line obscured by canvas' background

I want MyCanvas to draw lines on itself, but they seem to be drawn behind the background. What's going on and how should I do this? Main.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:my="*"> <my:MyCanvas width="300" height="300" id="myCanvas"></my:MyCanvas> <mx:Butto...

How to solve "NullPointerException" with "Server.processing" error while we are using Flex Builder 3 and BlazeDS?

I am using Flex builder 3, BlazeDS, and Java with Spring and Hibernate framework. I using the remote object to load a string from spring's configuration files. But in testing, I found this fault event like this: RPC Fault faultString="java.lang.NullPointerException" faultCode="Server.Processing" faultDetail="null" I have chec...

Adjusting Component size in flex

I have a viewstack with 3 items in it. Now my problem is that I want all these components to be of the same size. Its simply enough to do this manually but is there any other way of setting the size for all the components at once? ...

how to show the next image after image loaded in flex

Is there any possibility to show the next image with out white space(background) using flex. ...

I have some questions about building an AIR app for use with a connected projector.

For an app I'm working on, I'd like to have a control panel window and a video output window to use for projecting video with an attached projector. I have built many Flash applications but this will be my first time using AIR so I have some questions. Is it possible to have two seperate windows as part of one AIR application? Can one ...

Right parentheses in flex with help of keyboard event

I am using a text box and i added an event listener on key down.I want to know the last typed character with the help of charCode(or any thing which is poosible). Main problem is that when I want to press '(' i.e right parentheses then i am unable to find typed character. All these things are in flex.So anyone?? ...

asynchronous file upload in flex

sample for asynchronous file upload using flex filereference object ...

How to exclude series in legend (Flex)

Hello, In flex charting, I want to draw something like "reference lines" which are related to specific series, therefore these lines are not independent series and should not be shown in legend. Is it possible to exclude some series from chart legend? Thanks! ...

Is there an event dispatched when a series is added to a chart in flex?

I want to know when the data has been added to a chart so I can use localToData() to draw on the chart. If I do this immediately after setting the dataProvider the chart has not yet updated, so the the call to localToData will not return the correct values. Is there an event I can subscribe to so I know the chart has drawn the data in ...

Newbie can't get Tomcat to reload Flex/BlazeDS application

I'm an experienced 'old school' programmer, but new to Tomcat and Flex. I've followed the getting started for BlazeDS. I'm making changes to the Flex code using Flex Builder 3, but I just can't get the changes to show up when I refresh the page on my client. Server and client are separate physical machines, I've even re-started the serve...

Is there any way to find unreferenced code in Flex Builder?

We've got several Flex projects, one of which has just been refactored. I'm wondering if there's an easy way to tell which classes and functions (if any) aren't being used any more? I've discovered that we've definitely got some unused code, because running ASDoc on the entire project reports some compilation errors which don't get rep...

Error using a hyphen as an object property name in Flex

I'm trying to assemble a header object for an api request. One of the headers is 'Content-Type'. The hyphen is causing a compile error. Flex is giving me: 1050 - Cannot assign to a non-reference value. I find it spiteful that they enjoy the use of a hyphen in the error message while I hang my head and come here for answers. ...

Open tab from TabNavigator with actionscript in flex

A short question: I've got a TabNavigator with multiple canvas children. How can i open one of the children with actions script (imagine it as a tab with an intro and after login the tab with content needs to be opened). I have tried this.parentDocument.tabs.selectedIndex(1); but that doesnt work. ...

Hello World fails with "Error: Could not resolve <s:Application> to a component implementation"

I'm just starting with Adobe Flex on linux, and can't get the hello world example to work. My application.mxml file is simply <?xml version="1.0"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <s:layout> <s:Vertical...

Sharepoint WebService with Adobe Flex

I have My Sharepoint Web Service URL, but when i try to access it i get HTTP Request Error. My Share point Webservice has credentials in it. I have also set that in Flex. webService.setRemoteCredentials("CITMOSS\Administrator","Pa$$w0rd"); When i trace the url, my console does read the XML, but i am unable to call the method. It throw...