Packagecom.devnet.osmf.overlays
Classpublic class PlayScreen
InheritancePlayScreen Inheritance SimpleButton Inheritance flash.display.MovieClip

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10.0.0

The PlayScreen class creates a play button overlay for the media player component.



Public Properties
 PropertyDefined By
  background : Sprite
PlayScreen
  playButton : Sprite
PlayScreen
 Inheritedselected : Boolean
Set to true to trigger the selected (dn) state in a toggle button.
SimpleButton
 Inheritedtoggle : Boolean
Set to true to allow the button to behave as a toggle button.
SimpleButton
 InheriteduseDownState : Boolean
Signals whether or not the down (dn) state should be used for a button set to toggle.
SimpleButton
Public Methods
 MethodDefined By
  
PlayScreen
 Inherited
setSelected(value:Boolean):void
Sets the selected state to true or false.
SimpleButton
  
setSize(w:Number, h:Number = 0):void
Sets the size of the play button overlay.
PlayScreen
Protected Methods
 MethodDefined By
  
onMouseDownHandler(event:MouseEvent):void
[override]
PlayScreen
  
onMouseOutHandler(event:MouseEvent):void
[override]
PlayScreen
  
onMouseOverHandler(event:MouseEvent):void
[override]
PlayScreen
  
onMouseUpHandler(event:MouseEvent):void
[override]
PlayScreen
Events
 Event Summary Defined By
  PlayScreen
  PlayScreen
  PlayScreen
  PlayScreen
  PlayScreen
Public Constants
 ConstantDefined By
 InheritedDOWN : String = dn
[static]
SimpleButton
 InheritedDOWN_OVER : String = dnov
[static]
SimpleButton
 InheritedOVER : String = ov
[static]
SimpleButton
 InheritedUP : String = up
[static]
SimpleButton
Property Detail
backgroundproperty
public var background:Sprite

playButtonproperty 
public var playButton:Sprite

Constructor Detail
PlayScreen()Constructor
public function PlayScreen()



Method Detail
onMouseDownHandler()method
override protected function onMouseDownHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onMouseOutHandler()method 
override protected function onMouseOutHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onMouseOverHandler()method 
override protected function onMouseOverHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onMouseUpHandler()method 
override protected function onMouseUpHandler(event:MouseEvent):void

Parameters

event:MouseEvent

setSize()method 
public function setSize(w:Number, h:Number = 0):void

Sets the size of the play button overlay. This size will commonly be the same as the media display area.

Parameters

w:Number — Number representing the new width.
 
h:Number (default = 0) — Number representing the new height.

Event Detail
click Event
Event Object Type: flash.events.MouseEvent

mouseDown Event  
Event Object Type: flash.events.MouseEvent

mouseOut Event  
Event Object Type: flash.events.MouseEvent

mouseOver Event  
Event Object Type: flash.events.MouseEvent

mouseUp Event  
Event Object Type: flash.events.MouseEvent