flex

Flex library projects: `undefined` is "unknown or not a compile-time constant"?

I'm in the process of refactoring a Flex application into a "library project", and one of the, err, interesting errors I've come across involves a function like this: function spam(eggs:*=undefined):void { ... } While it was a "Flex application", this function compiled without issue… But when I try to build it as a "library projec...

File Upload from FLEX or ActionScript 3 to ASPX .NET??

Hello. I would like to know how to upload a file from ActionScript 3 (From a FLEX Application) to a Dot Net Back End, maybe to an ASHX file, an ASPX file or similar and using C# as core backend language. Thanks!! ...

best way to prevent a flex tree node from ever being selected?

So, I have a custom Tree in which some nodes need to be marked as disabled. That is, they should be grayed out, and they should never be able to be selected. I've been able to prevent a user from selecting these disabled nodes by clicking on them pretty easily. However, I ran into the issue that if you have a child of the disabled nod...

Flex FileReference upload() and .data ... does this load the whole file into memory?

Hi all, I need to upload a very large file to my server, through my Flex application, and I see that Flex Filereference upload() seems to be able to handle it. Does the upload() methods uploads a 'stream' to the servlet, or does it sends the whole ByteArray (As I understand it, the ByteArray will have the whole file contents, so a >1Gb...

Flex: Extending x-axis on LineChart for unknown future data

Hello Everyone, How do you display data on a LineChart that cuts off where there is no more data? For example, if I am showing a chart of company revenue for 2010, the chart should only show up to July now (with August and forward on showing no data). This would make the line in the line chart break and dissappear off at about midway ...

DiVX Decoder for AIR

Hi all I am building a video player using Flex for my desktop. With AIR, is it possible to write a decoder to play AVI and .MOV on my system or do such solutions exist? ...

Flex Library Project: NativeMenu vs. ContextMenu

I have a Flex Library Project which has both Flex specific classes, and Air specific classes. When I reference the library in an Air project, the compiler complains about an overriding contextMenu in mx.containers.Panel, saying that the param should be of type NativeMenu (instead of ContextMenu). If I switch it over to NativeMenu then ...

Flex/AS3: changing width/height doesn't affect contents

I thought I had a handle on AS3, DisplayObjectContainers, etc. but this basic thing is really confusing me: changing the width/height of a sprite does not affect it's visual contents - either graphics drawn within it or any children it may have. I have searched around and found an Adobe page that represents my own little test code. From...

Operator Console App - Java/Flex

We are in the middle to evaluate the technology choice to re-design an operator console application. The operator console as a hosted contact center has the abilities to queue the inactive calls, and hold, answer, transfer the active calls. The legacy operator console used Java Swing. We want to use the latest RIA technology (Flex/Silv...

Populating an ArrayCollection property using [RemoteClass]

OK, I am passing a complex object from my .NET library to my Flex application via WebOrb. In order to automatically translate, I am using the [RemoteClass] meta data tag as follows: [RemoteClass(alias="test.PlanVO")] public class Plan { [SyncId] public var id:int; public var Name:String; } This works absolutely fine, unti...

Flash Builder project : no build done

Hi all, I created a new Flex project with Flash Builder 4. My project must used Flex 3.x (so only MX). I copied all my sources files in my old project (created with Flex Builder 3). All is ok. I updated the argument compiler line too. But, no build is done. Even after a project clean ... What's happen in your opinion ? Thank you very...

Howto create a partial mock using mockto-flex?

Is it posible to create a partial mock using mockito-flex? ...

Type was not found Error...

Hi, Working on importing some XML into my app. Been following the Flex in a week Video tutorial. But have hit an error. The error is : "Type was not found or was not a compile-time constant : Videoinfo." The line it is complaining about in the debugger is line 36 var video:Videoinfo; My code is as follows... videoList.mxml <fx:Sc...

flex 3 point graphs

Flex offers 1 point (One Y for every X , eg: scatter Plot). Flex offers 4 points ( 4 Y values , high-low-open-close for every X eg: Candle stick). Is there a way we can either customize the candle Stick, to show only 3 points? I also need the high-low-open to be "Dots" or "Diamonds". Currently they all end with nothing. I have current...

What styles are used by tabStyleName?

The language reference says "Name of CSS style declaration that specifies styles for the tabs. The default value is undefined." But, what is the "type" of style that is being used? That is, what style properties can I put in that style definition. For example, I wish to set the disabledColor of the text on the tab. I couldnt seem to do ...

Simple file upload using Flex UI and Spring/Hibernate/BlazeDS backend?

I'm new to Flex and BlazeDS and I'm trying to implement a simple application which uses Flex on the front end and a Spring/Hibernate application on the back end, with communication between the two going over a BlazeDS channel. I'm seeking direction as to the best and/or simplest way to approach this. I have the UI set up in such a way ...

Ampersands in AIR system tray tooltip

I have an AIR app that I have developed for a client. It has a system tray icon with the company name, app name etc, displayed in a tooltip. This all works very simply except that the client in question has a & in their name. No matter how I encode this, it never seems to get displayed. Anyone come across this before, or have any wor...

dynamically populating textfields in Flashbuilder

I'm trying to wrap my brain around getting data into my project in a way that I can use.. I want to use MySQL & PHP my Flashbuilder app and I'm not populating a datagrid so...... For simplicities sake, In my database table I have 3 columns "ID, Title & Content". I want to use this to populate the different states in my flashbuilder pr...

Example of using embedded fonts loaded at runtime Flex 4 runtime loaded modules

Hi, am having quite alot of problems trying to use embeded fonts in flex 4. Here is the situation. I have a main application that fist load the fonts via a URL. This is the font file code: package{ import flash.display.Sprite; import flash.text.Font; public class FontLib extends Sprite { [Embed(source="MyriadPro-Regular.otf", fon...

Flex - Dynamically add a property to an object based on a string value

I create a new object. My new object will always have a labelField because it has to be added to a dataProvider in a ComboBox. The problem is my next property. Each object in the dataProvider has a dataField property that has a string value [eg: 'code' or 'isoCode']. What I want to be able to do is this: var myObject:Object = new Object...