| Package | com.happytoad.libs.riatrax | ![]() |
| Class | public class MenuBar | |
| Inheritance | MenuBar mx.controls.MenuBar |
Hide MXML Syntax
The <rx:MenuBar> tag inherits all of the
tag attributes of its superclass, and adds the following tag attributes:
<rx:MenuBar
Properties
gaCategory="any"
gaAction="any"
gaLabel="any"
gaValue="1"
gaMode="unique|all|none"
>
See also
| Property | Defined by | ||
|---|---|---|---|
| gaAction : String
String to be passed to Google as the Action property.
| MenuBar | ||
| gaCategory : String
String to be passed to Google as the Category property.
| MenuBar | ||
| gaLabel : String
String to be passed to Google as the Label property.
| MenuBar | ||
| gaMode : String
String to set tracking mode for compoment.
| MenuBar | ||
| gaValue : Number
Number to be passed to Google as the Value property.
| MenuBar | ||
| Method | Defined by | ||
|---|---|---|---|
|
MenuBar()
Constructor.
| MenuBar | ||
| gaAction | property |
gaAction:String [read-write]
String to be passed to Google as the Action property.
An optional action for the event (e.g. "Play").
public function get gaAction():String
public function set gaAction(value:String):void
| gaCategory | property |
gaCategory:String [read-write]
String to be passed to Google as the Category property.
An optional category for the event (e.g. "Videos").
public function get gaCategory():String
public function set gaCategory(value:String):void
| gaLabel | property |
gaLabel:String [read-write]
String to be passed to Google as the Label property.
An optional descriptor for the event.
public function get gaLabel():String
public function set gaLabel(value:String):void
| gaMode | property |
gaMode:String [read-write]
String to set tracking mode for compoment. ( unique | all | none )
This property defaults to unique. Set to all to track all events or none to disable tracking
public function get gaMode():String
public function set gaMode(value:String):void
| gaValue | property |
gaValue:Number [read-write]
Number to be passed to Google as the Value property.
An optional value to be aggregated with the event.
public function get gaValue():Number
public function set gaValue(value:Number):void
| MenuBar | () | constructor |
public function MenuBar()Constructor.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:rx="com.happytoad.libs.riatrax.*"
creationComplete="init()">
<mx:Script>
<![CDATA[
import com.happytoad.libs.riatrax.Tracker;
private var tracker:Tracker = Tracker.getInstance();
private function init():void{
tracker.account="UA-xxxxxx-y";
tracker.display=this;
tracker.visualDebug = true;
}
[Bindable]
private var dataset:Array = [{"data":"onedata","label":"onelabel"},
{"data":"twodata","label":"twolabel"}];
]]>
</mx:Script>
<rx:MenuBar horizontalCenter="0" verticalCenter="0" dataProvider="{dataset}"/>
</mx:Application>