flex3

mx.chart.LineChart showing duplicate labels

I am getting a graph that looks correct except for the fact that all the labels are being rendered on the verticalAxis instead of being grouped (Normal and Abmormal). As an aside, in my real code, the date field is an actual Date object rather than a string, if that makes a difference. var exampleData:ArrayCollection = new ArrayCollecti...

How to stop sounds ?

How to stop this sound ? : MySound.play(0,100,null); ...

How to remove the highlight/selection on AdvancedDataGrid

This page describes how to override the drawHighlightIndicator/drawSelectionIndicators methods for the header of a DataGrid, but an AdvancedDataGrid does not have "headerClass" in mx_internal. It instead has an headerRenderer. How can I remove those blasted highlights over an AdvancedDataGrid in Flex 3? ...

flex ButtonBar problem

Hello, I want to generate a button sequence on ButtonBar with some disabled buttons: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var nav:ArrayCollection=new ArrayCollection(); ... function initApp():void { ...

TileList creationComplete problem in Adobe Flex 3.0

I have made a tile list is Adobe Flex as follows <mx:TileList height="130" width="636" rowCount="1" columnCount="8" columnWidth="150" direction="horizontal" allowMultipleSelection="false" enabled="true" borderStyle="solid" id="profilelist" verticalScrollPolicy="off" dataProvider="{xmlListColl}" itemRenderer="PageImageRend...

how to find URL of the page where the Flash file is embedded

Hello people, I am writing a Flash app in Flex Builder 3. I have a problem. I need the URL of the place where the Flash app has been embedded. mx.core.Application.application.url This gives me the address of the original swf file, but I actually need the URL of the HTML file where this SWF has been embedded. is there a way ??? th...

how to get BrowserManager play nice with SWFObject (Flex 3)

Hello people, I need to get the URL of the HTML where the SWF is embedded. I found out that it should be a piece of cake with BrowserManager, but unfortunately I use SWFObject to embed swf in html! and BrowserManager doesn't like that!! could someone help me with this? cheers ...

Accessing Flex’s objects by id

I have a datagrid which has id="myGrid" in my application, from it I call a component. Now from the component I can call parentDocument.myGrid.selectedIndex = 0; and it works fine. But I want to make the component reusable, and I would like to pass the ID to the component each time, so myGrid will change, how to properly send the ID to ...

flex datagrid data on datachange

Hi all, I am using an extended datagrid which takes its height on the basis of measured height of items. Item renderer for datagrid is a canvas. Which holds one more canvas(header for item renderer) and a text area. The problem I am facing is with the header canvas in item renderer. Header canvas has one label which diaplay a name of us...

How can I create menu like this in Flex 3

How can I create a menu like this in flex 3. ...

Is there any way to add a valueCommit lifecycle to non-mxml components in Actionscript?

The invalidate/commitProperties model used by mxml components is very useful, in my experience, and I'd like to be able to make use of it in domain model objects in my actionscript applications. How can I go about adding lifecycle events like that to my objects? Is there a global object lifecycle manager? ...

Creating Flex 3.5 components with Flash CS5

Is there a way to create components compatible with Flex 3.5 by using Flash CS5? I'm stumped. Whenever I run the "Convert Symbol to Flex Component" command and then try to use the resulting .swc file in a Flex 3.5 app, I get multiple instances of the following error: 1046: Type was not found or was not a compile-time constant: Matr...

Flex 3 get values from HTTPservice method="GET"

Hi. i has a question in flex 3 i can't get vars using HTTPservice method="GET" in the code: <mx:HTTPService id="variables" method="GET" request="var1,var2" resultFormat="text"/> private function init():void{ variables.send(); Alert.show(variables.lastResult.toString()); } when using this url: bin-debug/conectado.html?var1=hel...

how to navigate from one mxml to another mxml in flex3

suppose i have 3 buttons(for example say, productin, marketing, sales ) on my main.mxml.. once i click on one button it should take me to abc.mxml page with production data, once again if i click on second button it should take me to the same abc.mxml but with marketing data. same as for 3rd button also, how can i achieve this ? ...

whats the difference between url and destination using httpservice in flex?

Hi all I wondering whats the difference between url and destination using httpservice in flex. I came across a httpservice example that looked something like this service.resultFormat="e4x" service.method="GET"; service.destination="http://www.blash.com" // I used an actual page service.addEventListen...

set text cursor in editable datagrid with adobe flex 3

Hi, when clicking on a row in this editable datagrid, the whole text is selected. How can I set the cursor to the first character. I've tried itemEditBegin(ning) and expected to be able to use for the ItemEditor a method like setSelection()... Please let me know, if you need anykind of additional information! Thanks, Werner <mx:Advan...

flex datagrid....Action Script

public var dataGrid:DataGrid = new DataGrid(); dataGrid.dataProvider = gridDataFeed.set; dataGrid.id ="dataGrid"; dataGrid.percentWidth = 150; dataGrid.minColumnWidth=120; dataGrid. editable=true; dataGrid.percentHeight = 75; dataGrid.addEventListener( mx.events.DataGridEvent....

flex cheatsheet for lifecyle methods and overrideable UIComponent functions

HI, O.K, not technically a programming question but it's still relevent for this forum I think. I'm wondering if theres any cheat sheets around for flex? Ideally I'm really looking for some comrehensive list of lifecycle events and functions such as creationComplete, preinitilize etc. Also It would be really cool to get a comprehensiv...

flex Number validation how to change the error message

when the value of txt1 is less than 10 i get error message as " the amount entered is too small" how do i cahge this error message and color of it......here is the example i got i main thing is how to customize it http://livedocs.adobe.com/flex/3/langref/mx/validators/NumberValidator.html ...

Why flash on Mac does not display font correctly?

We have standard flex 3 project, and We have left everything as default, no change in style at all, and we deployed our project and noticed that on Mac the character spacing is very bad and overall look and feel is not as clear as that of windows. Here is the difference, left one is Windows and right one is Mac.. the default flex font c...