Changeset 1022


Ignore:
Timestamp:
05/10/10 14:54:06 (3 years ago)
Author:
pablo
Message:
  • Playlist over state / transparency bug (915)
  • Only colorize playlist using v4 colors (frontcolor, activecolor, etc)
  • 'display.backgroundcolor' setting was not being respected.
Location:
trunk/fl5
Files:
5 edited

Legend:

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

    r1014 r1022  
    33         
    44        public class PlayerVersion { 
    5                 protected static var _version:String = "5.2.1014"; 
     5                protected static var _version:String = "5.2.1022"; 
    66                 
    77                public static function get version():String { 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/View.as

    r981 r1022  
    77        import com.longtailvideo.jwplayer.events.PlaylistEvent; 
    88        import com.longtailvideo.jwplayer.events.ViewEvent; 
     9        import com.longtailvideo.jwplayer.model.Color; 
    910        import com.longtailvideo.jwplayer.model.Model; 
    1011        import com.longtailvideo.jwplayer.player.IPlayer; 
     
    207208                        background.name = "background"; 
    208209                        _backgroundLayer.addChild(background); 
    209                         background.graphics.beginFill(_player.config.screencolor ? _player.config.screencolor.color : 0x000000, 1); 
     210                         
     211                        var screenColor:Color; 
     212                        if (_model.config.pluginConfig('display').hasOwnProperty('backgroundcolor')) { 
     213                                screenColor = new Color(String(_model.config.pluginConfig('display')['backgroundcolor'])); 
     214                        } else if (_model.config.screencolor) { 
     215                                screenColor = _model.config.screencolor; 
     216                        } 
     217                         
     218                        background.graphics.beginFill(screenColor ? screenColor.color : 0x000000, 1); 
    210219                        background.graphics.drawRect(0, 0, 1, 1); 
    211220                        background.graphics.endFill(); 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/components/DisplayComponent.as

    r1013 r1022  
    7575                        background.graphics.drawRect(0, 0, 1, 1); 
    7676                        background.graphics.endFill(); 
    77                         if (player.config.screencolor) { 
    78                                 var colorTransform:ColorTransform = new ColorTransform(); 
    79                                 colorTransform.color = player.config.screencolor.color; 
    80                                 background.transform.colorTransform = colorTransform; 
    81                         } 
     77                         
    8278                        _icon = new MovieClip(); 
    8379                        addChildAt(icon, 1); 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as

    r1013 r1022  
    213213                        var backActive:Sprite = getSkinElement("itemActive") as Sprite; 
    214214                        if (!backActive) { 
    215                                 backActive = new Sprite(); 
     215                                backActive = getSkinElement("item") as Sprite; 
     216                                if (!backActive) { 
     217                                        backActive = new Sprite(); 
     218                                        backActive.graphics.beginFill(0, 1); 
     219                                        backActive.graphics.drawRect(0, 0, 100, 100); 
     220                                        backActive.graphics.endFill(); 
     221                                } 
    216222                        } 
    217223                        backActive.name = "backActive"; 
     224                        backActive.visible = false; 
    218225                        addElement(backActive, btn, 0, 0); 
    219226 
     
    226233                        } 
    227234                        backOver.name = "backOver"; 
     235                        backOver.visible = false; 
    228236                        addElement(backOver, btn, 0, 0); 
    229237                         
     
    338346                                } 
    339347                        } else { 
    340                                 getButton(idx).setChildIndex(getButton(idx).getChildByName("backActive"), 0); 
    341                                 getButton(idx).setChildIndex(getButton(idx).getChildByName("back"), 1); 
    342                                 getButton(idx).setChildIndex(getButton(idx).getChildByName("backOver"), 2); 
     348                                getButton(idx).getChildByName("backActive").visible = false; 
     349                                getButton(idx).getChildByName("back").visible = false; 
     350                                getButton(idx).getChildByName("backOver").visible = true; 
    343351                        } 
    344352                } 
     
    353361                                        var field:TextField = (getButton(idx).getChildByName(itm) as TextField) 
    354362                                        if (field) { 
    355                                                 if (idx == active && ((activeColor && fontColor) || light)) { 
     363                                                if (idx == active && (activeColor || (light && swfSkinned))) { 
    356364                                                        field.textColor = activeColor ? activeColor.color : (fontColor ? fontColor.color : light.color); 
    357365                                                } else { 
     
    364372                                        } 
    365373                                         
    366                                         if (front && back) { 
    367                                                 if (swfSkinned) { 
     374                                        if (swfSkinned) { 
     375                                                if (front && back) { 
    368376                                                        button.getChildByName("back").transform.colorTransform = back; 
    369                                                 } else { 
    370                                                         button.setChildIndex(getButton(idx).getChildByName("backActive"), (idx == active ? 2 : 0)); 
    371                                                         button.setChildIndex(getButton(idx).getChildByName("back"), 1); 
    372                                                         button.setChildIndex(getButton(idx).getChildByName("backOver"), 0); 
    373                                                 } 
     377                                                }  
     378                                        } else { 
     379                                                getButton(idx).getChildByName("backActive").visible = (idx == active); 
     380                                                getButton(idx).getChildByName("back").visible = (idx != active); 
     381                                                getButton(idx).getChildByName("backOver").visible = false; 
    374382                                        } 
    375383                                } 
     
    718726                                scrollInterval = setInterval(scrollEase, 50, idx * buttonheight / proportion, -idx * buttonheight + listmask.y); 
    719727                        } 
    720                         if (light || activeColor) { 
     728                        if ((light && swfSkinned) || activeColor) { 
    721729                                for each (var itm:String in colorizableFields) { 
    722730                                        if (getButton(idx).getChildByName(itm)) { 
    723731                                                try { 
    724                                                         (getButton(idx).getChildByName(itm) as TextField).textColor = activeColor ? activeColor.color : light.color; 
     732                                                        (getButton(idx).getChildByName(itm) as TextField).textColor = swfSkinned ? light.color : activeColor.color; 
    725733                                                } catch (err:Error) { 
    726734                                                } 
     
    745753                                        } 
    746754                                } else { 
    747                                         getButton(active).setChildIndex(getButton(active).getChildByName("back"), 2); 
    748                                         getButton(active).setChildIndex(getButton(active).getChildByName("backOver"), 1); 
    749                                         getButton(active).setChildIndex(getButton(active).getChildByName("backActive"), 0); 
     755                                        getButton(active).getChildByName("back").visible = true; 
     756                                        getButton(active).getChildByName("backOver").visible = false; 
     757                                        getButton(active).getChildByName("backActive").visible = false; 
    750758                                } 
    751759                        } 
    752760                        active = idx; 
    753761 
    754                         if (swfSkinned) { 
    755                                  
    756                         } else { 
    757                                 getButton(active).setChildIndex(getButton(active).getChildByName("backActive"), 2); 
    758                                 getButton(active).setChildIndex(getButton(active).getChildByName("back"), 1); 
    759                                 getButton(active).setChildIndex(getButton(active).getChildByName("backOver"), 0); 
     762                        if (!swfSkinned) { 
     763                                getButton(active).getChildByName("backActive").visible = true; 
     764                                getButton(active).getChildByName("back").visible = false; 
     765                                getButton(active).getChildByName("backOver").visible = false; 
    760766                        } 
    761767                         
Note: See TracChangeset for help on using the changeset viewer.