adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
Add an event listener
Dispatch an event
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
The Sampler2D export class represents display objects that represent bitmap images. These can be images that you load with the
flash.Assets
orflash.display.Loader
classes, or they can be images that you create with theSampler2D()
constructor.The
Sampler2D()
constructor allows you to create a Sampler2D object that contains a reference to a Image2D object. After you create a Sampler2D object, use theaddChild()
oraddChildAt()
method of the parent DisplayObjectContainer instance to place the bitmap on the display list.A Sampler2D object can share its Image2D reference among several Sampler2D objects, independent of translation or rotation properties. Because you can create multiple Sampler2D objects that reference the same Image2D object, multiple texture objects can use the same complex Image2D object without incurring the memory overhead of a Image2D object for each texture object instance.