Package | away3d.textures |
Class | public class VideoTexture |
Inheritance | VideoTexture BitmapTexture Texture2DBase TextureProxyBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : 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 | ||
bitmapData : BitmapData | BitmapTexture | ||
height : int [read-only] | TextureProxyBase | ||
materialHeight : uint | VideoTexture | ||
materialWidth : uint | VideoTexture | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
player : IVideoPlayer [read-only] | VideoTexture | ||
width : int [read-only] | TextureProxyBase |
Method | Defined By | ||
---|---|---|---|
VideoTexture(source:String, materialWidth:uint = 256, materialHeight:uint = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null) | VideoTexture | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void [override] | VideoTexture | ||
getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase | TextureProxyBase | ||
invalidateContent():void | TextureProxyBase | ||
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 |
autoPlay | property |
autoPlay:Boolean
Indicates whether the video will start playing on initialisation. If false, only the first frame is displayed.
public function get autoPlay():Boolean
public function set autoPlay(value:Boolean):void
autoUpdate | property |
autoUpdate:Boolean
Indicates whether the material will redraw onEnterFrame
public function get autoUpdate():Boolean
public function set autoUpdate(value:Boolean):void
materialHeight | property |
materialHeight:uint
public function get materialHeight():uint
public function set materialHeight(value:uint):void
materialWidth | property |
materialWidth:uint
public function get materialWidth():uint
public function set materialWidth(value:uint):void
player | property |
VideoTexture | () | Constructor |
public function VideoTexture(source:String, materialWidth:uint = 256, materialHeight:uint = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null)
source:String | |
materialWidth:uint (default = 256 )
| |
materialHeight:uint (default = 256 )
| |
loop:Boolean (default = true )
| |
autoPlay:Boolean (default = false )
| |
player:IVideoPlayer (default = null )
|
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!