flex

Is it possible to compile flex 3 charts in intellij?

I'm aware that mx.charts is part of flex builder professional. I've downloaded the trial version of flex builder professional and added the datavisualization.swc to my intellij Flex_sdk classpath. The IDE is now aware of the classes, but when I come to compile I still get: "Type was not found" Is there a license or something I nee...

best way make default param = a variable?

I have a variable, and a function for brevity lets consider it looks like this: private function applyDiscount (value:Number):Number { return value*_discount; //_discount defined somewhere else } OK thats all fine and dandy but say I want to be able to call that function and be able to pass my own discount, but still use the _discount...

flex: Save an editable datagrid via a cfc

Hi I have an editable datagrid which i need to be able to save with other form fields via a cfc in coldfusion. Basically the aim is that there are a number of locations retrieved via an RO which make up the first column the remaining columns are types of data i.e. demographics, client notes, appointments etc, the idea is that the user...

Flex Tree Dynamic data and Python, use case questions

Hi, On the flex side i have a tree component which gets his Tree data from the backend. On the backend side we have Django using Pyamf for communication with Flex. We use MPTT (Modified Preorder Tree Traversal) Dango app to store Categories in a tree like fashion (a category Class has a parent field). We also have an Item Model Class w...

Compare Flex 3 and 4

Where can I find a chart or some article to compare Flex 3 and new 4. ...

Change label of a NativeMenuItem

I'm experimenting with Adobe AIR and Google Maps API in Flex Builder. The question is, i'm making a NativeMenu, and was wondering, how can I change the label of the "Fullscreen" item to "Exit fullscreen" when the stage is in fullscreen? If you see any thing in the code that could/should be written better, please let me know ;) Here is ...

Intellij Cannot determine verions for JDK

Why do I get the error in intellij: Cannot determine version for JDK flex_sdk_3. Update JDK configuration. ...

how to force new version of .SWF flash file to be loaded by users?

I dont want to rename actual CODE (class), but how can I just rename .SWF file and in which tag in need to update this new name? I like to use e.g. build number in name. E.g. myflash2.swf ...

Flex3 Canvas, ScrollBar

Hi, I would like to add a "simple" Sprite into a flex Canvas. I'am doing this: var uic:UIComponent=new UIComponent; var s:Sprite=new Sprite(); //<-- my simple Sprite uic.addChild(s); myCanvas.addChild(uic); The Sprite is correctly added to the Canvas, but now, i need to activate the Canvas ScrollBar depending on the Sprite size. (the...

Memory consumption of nested flex applications with RSLs using SWFLoader?

Hello out there, these days I read a lot with regards to RSLs. One disadvantage is that RSLs must be loaded into memory but can save significant loading time. Now what happens in the following scenario: I have a superFramework.swf and a subapp.swf. subapp.swf is displayed and loaded on demand within superframework.swf using the SWFLoa...

AS3:Best practice for getting image from Loader()

When loading images using Loader, what's the preferred way to add the image to the display list? Grabbing the data in an Event.COMPLETE handler like new Bitmap( Bitmap(LoaderInfo(e.target).content).bitmapData ) , or adding the Loader instance itself? ...

AS3: Extending Loader, how to draw border on its content

I'm extending Loader(), is it possible to draw a border around the content without resorting to some hacks? I understand Loader can't have any additional children, otherwise I would just create a shape to the contents size and add it. But is there a way to coerce or cast the content object in order to use the drawing API on it? ...

How to add additional files to adobe air installer?

I've created an AIR application, but it uses an external SWF for extra functionality. I want that SWF to be included in the install, but currently it's not. Is there anyway I can get FlexBuilder or any other tool to include this extra file in the installer? I've tried manually adding the file (as a .air file is just a zip file in disguis...

How do I stop a datagrid's first-row itemRenderer from instantiating/adding/initializing/etc twice?

In a Flex DataGrid's first row, the itemRenderer will initialize twice. Tracing the results reveals that the flex framework is possibly creating two instances of the first row's itemRenderer. In a more complex application, where the itemRenderer contains a data-bound ColorPicker, we're seeing an infinite loop occur because of this prob...

Undocumented Flash and Flex Functions

What are the undocumented functions of Flash and Flex? I prefer versions CS3 and Flex 2 above. Is there a way to get the whole list? ...

How to subscribe for an javascript event form Flex 3 action script code?

Hello, everyone. We have that Flex app talking to the server. We need some kind of *FlexEvent.ON_BROWSER_WINDOW_CLOSE* event but, unfortunately Flex does not provide such. So I've got the advice to catch a javascript "onbeforeunload" event and call the flash client thru the ExternalInterface-registred method. Is there any way to subsc...

Flash: AMF3 with reference tables?

AMF3 specification defines use of so called "reference tables" (see Section 2.2 of this specification). I implemented this behavior in my AMF3 encoder/decoder I developed in Erlang, but being not very experienced with Flash API, I can hardly find how can I easily force Flash to use these reference tables when serializing objects to AMF...

Object integrity and caching in a stateful client

I'm wondering what strategies exist to handle object integrity in a stateful client like a Flex or Silverlight app. What I mean is the following: consider an application where you have a Group and a Member entity. Groups contain multiple members and members can belong to multiple groups. A view lists the different groups, which are laz...

VBox (from Flex) in ASP.NET

I had worked in the IDE of Adobe Flex Builder for quite a while. Is there a simple equivalent to VBox (Flex) in ASP.NET? ...

Flex-style view states for .Net WinForms applications?

Is there anything like Flex View States for .Net desktop applications? i.e. the ability to edit the UI using a WYSIWYG IDE per view state and a means of switching between states during run time? If not as a built-in IDE feature, maybe as a 3rd party library? ...