Packageaway3d.textures
Classpublic class VideoTexture
InheritanceVideoTexture Inheritance BitmapTexture Inheritance Texture2DBase Inheritance TextureProxyBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
TextureProxyBase
  autoPlay : Boolean
Indicates whether the video will start playing on initialisation.
VideoTexture
  autoUpdate : Boolean
Indicates whether the material will redraw onEnterFrame
VideoTexture
 InheritedbitmapData : BitmapData
BitmapTexture
 Inheritedheight : int
[read-only]
TextureProxyBase
  materialHeight : uint
VideoTexture
  materialWidth : uint
VideoTexture
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  player : IVideoPlayer
[read-only]
VideoTexture
 Inheritedwidth : int
[read-only]
TextureProxyBase
Protected Properties
 PropertyDefined By
 Inherited_dirty : Vector.<Context3D>
TextureProxyBase
 Inherited_height : int
TextureProxyBase
 Inherited_textures : Vector.<TextureBase>
TextureProxyBase
 Inherited_width : int
TextureProxyBase
Public Methods
 MethodDefined By
  
VideoTexture(source:String, materialWidth:uint = 256, materialHeight:uint = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null)
VideoTexture
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
dispose():void
[override]
VideoTexture
 Inherited
getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase
TextureProxyBase
 Inherited
TextureProxyBase
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
  
update():void
Draws the video and updates the bitmap texture If autoUpdate is false and this function is not called the bitmap texture will not update!
VideoTexture
Protected Methods
 MethodDefined By
 Inherited
createTexture(context:Context3D):TextureBase
[override]
Texture2DBase
 Inherited
TextureProxyBase
 Inherited
setSize(width:int, height:int):void
TextureProxyBase
 Inherited
uploadContent(texture:TextureBase):void
[override]
BitmapTexture
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
autoPlayproperty
autoPlay:Boolean

Indicates whether the video will start playing on initialisation. If false, only the first frame is displayed.


Implementation
    public function get autoPlay():Boolean
    public function set autoPlay(value:Boolean):void
autoUpdateproperty 
autoUpdate:Boolean

Indicates whether the material will redraw onEnterFrame


Implementation
    public function get autoUpdate():Boolean
    public function set autoUpdate(value:Boolean):void
materialHeightproperty 
materialHeight:uint


Implementation
    public function get materialHeight():uint
    public function set materialHeight(value:uint):void
materialWidthproperty 
materialWidth:uint


Implementation
    public function get materialWidth():uint
    public function set materialWidth(value:uint):void
playerproperty 
player:IVideoPlayer  [read-only]


Implementation
    public function get player():IVideoPlayer
Constructor Detail
VideoTexture()Constructor
public function VideoTexture(source:String, materialWidth:uint = 256, materialHeight:uint = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null)



Parameters
source:String
 
materialWidth:uint (default = 256)
 
materialHeight:uint (default = 256)
 
loop:Boolean (default = true)
 
autoPlay:Boolean (default = false)
 
player:IVideoPlayer (default = null)
Method Detail
dispose()method
override public function dispose():void

update()method 
public function update():void

Draws the video and updates the bitmap texture If autoUpdate is false and this function is not called the bitmap texture will not update!