flex

Flex ComboBox in a Datagrid loses values when I scroll horizontally

Hello, I have a very strange problem in a Flex 3.4 Datagrid. One of the columns is a ComboBox - I have my own custom renderer for the ComboBox. I use it to select my data and then make a "save" to the db. Upon return the comboBox loses its value. Even stranger is that when I scroll the datagrid area to the left (by moving scrollbar righ...

How can i set visible="true" attribute to the Panel from other component ?

My code is : < mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:rest="com.sourcestream.flex.http." xmlns:custom="Components." initialize="loadProduct()" > <mx:Panel id="main" > </mx:Panel> <mx:Panel id="addressId" visible="false" > <custom:AddressForm > </custom:AddressForm> </...

FLEX App, Disabling the Back Button & Backspace/Delete Key from bumping out of the FLEX App

Should disabling the back button, backspace/delete key be done in the FLEX App or in JavaScript? Any suggested solutions? Thanks! ...

Actionscript Freehand Selection Routine

I'm working on a visualisation interface that will display a number of points in a 2D graph, and I'd like a way for the user to be able to select any number of points. Does anyone know a freehand (lasoo) selection method would be implemented? A square or circular selection is relatively simple, but storing the selection and calculating ...

Flex/AS3 easy (I hope) drag and drop question - prevent dragging to other controls

I searched but couldn't find my answer, I'm sure it's easy for anyone with a little experience. I have multiple datagrids on a page, each one I want sortable with drag and drop, but I don't want items drug from one control to the other. How can I prevent a user from dragging an item out of a conrol. I would prefer to have it just stop mo...

How can I add a button to the stage in flex using only as3?

I am using the Flex SDK within visual studio and trying to dynamically add a button to the stage. Here is a quick example of what I am doing. public class Test extends Sprite { public function Test() { init(); } private function init():void { var btnBrowse:Button...

how to do 3D rotation around center in AS3 using matrix3D?

I am trying to rotate a Sprite in three dimensions around its centerpoint, and I am struggling to understand some of the behavior of matrix3D. Ive overridden the set rotationX, rotationY, and rotationZ methods of the Sprite as follows: override public function set rotationX (_rotationX:Number) : void { this.transform.matrix3D.pr...

Understand Flex Application and Frames

Hi folks!! Driven on by curiosity, I’m trying to understand the Life Cycle used by Flex Application. So, I’ve done a little research on this argument; the two key concepts used into the FlashPlayer are: SWF Frame: it’s the logical unit that contains graphical code and as code Flash Player Frame: it’s the time interval used by Flash ...

How can I retrieve the body of an HTTP 403 with Flash?

I'm having a heck of a time trying to figure this one out. I've got a simple YouTube API client put together, written in Flex, that uses a plain ol' URLRequest object to handle Google's "ClientLogin" authentication scheme. Everything works perfectly, except for one case: when Google responds with a 403 and a response body indicating ...

how to get rid of spacing between several DataGrids ? (flex3)

I've got a Grid whose GridItems contain another DataGrids. (= the DataGrid are nested in the Grid). Now I changed the Grid's horizontalGap-StyleProperty to zero. But because there are several DataGrids in one GridItem, there is still about 5-10px spacing in between those DataGrids. How to get rid of these spacings ? Thx ...

How can i set hideEffect attribute to the GridRow using actionscript in flex ?

i want to set fade effect to the GridRow when i remove it using removeChld() function please tell me the solution ... ...

Flex: DisplayObject priority (i.e. overlapping Sprites)

I havn't been able to find the answer to this, and I hope theres an easy and obvious answer i just havn't found yet... Within flex (i.e. using actionscript and mxml), given two Sprites, is there a way to force one to be displayed on top of the other when they overlap? Thanks! ...

tumblr as a backend-solution for a flex/actionscript app?

I love tumblr because it is so easy to use and you can generate xml's of all or parts of the content. Does anybody have experience in using tumblr or similar platforms as a backend for flex/actionscript projects ? Advantages/Disantvantages? Are there some minimalistic examples out there ? Thanks a lot ...

currentStateChange and currentStateChanging do not fire in Flex

I wanted to use the currentStateChange event in my application but whatever code being called in this event was not executed so I thought may be there's something wrong with my code so I tried testing it on one of the examples in adobe live docs. So I took this example here <mx:states> <mx:State name="One"> <mx:SetProperty ...

column chart in this <mx:ColumnSet type="stacked" > Negitive of vertical axis not disappearing

Hi I am using column chart in my project there i used like this in this if negitive axis comes means it is sticking like that.i need to refresh like in previous please help me ...

Dispatching events from a ActionScript class.

package com.services { import com.asfusion.mate.events.ResponseEvent; import com.events.navigation.DesgManagementEvent import flash.events.EventDispatcher; import mx.controls.Alert; public class UserManager extends EventDispatcher { [Bindable] public var addResult:String ...

Force Flex Datagrid to scroll

Is there a way to make the datagrid scroll if it's width exceeds it's parent container (instead of making the parent container scroll?) I have a datagrid with a fixed column, and of course I want the scrollbar to appear for the datagrid and not the enclosing HBox. I already set minWidth of the HBox to 0, tried autoLayout=false, but wit...

Effects library for flash or flex

Hi, I'm looking for a effects library for flex or flash, I used one in a project but I cant remember the name. It doesnt matter if it's not free or open-source. Thanks. ...

How can I encode reserved XML characters in actionscript?

I am writing a business app in Flex that uses web services to communicate with a middle tier. The web services accept and return messages in XML format. In many cases, I need to be able to allow the user to type something like the following into a field in the app, which in turn will be added as an element in an XML payload bound for a...

Can I guarantee all listeners have executed on the next line after dispatching an event?

There's a few questions on stack overflow on this topic but I'm still unclear: I know the flash engine is single threaded so when it receives an event, does it essentially break off, execute any registered event listeners (in no guaranteed order) then return to the current scope? If I have this code: addListener("stuff", function():vo...