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 [override]
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
A Rectangle object that defines the area of the source to draw. | MovieMaterial | ||
color : uint [override]
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 [override] [read-only]
Returns the height of the bitmapData being used as the material texture. | MovieMaterial | ||
id : int [read-only]
Unique identifier
| Material | ||
interactive : Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
| MovieMaterial | ||
lockH : Number
Number to lock the height of the draw region other than the source movieclip source. | MovieMaterial | ||
lockW : Number
Number to lock the height of the draw region other than the source movieclip source. | 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 : Vector3D
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 [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | ||
volume : Number [write-only]
The sound volume
| VideoMaterial | ||
width : Number [override] [read-only]
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 | ||
[override]
Duplicates the material properties to another material object. | ColorMaterial | ||
close():void
Closes the NetStream object
| VideoMaterial | ||
getPixel32(u:Number, v:Number):uint [override]
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
The FLV url used for rendering the material
public function get file():String
public function set file(value:String):void
loop | property |
loop:Boolean
Defines if the FLV will loop
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
The NetStream object used by the class
public function get netStream():NetStream
public function set netStream(value:NetStream):void
pan | property |
pan:Number
[write-only] The sound pan
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
public function get time():Number
video | property |
video:Video
The Video Object
public function get video():Video
public function set video(value:Video):void
volume | property |
volume:Number
[write-only] The sound volume
public function set volume(value:Number):void
VideoMaterial | () | Constructor |
public function VideoMaterial(init:Object = null)
Creates a new VideoMaterial
object.
Pass file:"somevideo.flv" in the initobject or set the file to start playing a video.
Be aware that FLV files must be located in the same domain as the SWF or you will get security errors.
NOTE: rtmp is not yet supported
init:Object (default = null ) — The url to the FLV file.
|
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.)
Parameters
val:Number — Number: the playheadtime
|