Packagestarling.styles
Classpublic class MultiTextureStyle
InheritanceMultiTextureStyle Inheritance MeshStyle Inheritance EventDispatcher Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedcolor : uint
Changes the color of all vertices to the same value.
MeshStyle
 Inheritedtarget : Mesh
[read-only] The target the style is currently assigned to.
MeshStyle
  texture : Texture
[override]
MultiTextureStyle
 InheritedtextureRepeat : Boolean
Indicates if pixels at the edges will be repeated or clamped.
MeshStyle
 InheritedtextureSmoothing : String
The smoothing filter that is used for the texture.
MeshStyle
 Inheritedtype : Class
[read-only] The actual class of this style.
MeshStyle
  vertexFormat : VertexDataFormat
[override] [read-only]
MultiTextureStyle
Protected Properties
 PropertyDefined By
 InheritedindexData : IndexData
[read-only] Returns a reference to the index data of the assigned target (or null if there is no target).
MeshStyle
 InheritedvertexData : VertexData
[read-only] Returns a reference to the vertex data of the assigned target (or null if there is no target).
MeshStyle
Public Methods
 MethodDefined By
  
MultiTextureStyle
 Inherited
addEventListener(type:String, listener:Function):void
[override]
MeshStyle
 Inherited
batchIndexData(targetStyle:MeshStyle, targetIndexID:int = 0, offset:int = 0, indexID:int = 0, numIndices:int = -1):void
Copies the index data of the style's current target to the target of another style.
MeshStyle
  
batchVertexData(target:MeshStyle, targetVertexID:int = 0, matrix:Matrix = null, vertexID:int = 0, numVertices:int = -1):void
[override]
MultiTextureStyle
  
canBatchWith(meshStyle:MeshStyle):Boolean
[override]
MultiTextureStyle
 Inherited
Creates a clone of this instance.
MeshStyle
 Inherited
copyFrom(meshStyle:MeshStyle):void
Copies all properties of the given style to the current instance (or a subset, if the classes don't match).
MeshStyle
  
[override]
MultiTextureStyle
 Inherited
dispatchEvent(event:Event):void
Dispatches an event to all objects that have registered listeners for its type.
EventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event with the given parameters to all objects that have registered listeners for the given type.
EventDispatcher
 Inherited
getTexCoords(vertexID:int, out:Point = null):Point
Returns the texture coordinates of the vertex at the specified index.
MeshStyle
 Inherited
getVertexAlpha(vertexID:int):Number
Returns the alpha value of the vertex at the specified index.
MeshStyle
 Inherited
getVertexColor(vertexID:int):uint
Returns the RGB color of the vertex at the specified index.
MeshStyle
 Inherited
getVertexPosition(vertexID:int, out:Point = null):Point
The position of the vertex at the specified index, in the mesh's local coordinate system.
MeshStyle
 Inherited
hasEventListener(type:String, listener:Function = null):Boolean
If called with one argument, figures out if there are any listeners registered for the given event type.
EventDispatcher
 Inherited
removeEventListener(type:String, listener:Function):void
[override]
MeshStyle
 Inherited
removeEventListeners(type:String = null):void
Removes all event listeners with a certain type, or all of them if type is null.
EventDispatcher
 Inherited
setTexCoords(vertexID:int, u:Number, v:Number):void
Sets the texture coordinates of the vertex at the specified index to the given values.
MeshStyle
 Inherited
setVertexAlpha(vertexID:int, alpha:Number):void
Sets the alpha value of the vertex at the specified index to a certain value.
MeshStyle
 Inherited
setVertexColor(vertexID:int, color:uint):void
Sets the RGB color of the vertex at the specified index to a certain value.
MeshStyle
 Inherited
setVertexPosition(vertexID:int, x:Number, y:Number):void
MeshStyle
  
updateEffect(effect:MeshEffect, state:RenderState):void
[override]
MultiTextureStyle
Protected Methods
 MethodDefined By
  
onTargetAssigned(target:Mesh):void
[override]
MultiTextureStyle
 Inherited
Call this method if the target needs to be redrawn.
MeshStyle
Events
 Event Summary Defined By
 InheritedDispatched every frame on styles assigned to display objects connected to the stage.MeshStyle
Public Constants
 ConstantDefined By
  MAX_NUM_TEXTURES : int = 4
[static]
MultiTextureStyle
  VERTEX_FORMAT : VertexDataFormat
[static]
MultiTextureStyle
Property Detail
textureproperty
texture:Texture[override]


Implementation
    public function get texture():Texture
    public function set texture(value:Texture):void
vertexFormatproperty 
vertexFormat:VertexDataFormat  [read-only] [override]


Implementation
    public function get vertexFormat():VertexDataFormat
Constructor Detail
MultiTextureStyle()Constructor
public function MultiTextureStyle()



Method Detail
batchVertexData()method
override public function batchVertexData(target:MeshStyle, targetVertexID:int = 0, matrix:Matrix = null, vertexID:int = 0, numVertices:int = -1):void

Parameters

target:MeshStyle
 
targetVertexID:int (default = 0)
 
matrix:Matrix (default = null)
 
vertexID:int (default = 0)
 
numVertices:int (default = -1)

canBatchWith()method 
override public function canBatchWith(meshStyle:MeshStyle):Boolean

Parameters

meshStyle:MeshStyle

Returns
Boolean
createEffect()method 
override public function createEffect():MeshEffect

Returns
MeshEffect
onTargetAssigned()method 
override protected function onTargetAssigned(target:Mesh):void

Parameters

target:Mesh

updateEffect()method 
override public function updateEffect(effect:MeshEffect, state:RenderState):void

Parameters

effect:MeshEffect
 
state:RenderState

Constant Detail
MAX_NUM_TEXTURESConstant
public static const MAX_NUM_TEXTURES:int = 4

VERTEX_FORMATConstant 
public static const VERTEX_FORMAT:VertexDataFormat