# MXML to Actionscript

**URL:** <https://forum.kirupa.com/t/mxml-to-actionscript/321271>\
**Category:** flash\
**Created:** [April 14, 2011, 6:26pm UTC](https://forum.kirupa.com/t/mxml-to-actionscript/321271 "2011-04-14T18:26:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asathya](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@asathya](https://forum.kirupa.com/u/asathya)\
**Post date:** [April 14, 2011, 6:26pm UTC](https://forum.kirupa.com/t/mxml-to-actionscript/321271/1 "2011-04-14T18:26:34Z")

</div>

Here is the MXML code for the stacked chart, i am trying to do the same in Actionscript.

```auto
 <mx:series>
           <mx:ColumnSeries yField="dataA">
                <mx:fill>
                    <!--Set alpha to 0 to hide invisible column.-->
                    <mx:SolidColor color="0xFFFFFF" alpha="0"/>
                </mx:fill>
           </mx:ColumnSeries>
           <mx:ColumnSeries yField="dataB"/>
        </mx:series>

```

This is what i wrote in Actionscript and i am sure i am missing something, as this does not work. appreciate your help! 😕

```auto
//Column Chart info
			this.dataProvider = getDataProvider();
			this.type = "stacked";
			this.percentWidth = 60;
			this.percentHeight = 60;
			this.x = 100;
			this.y = 85;
			this.showDataTips = true;
                 
                //Category Axis
			catAxis = new CategoryAxis();
			catAxis.categoryField = "title";
			this.horizontalAxis = catAxis;	

                // Column Series
   			col= new ColumnSeries();
   			col.yField = "dataA";
   			col.yField = "dataB";    		
			this.series = [col];

```
