Changeset 605


Ignore:
Timestamp:
11/11/09 17:39:47 (4 years ago)
Author:
pablo
Message:

Fixed controlbar fullscreen margin issue for SWF skins

Location:
trunk/fl5
Files:
4 edited

Legend:

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

    r604 r605  
    33         
    44        public class PlayerVersion { 
    5                 protected static var _version:String = "5.0.603 beta"; 
     5                protected static var _version:String = "5.0.605 beta"; 
    66                 
    77                public static function get version():String{ 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/components/ControlbarComponentV4.as

    r599 r605  
    6161                        animations = new Animations(this); 
    6262                        controlbarConfig = _player.config.pluginConfig("controlbar"); 
    63                         controlbarConfig['margin'] = 20; 
     63                        if (!controlbarConfig['margin']) controlbarConfig['margin'] = 0;         
    6464                        // TODO: Remove Link button 
    6565                        BUTTONS = {playButton: ViewEvent.JWPLAYER_VIEW_PLAY, 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/skins/SWFSkin.as

    r594 r605  
    3434                        if (_skin.getChildByName('controlbar')) { 
    3535                                props['controlbar.size'] = _skin.getChildByName('controlbar').height; 
     36                                try { 
     37                                        props['controlbar.margin'] = ((_skin.getChildByName('display') as DisplayObjectContainer).getChildByName('back').width - _skin.getChildByName('controlbar').width) / 2; 
     38                                } catch (e:Error) { 
     39                                        props['controlbar.margin'] = 0; 
     40                                } 
    3641                        } 
    3742                } 
Note: See TracChangeset for help on using the changeset viewer.