Ignore:
Timestamp:
11/16/09 20:24:04 (4 years ago)
Author:
pablo
Message:
  • Player doesn't allow adding / removing children
  • Player handles PLAYER_READY before default
  • V4 plugins can retrieve the plugin configs for v5 plugins
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/player/Player.as

    r618 r634  
    1313        import com.longtailvideo.jwplayer.view.interfaces.ISkin; 
    1414         
     15        import flash.display.DisplayObject; 
    1516        import flash.display.Sprite; 
    1617        import flash.events.Event; 
     
    5556                        view = new View(this, model); 
    5657                        controller = new Controller(this, model, view); 
    57                         controller.addEventListener(PlayerEvent.JWPLAYER_READY, playerReady); 
     58                        controller.addEventListener(PlayerEvent.JWPLAYER_READY, playerReady, false, -1); 
    5859                        controller.setupPlayer(); 
    5960                } 
     
    296297                        return view.getPlugin(id); 
    297298                }  
     299                 
     300                /** The player should not accept any calls referencing its display stack **/ 
     301                public override function addChild(child:DisplayObject):DisplayObject { 
     302                        return null; 
     303                } 
     304 
     305                /** The player should not accept any calls referencing its display stack **/ 
     306                public override function addChildAt(child:DisplayObject, index:int):DisplayObject { 
     307                        return null; 
     308                } 
     309 
     310                /** The player should not accept any calls referencing its display stack **/ 
     311                public override function removeChild(child:DisplayObject):DisplayObject { 
     312                        return null; 
     313                } 
     314 
     315                /** The player should not accept any calls referencing its display stack **/ 
     316                public override function removeChildAt(index:int):DisplayObject { 
     317                        return null; 
     318                } 
     319                 
    298320        } 
    299321} 
Note: See TracChangeset for help on using the changeset viewer.