Packagecv
Classpublic class OrionContainer
InheritanceOrionContainer Inheritance Orion Inheritance flash.display.Sprite

OrionContainer takes a movieclip and animates the children inside of it as if they were particles. Does not add any new particles to the system. Also any changes to the dimensions or position of the emitter are ignored.



Public Properties
 PropertyDefined by
 InheritedcacheBlendMode : String = "normal"
Gets or sets the blend mode applied to particles when they are created.
Orion
 InheritedcacheFrames : Array
The storage location for frames that are cached.
Orion
 InheritedcachePixelSnapping : String = "auto"
Gets or sets pixel snapping when frame caching is enabled.
Orion
 InheritedcacheSmoothing : Boolean = false
Gets or sets bitmap smoothing when using frame caching.
Orion
 InheritedcacheTarget : MovieClip
Gets the frame cache movieclip.
Orion
 Inheritedcanvas : Rectangle
The canvas is used to control the boundaries (edge filter) of the particles animating.
Orion
 InheritedcreateEmitters : Array
Triggers the emitters everytime a particle from this emitter is created.
Orion
 Inheriteddebug : Boolean = false
Turns on debug lines to outline the emitter and canvas dimensions
Orion
 InheriteddestroyEmitters : Array
Triggers the emitters everytime a particle from this emitter is destroyed.
Orion
 InheritededgeFilter : IFilter
Gets or sets the edge filter used by the emitter to determine what the particles will do when they hit the edge.
Orion
 InheritedeffectFilters : Array
Gets the filters being applied by the emitter.
Orion
  height : Number
Gets the height of the emitter, setting is disabled.
OrionContainer
  offSet : Point
This offset is used by the BitmapRenderer to fix render issues.
OrionContainer
 Inheritedoutput : IOutput
Gets or sets the output class used.
Orion
 Inheritedparticles : Array
The array of all the particles in this instance of Orion
Orion
 InheritedparticlesVisible : Boolean = true
As the particles are updated, this will toggle visibility on or off.
Orion
 Inheritedpaused : Boolean
Gets or sets the paused property
Orion
 Inheritedsettings : Object
The settings object controls all configuration.
Orion
  spriteClass : Class
The spriteClass property is disabled with this emitter.
OrionContainer
  spriteTarget : DisplayObjectContainer
The SpriteTarget property is OrionContainer's equivalent of SpriteClass.
OrionContainer
 Inheritedtime : int
[static] Current Time
Orion
 InheritedupdateEmitters : Array
Triggers the emitters everytime a particle from this emitter gets updated.
Orion
 InheriteduseCacheAsBitmap : Boolean = false
Gets or sets whether bitmap caching is enabled on particles used within this emitter.
Orion
  useFrameCaching : Boolean
The useFrameCaching property is disabled with this emitter.
OrionContainer
  width : Number
Gets the width of the emitter, setting is disabled.
OrionContainer
  x : Number
Gets the x position of the emitter, setting is disabled.
OrionContainer
  y : Number
Gets the y position of the emitter, setting is disabled.
OrionContainer
Public Methods
 MethodDefined by
  
OrionContainer(target:DisplayObjectContainer, config:Object = null)
The constructor for OrionContainer is slightly different from Orion.
OrionContainer
 Inherited
applyPreset(config:Object = null, reset:Boolean = false):void
Orion
  
OrionContainer
  
emit(point:Point = null):void
Stops Orion from creating new particles.
OrionContainer
 Inherited
interpolateColor(fromColor:uint, toColor:uint, progress:Number):uint
[static] Finds a color that's between the two numbers given.
Orion
 Inherited
interpolateTransform(fromColor:ColorTransform, toColor:ColorTransform, progress:Number):ColorTransform
[static] Finds a ColorTransform that's between the two ColorTransforms given.
Orion
 Inherited
killGarbage(e:TimerEvent = null):void
This will run ever 2 seconds and remove any inactive particles from memory.
Orion
 Inherited
pause():void
Pauses the particle system
Orion
 Inherited
play():void
Resumes or plays the particle system
Orion
 Inherited
Removes all particles from the emitter.
Orion
 Inherited
removeItem(array:Array, item:*):Boolean
[static] Removes a specified item from the array.
Orion
 Inherited
render(e:Event = null):void
Updates all the particles and positions, updates the output class as well.
Orion
 Inherited
rotateCoord(x:Number, y:Number, sin:Number, cos:Number):Point
[static] Takes a given coordinate and rotates it in a 2D space.
Orion
 Inherited
