Packagecom.happytoad.libs.riatrax
Classpublic class Accordion
InheritanceAccordion Inheritance mx.containers.Accordion

The Accordion component includes automatic Google Analytic tracking.

Copyright (c) 2009 HappyToad IT Consulting (http://www.happytoad.com)
Created by Rich Tretola (http://blog.everythingflex.com)

MXML Syntaxexpanded Hide MXML Syntax

The <rx:Accordion> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:

   <rx:Accordion
     Properties
     gaCategory="any"
     gaAction="any"
     gaLabel="any"
     gaValue="1"
     gaMode="unique|all|none"
     >
       ...
       child tags
       ...
   </rx:Accordion>
   

View the examples.

See also

com.happytoad.libs.riatrax.Tracker


Public Properties
 PropertyDefined by
  gaAction : String
String to be passed to Google as the Action property.
Accordion
  gaCategory : String
String to be passed to Google as the Category property.
Accordion
  gaLabel : String
String to be passed to Google as the Label property.
Accordion
  gaMode : String
String to set tracking mode for compoment.
Accordion
  gaValue : Number
Number to be passed to Google as the Value property.
Accordion
Public Methods
 MethodDefined by
  
Constructor.
Accordion
Property detail
gaActionproperty
gaAction:String  [read-write]

String to be passed to Google as the Action property.
An optional action for the event (e.g. "Play").

Implementation
    public function get gaAction():String
    public function set gaAction(value:String):void
gaCategoryproperty 
gaCategory:String  [read-write]

String to be passed to Google as the Category property.
An optional category for the event (e.g. "Videos").

Implementation
    public function get gaCategory():String
    public function set gaCategory(value:String):void
gaLabelproperty 
gaLabel:String  [read-write]

String to be passed to Google as the Label property.
An optional descriptor for the event.

Implementation
    public function get gaLabel():String
    public function set gaLabel(value:String):void
gaModeproperty 
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

Implementation
    public function get gaMode():String
    public function set gaMode(value:String):void
gaValueproperty 
gaValue:Number  [read-write]

Number to be passed to Google as the Value property.
An optional value to be aggregated with the event.

Implementation
    public function get gaValue():Number
    public function set gaValue(value:Number):void
Constructor detail
Accordion()constructor
public function Accordion()

Constructor.

Examples
AccordionExample
<?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;
            }
        ]]>
    </mx:Script>
    
    <rx:Accordion width="80%" height="80%" horizontalCenter="0" verticalCenter="0">
        <mx:Panel label="Panel 1" width="100%" height="100%"/>
        <mx:Panel label="Panel 2" width="100%" height="100%"/>
        <mx:Panel label="Panel 3" width="100%" height="100%"/>
    </rx:Accordion>
    
</mx:Application>