| Package | com.gestureworks.cml.factories |
| Class | public class MP3Factory |
| Inheritance | MP3Factory ElementFactory flash.display.Sprite |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number [override] [write-only]
sets the alpha for display objects
| ElementFactory | |
| autoLoad : Boolean
Indicates whether the mp3 file is loaded when the src property is set
| MP3Factory | ||
| autoplay : Boolean
Indicates whether the mp3 file plays upon load
| MP3Factory | ||
![]() | blur : Boolean
Sets the drop shadow effect
| ElementFactory | |
![]() | bottom : Number
sets the bottom value
| ElementFactory | |
![]() | class_ : String
Object's css class;
| ElementFactory | |
![]() | className : String
sets the class name of displayobject
| ElementFactory | |
![]() | cmlIndex : int
sets the cml index
| ElementFactory | |
![]() | debugStyle : *
sets the debug style
| ElementFactory | |
| display : String | MP3Factory | ||
![]() | displayEvents : String
Use for dispatch completes. | ElementFactory | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| ElementFactory | |
| duration : Number [read-only] | MP3Factory | ||
| height : Number [override]
Sets the height
| MP3Factory | ||
![]() | heightPercent : String
sets the height percent of display object
| ElementFactory | |
![]() | horizontalCenter : Number
sets the horizontal center of display object
| ElementFactory | |
![]() | id : String
sets the id of child
| ElementFactory | |
| id3Album : String [read-only]
returns the album id
| MP3Factory | ||
| id3Author : String [read-only]
returns the author id
| MP3Factory | ||
| id3Comment : String [read-only]
returns the comment
| MP3Factory | ||
| id3Copyright : String [read-only]
returns the copyright id
| MP3Factory | ||
| id3Title : String [read-only]
returns the title
| MP3Factory | ||
| id3Year : String [read-only] | MP3Factory | ||
![]() | index : int
sets the index of display object
| ElementFactory | |
![]() | left : Number
sets left value
| ElementFactory | |
| loop : Boolean
Mp3 loop play
| MP3Factory | ||
| pan : Number
Sets the pan
| MP3Factory | ||
| percentLoaded : Number [read-only] | MP3Factory | ||
| position : Number [read-only] | MP3Factory | ||
![]() | propertyStates : Array Deprecated: Please Use state | ElementFactory | |
![]() | right : Number
sets the right value
| ElementFactory | |
![]() | scale : Number
Sets both the x and y scale values
| ElementFactory | |
![]() | scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
| src : String
Sets the mp3 file path
| MP3Factory | ||
![]() | state : Array
property states array
| ElementFactory | |
| time : String [read-only]
update timer
| MP3Factory | ||
| TIME : String = Time [static]
time variable
| MP3Factory | ||
| timer : Timer
defines timer variable
| MP3Factory | ||
![]() | top : Number
sets top value
| ElementFactory | |
| useId3 : String
sets the id of mp3
| MP3Factory | ||
![]() | verticalCenter : Number
sets the vertical center of display object
| ElementFactory | |
| volume : Number
Sets the volume
| MP3Factory | ||
| waveColor : int
sets the wave color
| MP3Factory | ||
| width : Number [override]
Sets the width
| MP3Factory | ||
![]() | widthPercent : String
sets the percent of width of display object
| ElementFactory | |
| Method | Defined By | ||
|---|---|---|---|
Constructor
| MP3Factory | ||
![]() | clone():*
Returns clone of self
| ElementFactory | |
close():void
Closes mp3
| MP3Factory | ||
![]() | displayComplete():void
CML callback
| ElementFactory | |
dispose():void [override]
Disposal method
| MP3Factory | ||
![]() | init():void
Initialization function
| ElementFactory | |
open(file:String):void
Sets the src property and loads the mp3
| MP3Factory | ||
![]() | parseCML(cml:XMLList):XMLList
parses cml file
| ElementFactory | |
pause():void
Pauses mp3
| MP3Factory | ||
play():void
Plays the mp3 from the beginning
| MP3Factory | ||
![]() | postparseCML(cml:XMLList):void
post parses the cml file
| ElementFactory | |
resume():void
Resumes mp3 playback from paused position
| MP3Factory | ||
seek(offset:Number):void
Sets the mp3 playhead position
| MP3Factory | ||
stop():void
Pauses mp3 and returns to the beginning
| MP3Factory | ||
![]() | updateProperties(state:Number = 0):void
this method updates the properties
| ElementFactory | |
| autoLoad | property |
autoLoad:BooleanIndicates whether the mp3 file is loaded when the src property is set
public function get autoLoad():Boolean public function set autoLoad(value:Boolean):void| autoplay | property |
autoplay:BooleanIndicates whether the mp3 file plays upon load
public function get autoplay():Boolean public function set autoplay(value:Boolean):void| display | property |
display:String public function get display():String public function set display(value:String):void| duration | property |
duration:Number [read-only] public function get duration():Number| height | property |
height:Number[override] Sets the height
public function get height():Number public function set height(value:Number):void| id3Album | property |
id3Album:String [read-only] returns the album id
public function get id3Album():String| id3Author | property |
id3Author:String [read-only] returns the author id
public function get id3Author():String| id3Comment | property |
id3Comment:String [read-only] returns the comment
public function get id3Comment():String| id3Copyright | property |
id3Copyright:String [read-only] returns the copyright id
public function get id3Copyright():String| id3Title | property |
id3Title:String [read-only] returns the title
public function get id3Title():String| id3Year | property |
id3Year:String [read-only] public function get id3Year():String| loop | property |
loop:BooleanMp3 loop play
public function get loop():Boolean public function set loop(value:Boolean):void| pan | property |
pan:NumberSets the pan
public function get pan():Number public function set pan(value:Number):void| percentLoaded | property |
percentLoaded:Number [read-only] public function get percentLoaded():Number| position | property |
position:Number [read-only] public function get position():Number| src | property |
src:StringSets the mp3 file path
public function get src():String public function set src(value:String):void| time | property |
time:String [read-only] update timer
public function get time():String| TIME | property |
public static var TIME:String = Timetime variable
| timer | property |
public var timer:Timerdefines timer variable
| useId3 | property |
useId3:Stringsets the id of mp3
public function get useId3():String public function set useId3(value:String):void| volume | property |
volume:NumberSets the volume
public function get volume():Number public function set volume(value:Number):void| waveColor | property |
waveColor:intsets the wave color
public function get waveColor():int public function set waveColor(value:int):void| width | property |
width:Number[override] Sets the width
public function get width():Number public function set width(value:Number):void| MP3Factory | () | Constructor |
public function MP3Factory()Constructor
| close | () | method |
public function close():voidCloses mp3
| dispose | () | method |
override public function dispose():voidDisposal method
| open | () | method |
public function open(file:String):voidSets the src property and loads the mp3
Parameters
file:String |
| pause | () | method |
public function pause():voidPauses mp3
| play | () | method |
public function play():voidPlays the mp3 from the beginning
| resume | () | method |
public function resume():voidResumes mp3 playback from paused position
| seek | () | method |
public function seek(offset:Number):voidSets the mp3 playhead position
Parameters
offset:Number |
| stop | () | method |
public function stop():voidPauses mp3 and returns to the beginning