#NEWLINE# def addClip( self , clip , index = None ) : #NEWLINE# #INDENT# "\n        @param clip: Clip Object\n        @param index: specifies the position where clip is added in the playlist\n\n        Add's a clip to the playlist. If the clip object contains a position\n        property then the clip is added to an existing clip as an instream clip.\n        The player's playlist is extended with the new clip and the onClipAdd event is fired.\n        All common clip properties and event listeners are preserved.\n        " #NEWLINE# if self . isLoaded ( ) : #NEWLINE# #INDENT# if index : #NEWLINE# #INDENT# self . playlist . insert ( index , clip ) #NEWLINE# self . callFlash ( 'fp_addClip' , [ clip . getProperties ( ) , index ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . playlist . append ( clip ) #NEWLINE# self . callFlash ( 'fp_addClip' , [ clip . getProperties ( ) ] )