update(emitter:Orion):void
This acts as a fake output update function for use by the Update and Destroy emitters.
Orion
Protected Methods
 MethodDefined by
 Inherited
addParticle(pt:Point = null):void
Adds a new particle to the system.
Orion
 Inherited
cacheFramesOf(mc:MovieClip):void
If it's a movieclip, cache it's frames.
Orion
 Inherited
getColorTransform(p:ParticleVO, targetColor:uint):ColorTransform
Used to get a colortransform object for a specific particle.
Orion
 Inherited
getCoordinate():Point
Returns a coordinate it's designated position.
Orion
 Inherited
Returns a new particle
Orion
 Inherited
Checks the recycle bin if a suitable particle can be re-used.
Orion
 Inherited
gotoAndStopCached(d:DisplayObject, frame:int):void
Sets a given particle to a specific frame in the movieclip, from the frame cached in memory.
Orion
 Inherited
randomRange(min:Number, max:Number):Number
[static] Return a random number between a range of numbers
Orion
 Inherited
Removes a particle and stores the reference to the particle inside of the recyclebin dictionary.
Orion
 Inherited
removeParticle(p:ParticleVO, doArray:Boolean = true):void
Removes a particle.
Orion
 Inherited
Updates the specific particle based on the filters assigned to the emitter.
Orion
 Inherited
Resets the particle and initializes it for use.
Orion
 Inherited
stageHandler(e:Event):void
The stage handler, this listens for the Event.ADDED_TO_STAGE event, so it knows when it can access the stage property.
Orion
Events
 EventSummaryDefined by
 Inherited This event is dispatched each time Orion renders the particles.Orion
 Inherited This event is dispatched each time Orion is resized.Orion
Public Constants
 ConstantDefined by
 InheritedDEG2RAD : Number = 0.017453292519943295
[static] Stored decimal value for conversion
Orion
 InheritedVERSION : String = "1.0.0"
[static] The current version of Orion.
Orion
Property detail
heightproperty
height:Number  [read-write]

Gets the height of the emitter, setting is disabled.

Implementation
    public function get height():Number
    public function set height(value:Number):void
offSetproperty 
public var offSet:Point

This offset is used by the BitmapRenderer to fix render issues. This is set automatically by assignParticles(), but is public to allow for custom alignment if necessary.

spriteClassproperty 
spriteClass:Class  [read-write]

The spriteClass property is disabled with this emitter.

Implementation
    public function get spriteClass():Class
    public function set spriteClass(value:Class):void
spriteTargetproperty 
spriteTarget:DisplayObjectContainer  [read-write]

The SpriteTarget property is OrionContainer's equivalent of SpriteClass. This sets the target to use as particles.

Implementation
    public function get spriteTarget():DisplayObjectContainer
    public function set spriteTarget(value:DisplayObjectContainer):void
useFrameCachingproperty 
useFrameCaching:Boolean  [read-write]

The useFrameCaching property is disabled with this emitter.

Implementation
    public function get useFrameCaching():Boolean
    public function set useFrameCaching(value:Boolean):void
widthproperty 
width:Number  [read-write]

Gets the width of the emitter, setting is disabled.

Implementation
    public function get width():Number
    public function set width(value:Number):void
xproperty 
x:Number  [read-write]

Gets the x position of the emitter, setting is disabled.

Implementation
    public function get x():Number
    public function set x(value:Number):void

See also

yproperty 
y:Number  [read-write]

Gets the y position of the emitter, setting is disabled.

Implementation
    public function get y():Number
    public function set y(value:Number):void

See also

Constructor detail
OrionContainer()constructor
public function OrionContainer(target:DisplayObjectContainer, config:Object = null)

The constructor for OrionContainer is slightly different from Orion. You cannot specify an output class becuase it is not used by OrionContainer. No new particles are created so there is nothing to output. Secondly you cannot specify framecaching becuase again, no new particles are created while this runs. When the constructor runs, the canvas is automatically set to the stage dimensions (if available) and corrects for the target's position. In debug mode, the emitter is positioned according to the coordinates of the target's parent. For the emitter to be positioned accurately, OrionContainer must be attached to the same DisplayObject as the target. This is only for the debug lines to be accurate, it's not required for anything else.

Parameters
target:DisplayObjectContainer — The display object to use.
 
config:Object (default = null) — Whether to add the target or the children inside the target.
Method detail
applySettings()method
public function applySettings():void
emit()method 
public override function emit(point:Point = null):void

Stops Orion from creating new particles.

Parameters
point:Point (default = null) — Where to position the particle