[flexcoders] Sort column in advanceddatagrid on application start

2009-09-04 Thread arno.manders
After creationComplete I want to say that one column from the advancedDataGrid 
is sort.

I can't do this on the dataprovider because I want the sort on a summaryRow. I 
hope this is enough information  



[flexcoders] get data from other LineSeries dataprovider in the dataTipRenderer

2009-06-24 Thread arno.manders
I have a linechart with this series:

mx:series
 mx:LineSeries id=incommingLineChartSeries1
dataProvider={this.incommingData.item} yField=number /
 mx:LineSeries id=incommingLineChartSeries2
dataProvider={this.incommingPreviousData.item} yField=number /
/mx:series

I have a dataTipRenderer that shows a nice dataTip. In that dataTip I
want to compare the 2 items from the lines. I want to show something
like this:

Incomming this month:
$20,000
Incomming previous month:
$10,000
+100%

This calculation should be in the dataTip so is there a way to know the
data from another LineSeries in the datatip?




[flexcoders] Re: How to enable ardware acceleation for AIR Player ?

2009-06-24 Thread arno.manders
No it doesn't support hardware acceleration. I don't know why you need it for 
but Unity3D is a good alternative if you are planning to do something with 3D.

--- In flexcoders@yahoogroups.com, helihobby heliho...@... wrote:

 Hello,
 I am trying to find out how can I enable ardware acceleation for AIR Player. 
 It does not have the HTML wrapper so the wmode won't help.
 
 And, is there a list of compatible hardware ?
 
 Any information or links will help and I do appreciate it.
 
 Googling does reveal much which leads me to believe AIR Player may not 
 support it, which would suck.
 
 Thanks,
 
 Sean.





[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread arno.manders
Try 
addressRB.setActualSize(addressRB.measuredWidth,addressRB.measuredHeight)
airportRB.setActualSize(addressRB.measuredWidth, addressRB.measuredHeight);

in the updateDisplayList() function

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 
 
   Using an example from the web I am trying to 
 create a custom Panel component that had radio buttons in the panel header 
 for a specific piece of a web site. The panel works and I am getting 2 radio 
 buttons but no labels for either button and the radioGroup's 
   changeStartType() is not being called
   . What am I doing wrong? Here is the AS:
 
 package com.wallykolcz.views.components
 {
 
 import edu.umich.body.Maps;
 import flash.events.Event;
 import mx.containers.Panel;
 import mx.controls.Button;
 import mx.controls.RadioButton;
 import mx.controls.RadioButtonGroup;
 
 public class RadioButtonPanel extends Panel
 {
 
 //Create Radio Button Group and Buttons
 private var startLocation:RadioButtonGroup = new RadioButtonGroup();
 private var addressRB:RadioButton = new RadioButton();
 private var airportRB:RadioButton = new RadioButton();
 private var maps:Maps;
 
 //constructor
 public function RadioButtonPanel()
 {
 super();
 }
 
 public function changeStartType():void {
 if (startLocation.selectedValue == address){
 maps.start_txt.text = Enter Starting Address;
 maps.frmAirport.includeInLayout = false;
 maps.frmAirport.visible = false;
 maps.frmAddress.includeInLayout = true;
 maps.frmAddress.visible = true;
 maps.submit_btn.visible = true;
 }else{
 maps.start_txt.text = Choose Your Airport;
 maps.frmAddress.includeInLayout = false;
 maps.frmAddress.visible = false;
 maps.frmAirport.includeInLayout = true;
 maps.frmAirport.visible = true;
 maps.submit_btn.visible = true;
 }
 }
 
 protected override function createChildren():void{
 super.createChildren();
 //instantiate new radiobuttons and assign properties
 addressRB.value=address;
 addressRB.label=My Address;
 addressRB.groupName = startLocation; 
 
 airportRB.value=airport;
 airportRB.label=Airport;
 airportRB.groupName=startLocation
 
 //add event listener for change event and call method
 startLocation.addEventListener(Event.CHANGE, changeStartType);
 
 //add the buttons to rawChildren
 rawChildren.addChild(addressRB);
 rawChildren.addChild(airportRB);
 }
 
 protected override function updateDisplayList(unscaledWidth:Number, 
 unscaledHeight:Number):void{
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 //gap between label and edges of button
 var margin:int = 4;
 
 //position the buttons in the panel
 addressRB.move(145, 15);
 airportRB.move(255,15)
 }