Packageorg.flintparticles.common.initializers
Classpublic class SharedImage
InheritanceSharedImage Inheritance InitializerBase Inheritance Object

The SharedImage Initializer sets the DisplayObject to use to draw the particle. It is used with the BitmapRenderer. When using the DisplayObjectRenderer the ImageClass Initializer must be used. With the BitmapRenderer, the DisplayObject is copied into the bitmap using the particle's property to place the image correctly. So many particles can share the same DisplayObject because it is only indirectly used to display the particle.

Default MXML Propertyimage



Public Properties
 PropertyDefined By
  image : DisplayObject
The DisplayObject to use for each particle created by the emitter.
SharedImage
 Inheritedpriority : int
Returns a default priority of 0 for this action.
InitializerBase
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
InitializerBase
Public Methods
 MethodDefined By
  
SharedImage(image:DisplayObject = null)
The constructor creates a SharedImage initializer for use by an emitter.
SharedImage
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
SharedImage
 Inherited
This method does nothing.
InitializerBase
Property Detail
imageproperty
image:DisplayObject

The DisplayObject to use for each particle created by the emitter.


Implementation
    public function get image():DisplayObject
    public function set image(value:DisplayObject):void
Constructor Detail
SharedImage()Constructor
public function SharedImage(image:DisplayObject = null)

The constructor creates a SharedImage initializer for use by an emitter. To add a SharedImage to all particles created by an emitter, use the emitter's addInitializer method.

Parameters
image:DisplayObject (default = null) — The DisplayObject to use for each particle created by the emitter.

See also

Method Detail
initialize()method
override public function initialize(emitter:Emitter, particle:Particle):void

This method does nothing. All derived classes override this method to initialize each particle created by the emitter.

Parameters

emitter:Emitter
 
particle:Particle