flex

AdvancedDataGrid (grouping) quick jump to row

Hi, I have a problem with the AdvancedDataGrid widget. When the dataProvider is an ArrayCollection (of arrays), the nth array (within the collection) is also the nth row within the grid, and I can jump and display the i-th row by scripting adg.selectedIndex = i; adg.scrollToIndex(i); now, when I add a Grouping, the dataProvider end...

Updating an actionscript xml object directly in one line using e4x?

Given the following xml: <form> <personalDetails> <name>John</name> </personalDetails> <financeDetails> <income> <salary>1000000</salary> </income> </financeDetails> </form> I know that is it possible to create the above xml as follows (which is very cool): var xml:XML = <form />; x...

AS3: How do I take a snapshot of a movieclip with a transparent background?

Hi, I am coding in AS3 and I am using BitmapData to take a snapshot of a movieclip. Is there a way to have the end result BitmapData to support transparency? How do I take a snapshot of a movieclip without any background? Thanks. ...

Use multiple WebBrowser tabs for 1 flex Application.

Hello everyone, I'm developing a flex application to view charts and statistic data about real-time stock price. The requirement is that 1 user can view multiple windows (or panel, or canvas) of multiple stock symbols at the same time. I want to have 1 button, when I click at that button, a new panel will be pop up in a new WebBrowser...

Stream pdf/excel files dynamically to flex UI application

Hello all, We have an app that has the following characteristics- a) Flex front-end. b) Spring, BlazeDS and tomcat back-end c) Flex UI communicates with the back-end server using AMF/xmlrpc d) Mate framework is used for Flex front-end I have a requirement to generate reports on the flex UI and be able to export these reports in PDF ...

Flex: Show label

I have an object with a property STATUS which is of a type String, STATUS holds 1,2 or 3 Now each value for STATUS has its value to show so; 1 => 'Inactive' 2 => 'Active' 3 => 'Suspended' Meaning that on a form I'd display those textual value instead of just 1,2 or 3. I hold the value in an ArrayCollection What would be the best an...

Flex 4: Accessing public method in main application from component

I need to be able to call a method from a component located under the main application in Flex 4. Can anyone tell me please how to do this without using FlexGlobals please? Sample code is attached. Thanks in advance. // TestApp.mxml (application) <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.co...

How to create checkboxes from ArrayCollection

I have an ArrayCollection [{category: "fiction", title: "The Time Machine", author: "H.G. Wells"},...] of objects from which I want to create checkboxes that: Are divided into sections with section headers Are displayed horizontally, i.e. the checkboxes appear left to right and continue onto the following line Anyone know how to achi...

Flex 4: Event Listener created, but not being called?

I'm trying to call an event I've created in another component. I've added trace() into my methods so I can see what's being called. Everything except for the event listener (myEvent) is being called. Can anyone tell me why this is please? Any help would be greatly appreciated. Thanks in advance. // TestApp.mxml (application) <?xml vers...

Flex 4's HSlider and TileLayout resizing problem

I have a simple application that consists of a HSlider and a list that contains a item renderer with a border container managed by a tile layout. For some reason when moving the slider to reduce the size of the item renderer it only reduce to a certain size and wont reduce any further. I use the same principle in flex 3 (with mx componen...

Flex Error flex.messaging.io.amf.ASObject cannot be cast to

Hi, I have an action script Object that contains an array collection of other object, both objects are reflects of the Java Objects which are the database tables represented as beans, i am using blazeds spring hibernate... the regular configurations for flex RIA with java backend server language, all other objects work perfectly, but th...

Drag and Drop to a Sprite in Flex

Hi, I need to detect when a user d-b-n-d an object into a sprite. I'm adding the 3 event listeners I need, but only one of them works: ontainer.addEventListener( DragEvent.DRAG_ENTER, dragEnterHandler); container.addEventListener( DragEvent.DRAG_EXIT, dragExitHandler); container.addEventListener( DragEvent.DRAG_DROP, dragDropHandler); ...

mx|Alert : skin the titlebar

Hi, I need to skin the titlebar of an alert. I can't find a way to get it working ... Here's my code : mx|Alert { color: black; fontFamily: frutigerDG; fontSize: 18; titleStyleName : "title"; } .title { color: black; fontFamily:frutigerDG; fontsize:12; ...

Compiling Directory into Flex code using terminal / command line

Hello SO community, Yet another issue along my web development escapades that has me quite stumped. I recently had to decompile a swf file using the Trillix SWF Decompiler. I now need to recompile the directory (flex project) Trillix has given me. I do not have flex builder nor plan on learning or using it ever so I donwloaded the co...

creating a "total" column in datagrid flex

Here is what I want to do: I want to have a datagrid that displays a total value for each row. Lets say for example I have a datagrid. In this datagrid on each row I have five columns. Of the five columns four are for the user to input numbers. The fifth column is the the "total" column which is the result of a formula that calculates t...

Binding XML attribute in Flex

I have this variable in Model class: [Bindable] public var someXml:XML; I've used BindingUtils to get notified when the XML changes: BindingUtils.bindSetter(onChange, Model.getInstance(), "someXml"); private function onChange(value:Object):void { // do something } Function onChange gets triggered when I assign an XML to the va...

Assessment of Adobe AIR as an RIA runtime?

Hi Stack Overflow! I've seen a few questions asked here about Adobe AIR, although an overall viability review is hard to find (both here and on Google). Some questions that could contribute to such a review: Is Adobe AIR the best cross-OS-compatible, browser-less runtime for RIAs? What are drawbacks unique to AIR? What are positives...

How to add the values of a particular column and display it below datagrid using flex3?

I have a datagrid with three columns. In one column I have to add all the values and display the total value. Can anyone suggest me on this? ...

Is it possible to prevent a flex application from being resized at runtime?

From what I can gather, the resize property of a Flex application is set in the XML config file: <!--Whether the user can resize the window. Optional. Default true.--> <!--<resizable></resizable>--> However, if I set this attribute to true, is there a way to turn this off dynamically at runtime? For example, my application has two ...

Actionscript pass by reference

package { import flash.display.Sprite; public class test1 extends Sprite { private var tmp:Object; public function test1() { createObj(tmp); if(tmp == null) { trace("nothing changed"); } } private function createObj(obj:Object):void { obj = new Object(); } } } In the above code the output on the console is : nothin...