Packagecv.formats
Classpublic dynamic class XSPF
InheritanceXSPF Inheritance PlayList

The XSPF class parses XSPF formatted playlist files and adds the data to itself.



Public Properties
 PropertyDefined by
 Inheritedindex : uint
Gets or sets the current selected item in the playlist.
PlayList
 InheritednextIndex : int
Gets the index of the next item in the playlist.
PlayList
 InheritedpreviousIndex : int
Gets the index of the previous item in the playlist.
PlayList
 Inheritedrepeat : Boolean
Gets or sets whether an item is repeated after it's finished.
PlayList
 InheritedrepeatAll : Boolean
Gets or sets whether the playlist repeats when it's finished.
PlayList
 Inheritedshuffle : Boolean
Gets or sets whether shuffle is enabled or not.
PlayList
Public Methods
 MethodDefined by
  
XSPF(sourceFile:XML)
XSPF
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
PlayList
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
PlayList
 Inherited
getCurrent():Object
Returns the current item from the playlist
PlayList
 Inherited
getNext():Object
Returns the next item from the playlist.
PlayList
 Inherited
getPrevious():Object
Returns the previous item from the playlist.
PlayList
 Inherited
getRandom():Object
Returns a random item from the playlist.
PlayList
 Inherited
Returns a random index from the playlist.
PlayList
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
PlayList
 Inherited
inPlayList(item:Object):Boolean
Searchs the playlist to determin if an item is listed.
PlayList
 Inherited
remove(item:Object):Boolean
Removes the given item from the playlist.
PlayList
 Inherited
removeAt(idx:uint):Boolean
Removes an item at a given index.
PlayList
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
PlayList
 Inherited
Converts the PlayList to a DataProvider for use with components.
PlayList
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
PlayList
Protected Methods
 MethodDefined by
 Inherited
setMimes():void
Sets the mimetypes allowed by PlayList.
PlayList
 Inherited
toSeconds(str:String):int
Converts a string version of a time format into the seconds equivalent.
PlayList
Events
 EventSummaryDefined by
 Inherited Dispatched when the index has changed or getNext() and getPrevious() were called.PlayList
 Inherited Dispatched when the playlist has reached the end of the playlist.PlayList
 Inherited Dispatched when the playlist has started playing the first item.PlayList
Public Constants
 ConstantDefined by
 InheritedCHANGE : String = "change"
[static] The PlayList.CHANGE constant defines the value of the type property of the event object that is dispatched to indicate that the playlist has changed in some way.
PlayList
 InheritedEND_OF_LIST : String = "endoflist"
[static] The PlayList.END_OF_LIST constant defines the value of the type property of the event object that is dispatched to indicate that the playlist has reached the end of the list.
PlayList
 InheritedSTART_OF_LIST : String = "startoflist"
[static] The PlayList.START_OF_LIST constant defines the value of the type property of the event object that is dispatched to indicate that the playlist has reached the beginning of the list.
PlayList
Constructor detail
XSPF()constructor
public function XSPF(sourceFile:XML)Parameters
sourceFile:XML