Changeset 1022
- Timestamp:
- 05/10/10 14:54:06 (3 years ago)
- Location:
- trunk/fl5
- Files:
-
- 5 edited
-
player.swf (modified) (previous)
-
src/com/longtailvideo/jwplayer/player/PlayerVersion.as (modified) (1 diff)
-
src/com/longtailvideo/jwplayer/view/View.as (modified) (2 diffs)
-
src/com/longtailvideo/jwplayer/view/components/DisplayComponent.as (modified) (1 diff)
-
src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/player/PlayerVersion.as
r1014 r1022 3 3 4 4 public class PlayerVersion { 5 protected static var _version:String = "5.2.10 14";5 protected static var _version:String = "5.2.1022"; 6 6 7 7 public static function get version():String { -
trunk/fl5/src/com/longtailvideo/jwplayer/view/View.as
r981 r1022 7 7 import com.longtailvideo.jwplayer.events.PlaylistEvent; 8 8 import com.longtailvideo.jwplayer.events.ViewEvent; 9 import com.longtailvideo.jwplayer.model.Color; 9 10 import com.longtailvideo.jwplayer.model.Model; 10 11 import com.longtailvideo.jwplayer.player.IPlayer; … … 207 208 background.name = "background"; 208 209 _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); 210 219 background.graphics.drawRect(0, 0, 1, 1); 211 220 background.graphics.endFill(); -
trunk/fl5/src/com/longtailvideo/jwplayer/view/components/DisplayComponent.as
r1013 r1022 75 75 background.graphics.drawRect(0, 0, 1, 1); 76 76 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 82 78 _icon = new MovieClip(); 83 79 addChildAt(icon, 1); -
trunk/fl5/src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as
r1013 r1022 213 213 var backActive:Sprite = getSkinElement("itemActive") as Sprite; 214 214 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 } 216 222 } 217 223 backActive.name = "backActive"; 224 backActive.visible = false; 218 225 addElement(backActive, btn, 0, 0); 219 226 … … 226 233 } 227 234 backOver.name = "backOver"; 235 backOver.visible = false; 228 236 addElement(backOver, btn, 0, 0); 229 237 … … 338 346 } 339 347 } 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; 343 351 } 344 352 } … … 353 361 var field:TextField = (getButton(idx).getChildByName(itm) as TextField) 354 362 if (field) { 355 if (idx == active && ( (activeColor && fontColor) || light)) {363 if (idx == active && (activeColor || (light && swfSkinned))) { 356 364 field.textColor = activeColor ? activeColor.color : (fontColor ? fontColor.color : light.color); 357 365 } else { … … 364 372 } 365 373 366 if ( front && back) {367 if ( swfSkinned) {374 if (swfSkinned) { 375 if (front && back) { 368 376 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; 374 382 } 375 383 } … … 718 726 scrollInterval = setInterval(scrollEase, 50, idx * buttonheight / proportion, -idx * buttonheight + listmask.y); 719 727 } 720 if ( light|| activeColor) {728 if ((light && swfSkinned) || activeColor) { 721 729 for each (var itm:String in colorizableFields) { 722 730 if (getButton(idx).getChildByName(itm)) { 723 731 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; 725 733 } catch (err:Error) { 726 734 } … … 745 753 } 746 754 } 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; 750 758 } 751 759 } 752 760 active = idx; 753 761 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; 760 766 } 761 767
Note: See TracChangeset
for help on using the changeset viewer.
