Changeset 571

Show
Ignore:
Timestamp:
11/04/09 14:32:53 (2 weeks ago)
Author:
pablo
Message:

Instantiate Logger with initial PlayerConfig()

Location:
trunk/fl5
Files:
3 modified

Legend:

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

    r570 r571  
    33         
    44        public class PlayerVersion { 
    5                 protected static var _version:String = "5.0.570 beta"; 
     5                protected static var _version:String = "5.0.571 beta"; 
    66                protected static var _commercial:Boolean = Boolean(CONFIG::commercial); 
    77                 
  • trunk/fl5/src/com/longtailvideo/jwplayer/utils/Logger.as

    r570 r571  
    3030                public static const TRACE:String = "trace"; 
    3131                /** Reference to the player config **/ 
    32                 private static var _config:PlayerConfig = new PlayerConfig(); 
     32                private static var _config:PlayerConfig; 
    3333                 
    3434                /** 
     
    7575                /** Send the messages to the output system. **/ 
    7676                private static function send(text:String):void { 
    77                         switch (_config.debug) { 
     77                        var debug:String = _config ? _config.debug : TRACE; 
     78                         
     79                        switch (debug) { 
    7880                                case ARTHROPOD: 
    7981                                        CONNECTION.send(CONNECTION_NAME, 'debug', 'CDC309AF', text,     0xCCCCCC);