CasaBitmap

Kind of class:public class
Package:org.casalib.display
Inherits from:Bitmap
Implements:
Version:12/11/08
Author:Aaron Clinger
Classpath:org.casalib.display.CasaBitmap
File last modified:Wednesday, 31 December 2008, 20:18:28
A base Bitmap that implements IRemovableEventDispatcher and IDestroyable.

Summary


Constructor
  • CasaBitmap (bitmapData:BitmapData = null, pixelSnapping:String = "auto", smoothing:Boolean = false)
    • Creates a new CasaBitmap.
Instance properties
Instance methods
  • removeEventsForType (type:String) : void
    • Removes all events of a specific type.
  • removeEventsForListener (listener:Function) : void
    • Removes all events that report to the specified listener.
  • removeEventListeners : void
    • Removes all event listeners.
  • destroy : void
    • Removes any event listeners and stops all internal processes to help allow for prompt garbage collection.

Constructor

CasaBitmap

public function CasaBitmap (
bitmapData:BitmapData = null, pixelSnapping:String = "auto", smoothing:Boolean = false)

Creates a new CasaBitmap.
Parameters:
bitmapData :
The BitmapData object being referenced.
pixelSnapping:
Whether or not the Bitmap object is snapped to the nearest pixel.
smoothing :
Whether or not the bitmap is smoothed when scaled.

Instance properties

destroyed

public destroyed:Boolean
(read)

Instance methods

destroy

public function destroy (
) : void

Removes any event listeners and stops all internal processes to help allow for prompt garbage collection.

Always call destroy() before deleting last object pointer.
#

Calling destroy() on a CASA display object also removes it from its current parent.
Specified by:

removeEventListeners

public function removeEventListeners (
) : void

Removes all event listeners.
#

removeEventsForListener

public function removeEventsForListener (
listener:Function) : void

Removes all events that report to the specified listener.
#
Parameters:
listener:
The listener function that processes the event.
#

removeEventsForType

public function removeEventsForType (
type:String) : void

Removes all events of a specific type.
#
Parameters:
type:
The type of event.
#