Package | away3d.materials |
Class | public class VideoMaterial |
Inheritance | VideoMaterial MovieMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | ||
autoUpdate : Boolean
Indicates whether the texture bitmap is updated on every frame
| MovieMaterial | ||
bitmap : BitmapData
Defines the bitmapData object being used as the material texture.
| BitmapMaterial | ||
blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | ||
clipRect : Rectangle | MovieMaterial | ||
color : uint
Defines a colored tint for the texture bitmap.
| BitmapMaterial | ||
colorTransform : ColorTransform
Defines a colortransform for the texture bitmap.
| BitmapMaterial | ||
debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| ColorMaterial | ||
file : String
The FLV url used for rendering the material
| VideoMaterial | ||
globalProjection : Boolean
Determines whether a projected texture uses offsetX, offsetY and projectionVector values relative to scene cordinates.
| TransformBitmapMaterial | ||
height : Number
Returns the height of the bitmapData being used as the material texture.
| MovieMaterial | ||
id : int
Unique identifier
| Material | ||
interactive : Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
| MovieMaterial | ||
lockH : Number | MovieMaterial | ||
lockW : Number | MovieMaterial | ||
loop : Boolean
Defines if the FLV will loop
| VideoMaterial | ||
movie : Sprite
Defines the movieclip used for rendering the material
| MovieMaterial | ||
nc : NetConnection
Defines the NetConnection we'll use
| VideoMaterial | ||
netStream : NetStream
The NetStream object used by the class
| VideoMaterial | ||
offsetX : Number
Offsets the x coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
offsetY : Number
Offsets the y coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
pan : Number [write-only]
The sound pan
| VideoMaterial | ||
projectionVector : Number3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects.
| TransformBitmapMaterial | ||
repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | ||
rotation : Number
Rotates the texture in uv-space
| TransformBitmapMaterial | ||
scaleX : Number
Scales the x coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
scaleY : Number
Scales the y coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
showNormals : Boolean
Displays the normals per face in pink lines.
| BitmapMaterial | ||
smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | ||
sprite : Sprite
A Sprite we can return to the MovieMaterial
| VideoMaterial | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
throughProjection : Boolean
Determines whether a projected texture is visble on the faces pointing away from the projection.
| TransformBitmapMaterial | ||
time : Number [read-only]
Returns the actual time of the netStream
| VideoMaterial | ||
transform : Matrix
Transforms the texture in uv-space
| TransformBitmapMaterial | ||
transparent : Boolean
Defines the transparent property of the texture bitmap created from the movie
| MovieMaterial | ||
video : Video
The Video Object
| VideoMaterial | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
volume : Number [write-only]
The sound volume
| VideoMaterial | ||
width : Number
Returns the width of the bitmapData being used as the material texture.
| MovieMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
VideoMaterial
(init:Object = null)
Creates a new
VideoMaterial object. | VideoMaterial | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
Duplicates the material properties to another material object.
| ColorMaterial | ||
close():void
Closes the NetStream object
| VideoMaterial | ||
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| TransformBitmapMaterial | ||
pause():void
Pauses the NetStream object
| VideoMaterial | ||
play():void
Plays the NetStream object.
| VideoMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | ||
seek(val:Number):void
Seeks to a given time in the file, specified in seconds, with a precision of three decimal places (milliseconds).
| VideoMaterial | ||
update():void
Updates the texture bitmap with the current frame of the movieclip object
| MovieMaterial |
file | property |
file:String
[read-write]The FLV url used for rendering the material
Implementation public function get file():String
public function set file(value:String):void
loop | property |
loop:Boolean
[read-write]Defines if the FLV will loop
Implementation public function get loop():Boolean
public function set loop(value:Boolean):void
nc | property |
public var nc:NetConnection
Defines the NetConnection we'll use
netStream | property |
netStream:NetStream
[read-write]The NetStream object used by the class
Implementation public function get netStream():NetStream
public function set netStream(value:NetStream):void
pan | property |
pan:Number
[write-only]The sound pan
Implementation public function set pan(value:Number):void
sprite | property |
public var sprite:Sprite
A Sprite we can return to the MovieMaterial
time | property |
time:Number
[read-only]Returns the actual time of the netStream
Implementation public function get time():Number
video | property |
video:Video
[read-write]The Video Object
Implementation public function get video():Video
public function set video(value:Video):void
volume | property |
volume:Number
[write-only]The sound volume
Implementation public function set volume(value:Number):void
VideoMaterial | () | constructor |
public function VideoMaterial(init:Object = null)
Parameters
init:Object (default = null ) — The url to the FLV file.
|
loop:Boolean (default = false) | |
file:String (default = "") |
close | () | method |
public function close():void
Closes the NetStream object
pause | () | method |
public function pause():void
Pauses the NetStream object
play | () | method |
public function play():void
Plays the NetStream object. The material plays the NetStream object by default at init. Use this handler only if you pause the NetStream object;
seek | () | method |
public function seek(val:Number):void
Seeks to a given time in the file, specified in seconds, with a precision of three decimal places (milliseconds). For a progressive download, you can seek only to a keyframe, so a seek takes you to the time of the first keyframe after the specified time. (When streaming, a seek always goes to the precise specified time even if the source FLV file doesn't have a keyframe there.)
Parametersval:Number — Number: the playheadtime
|