Changeset 751
- Timestamp:
- 12/14/09 16:04:21 (4 years ago)
- Location:
- trunk/fl5
- Files:
-
- 3 edited
-
player.swf (modified) (previous)
-
src/com/longtailvideo/jwplayer/model/Playlist.as (modified) (4 diffs)
-
src/com/longtailvideo/jwplayer/player/PlayerVersion.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/model/Playlist.as
r749 r751 45 45 46 46 public class Playlist extends GlobalEventDispatcher implements IPlaylist { 47 /** **/47 /** An array holding all of the PlaylistItem objects **/ 48 48 private var list:Array; 49 /** **/49 /** The current playlist index **/ 50 50 private var index:Number; 51 51 /** Keep track of the last playlistItem, so we can send a PLAYLIST_ITEM event at the correct time **/ 52 private var lastItem:PlaylistItem = null; 52 53 53 54 /** … … 105 106 index = 0; 106 107 dispatchEvent(new PlaylistEvent(PlaylistEvent.JWPLAYER_PLAYLIST_LOADED, this)); 107 dispatchEvent(new PlaylistEvent(PlaylistEvent.JWPLAYER_PLAYLIST_ITEM, this));108 currentIndex = 0; 108 109 } else { 109 110 dispatchEvent(new PlayerEvent(PlayerEvent.JWPLAYER_ERROR, "Loaded playlist is empty")); … … 194 195 */ 195 196 public function set currentIndex(idx:Number):void { 196 if ( idx != index && idx < list.length) {197 if (getItemAt(idx) != lastItem) { 197 198 if (idx >= 0) { 198 199 index = idx; 200 lastItem = currentItem; 199 201 dispatchEvent(new PlaylistEvent(PlaylistEvent.JWPLAYER_PLAYLIST_ITEM, this)); 200 202 } else { 203 lastItem = null; 201 204 index = -1; 202 205 } … … 218 221 return list.length; 219 222 } 220 223 221 224 /** 222 225 * @inheritDoc -
trunk/fl5/src/com/longtailvideo/jwplayer/player/PlayerVersion.as
r750 r751 3 3 4 4 public class PlayerVersion { 5 protected static var _version:String = "5.0.75 0";5 protected static var _version:String = "5.0.751"; 6 6 7 7 public static function get version():String {
Note: See TracChangeset
for help on using the changeset viewer.
