Permalink
Browse files

Fixed the node counter.

  • Loading branch information...
1 parent 7a45348 commit 776c38deb5bb400833428f0308438bbd8ba5d58f Travis Tidwell committed Jul 23, 2010
@@ -143,7 +143,11 @@ package com.tmtdigital.dash.display
media.initialize();
loadMedia();
loadPreview();
- media.playNext();
+ var loadedMedia:* = media.playNext();
+ if( loadedMedia ) {
+ loadedMedia.removeEventListener( DashEvent.MEDIA_UPDATE, onMediaUpdate );
+ loadedMedia.addEventListener( DashEvent.MEDIA_UPDATE, onMediaUpdate );
+ }
}
}
@@ -174,8 +178,6 @@ package com.tmtdigital.dash.display
private function loadMedia()
{
if( files.hasMedia ) {
- media.removeEventListener( DashEvent.MEDIA_UPDATE, onMediaUpdate );
- media.addEventListener( DashEvent.MEDIA_UPDATE, onMediaUpdate );
media.addMediaToQueue( files.getFile( "intro" ) );
media.addMediaToQueue( files.getFile( "commercial" ) );
media.addMediaToQueue( files.getFile( "prereel" ) );
Oops, something went wrong.

0 comments on commit 776c38d

Please sign in to comment.