flex

Flash Logging API

Can anyone recommend a good (AS3) logging API for Flash/AIR/Flex? I need something to capture and record mouse and keyboard events in addition to coded events. Preferably something well documented/supported. Thanks in advance. ...

How can I know when .aspx call is finished?

I am building a Flex Application that calls a .aspx page on the same webserver which builds a PDF report using SQL Reporting Services. When the report is built it prompts the user to open or save the PDF. We are trying to find a way to display a Progress Bar to let the user know that the report they requested is being built, and then de...

Declarative and programmatic SWFLoaders

What's the difference in terms of security between declarative and programmatic SWFLoaders? In the ff. code, loader1 throws a security exception while loader2 does not. public someFunction(source:String):void { var loader1:SWFLoader = new SWFLoader(); loader1.load(source); loader2.source = source; } ... <mx:SWFLoader id="loade...

Flex cannot deserialize webservice element that contains only attributes

I'm seeing a very strange issue with a .NET webservice being consumed by Flex. I have a very simple class with nothing other than properties with [XmlAttribute('xxx')] attributes. public class OrderAddress { public OrderAddress() {} [XmlAttribute("firstName")] public string FirstName { get; set; } [XmlAttribute("lastN...

CakePHP and Flex - Can they integrate and if so is it ugly or nice?

I'm looking at a new project and we are wanting to use Flex (to provide the easy integration with AIR and provide a desktop app for our project). How easy does CakePHP play with Flex or is there a better PHP framework to use with Flex, or should we use none? ...

Corrupt form data: premature ending (Resolved)

I am trying to upload files using the FileReference class. Files >2MB all work correctly but files <2MB cause this error: "java.io.IOException: Corrupt form data: premature ending" On the server I am using the com.oreilly.servlet package to handle the request. I have used this package many times to successfully handle file uploads from...

How can I create a drop shadow like floating effect around a canvas component in flex?

I want create a drop shadow around the canvas component in flex. Technically speaking it will not be a shadow, as I want it to wrap around the component giving the component a floating look. I may be able to do it with glow, but can anyone drop an line or two who has already done it? Thanks in advance. ...

FLEX3, Click and event catching, special case

Here is my problem: I have a main canvas 'blackboard' in a panel, this canvas has itself several childs, like a toolbar (tiles), a label and some skinning. The problem is that when i move to the rectangle tool and i start drawing rectangles if i want to change the tool when i click on an other tool such as 'circle' or 'select' the but...

default namespace scope warning (1084) in Flex script file

I have an MXML file, which references an external script file for all its event handlers: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script source="LoginExample.as" /> <mx:Button id="btnGoodLogin" click="btnGoodLogin_onClick()" label="Good Login" enabl...

Best way to size containers in Flex to obey ONLY parent containers' explicit dimensions

I've been running into this problem with Flex for nearly a year, and each time I work up a quick hack solution that works for the time being. I'd like to see if anyone has a better idea. Here are the conditions of a problem: |------Container ------------| | explicitHeight: 400 (or whatever) | | | |-----...

What features do you need the most in Adobe Air ?

I recently started to develop using Flex 3 and Adobe Air and I wanted to know what features you want to be in futures releases of Adobe Air ? The ones that I miss are: Cross-systems way of launching a local file (shellExec) right from an Air application (although you can do this using workaround at least under Windows) Ability to setup...

Flex application to component?

I have an application built in Flex Builder 3. It has a fair amount of mxml and as3 code which uses some other custom compenents. I have looked at the documentation on building components which shows how to make a simple mxml or action script component that extends something like a combobox, but I'm lost as to how to take a whole exist...

Strange behaviour when dynamically resizing Flash / Flex embed object

I have a simple Flex application that is a panel with a repeater inside of it; albeit a little simplified, it is like such: <mx:Panel id="pnl"> <mx:Repeater id="rp"> <mx:Label text = "foo" /> }); which in turn calls this javascript function: function resize(height) { // the embed or object that contains the fl...

Flex - Remoting vs HTTPService - when to use what?

I have been using Flex for a while and have not used remoting as of yet. Currently my apps use a webservice that generates xml that I use for databinding. What would be the benefit to using remoting over an xml webservice in this use case? Is there a general guideline when I should choose remoting over webservices? Why would I want t...

Sharing .NET session/authentication with Flex

I have a .NET 1.1 application (VB.NET 1.1 shopping cart) into which a user authenticates. I want to 'bolt on' a Flex application but dont want to have to have the user reauthenticate. They shouldn't know it is a separate application. I want to use WebServices (C# 3.5) over some kind of secure channel. My main question here is how do I...

How would I start learning how to program in Flex?

Can anyone give me pointers to good books or web sites that teach how to do Flex programming? ...

Actionscript 3 outside of Flash / Flex

I've just finished a flash project where I did the entire project in "pure" AS3, without the use of the Flex framework. I found very little written about this on the web, so I'm not sure if this is a common way to develop RIA's, or if I've jumped off the shoulders of giants and done something stupid that will bite me later. It seemed...

How can I disable an individual item in a combo box in Flex so that it is not clickable?

I want to create a combobox in flex which will take three values, Available, Unavailable, and Busy. The constraint is, I should not allow user to go directly from Unavailable to Busy. So when a User is selected Unavailable, I should keep the Busy item disabled (unselectable), but a user will be able to go directly from Available to Busy....

Can I suspend drawing to perform multiple successive updates in Flex?

I've written a simple calendar control to allow for selecting single days, weeks, months and so on. The simplicity comes from the fact that I don't really do any drawing myself, opting instead to create a bunch of boxes and labels to act as date cells for the calendar. When a date or a date range is selected, I need to highlight that ...

How to keep track of application version when compiling using Adobe Flex 3?

How to monitor version in swf file when we compile a swf file in Adobe Flex file? ...