Changeset 1571
- Timestamp:
- 01/25/11 11:20:05 (2 years ago)
- Location:
- plugins/captions/v5
- Files:
-
- 2 edited
-
captions.swf (modified) (previous)
-
src/com/longtailvideo/plugins/captions/Captions.as (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/captions/v5/src/com/longtailvideo/plugins/captions/Captions.as
r1408 r1571 55 55 /** Reference to the dock icon. **/ 56 56 private var _icon:MovieClip; 57 /** Reference to the controlbar button icon **/ 58 private var _buttonIcon:DisplayObject; 57 59 /** XML connect and parse object. **/ 58 60 private var _loader:URLLoader; … … 139 141 _icon = _player.controls.dock.addButton(icn,'is on',clickHandler); 140 142 } else { 141 var btn:DisplayObject= _player.skin.getSkinElement("captions", "controlbarButton");142 if ( btn == null) { btn = new ControlbarButton; }143 _button = _player.controls.controlbar.addButton( btn,'captions',clickHandler);143 _buttonIcon = _player.skin.getSkinElement("captions", "controlbarButton"); 144 if (_buttonIcon == null) { _buttonIcon = new ControlbarButton(); } 145 _button = _player.controls.controlbar.addButton(_buttonIcon,'captions',clickHandler); 144 146 } 145 147 drawClip(); … … 256 258 _icon.field.text = "is on"; 257 259 } else { 258 _button .alpha = 1;260 _buttonIcon.alpha = 1; 259 261 } 260 262 } else { … … 262 264 _icon.field.text = "is off"; 263 265 } else { 264 _button .alpha = 0.3;266 _buttonIcon.alpha = 0.3; 265 267 } 266 268 }
Note: See TracChangeset
for help on using the changeset viewer.
