Package | cv |
Class | public class OrionMouse |
Inheritance | OrionMouse ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | cacheBlendMode : String = "normal"
Gets or sets the blend mode applied to particles when they are created.
| Orion | |
![]() | cacheFrames : Array
The storage location for frames that are cached.
| Orion | |
![]() | cachePixelSnapping : String = "auto"
Gets or sets pixel snapping when frame caching is enabled.
| Orion | |
![]() | cacheSmoothing : Boolean = false
Gets or sets bitmap smoothing when using frame caching.
| Orion | |
![]() | cacheTarget : MovieClip
Gets the frame cache movieclip.
| Orion | |
![]() | canvas : Rectangle
The canvas is used to control the boundaries (edge filter) of the particles animating.
| Orion | |
![]() | createEmitters : Array
Triggers the emitters everytime a particle from this emitter
is created.
| Orion | |
![]() | debug : Boolean = false
Turns on debug lines to outline the emitter and canvas dimensions
| Orion | |
![]() | destroyEmitters : Array
Triggers the emitters everytime a particle from this emitter
is destroyed.
| Orion | |
![]() | edgeFilter : IFilter
Gets or sets the edge filter used by the emitter to determine what the particles
will do when they hit the edge.
| Orion | |
![]() | effectFilters : Array
Gets the filters being applied by the emitter.
| Orion | |
![]() | height : Number
Gets or sets the height of the emitter.
| Orion | |
onlyOnMouseMove : Boolean
Causes the trailer to only emit particles when the user moves their mouse.
| OrionMouse | ||
![]() | output : IOutput
Gets or sets the output class used.
| Orion | |
![]() | particles : Array
The array of all the particles in this instance of Orion
| Orion | |
![]() | particlesVisible : Boolean = true
As the particles are updated, this will toggle visibility on or off.
| Orion | |
![]() | paused : Boolean
Gets or sets the paused property
| Orion | |
![]() | settings : Object
The settings object controls all configuration.
| Orion | |
![]() | spriteClass : Class
Gets or sets the specific library linkId (class reference)
| Orion | |
![]() | time : int [static]
Current Time
| Orion | |
![]() | updateEmitters : Array
Triggers the emitters everytime a particle from this emitter
gets updated.
| Orion | |
![]() | useCacheAsBitmap : Boolean = false
Gets or sets whether bitmap caching is enabled on particles used within this emitter.
| Orion | |
![]() | useFrameCaching : Boolean
Gets or sets whether frame caching will be enabled.
| Orion | |
![]() | width : Number
Gets or sets the width of the emitter.
| Orion | |
![]() | x : Number
Gets or sets the x position of the emitter.
| Orion | |
![]() | y : Number
Gets or sets the y position of the emitter.
| Orion |
Method | Defined by | ||
---|---|---|---|
OrionMouse(spriteClass:Class = null, output:IOutput = null, config:Object = null, useFrameCaching:Boolean = false)
The constructor allows a few common settings to be specified during construction.
| OrionMouse | ||
![]() |
applyPreset(config:Object = null, reset:Boolean = false):void
| Orion | |
Causes the emitter to add particles.
| OrionMouse | ||
![]() |
interpolateColor(fromColor:uint, toColor:uint, progress:Number):uint
[static]
Finds a color that's between the two numbers given.
| Orion | |
![]() |
interpolateTransform(fromColor:ColorTransform, toColor:ColorTransform, progress:Number):ColorTransform
[static]
Finds a ColorTransform that's between the two ColorTransforms given.
| Orion | |
![]() |
killGarbage(e:TimerEvent = null):void
This will run ever 2 seconds and remove any inactive particles from memory.
| Orion | |
![]() |
pause():void
Pauses the particle system
| Orion | |
![]() |
play():void
Resumes or plays the particle system
| Orion | |
![]() |
removeAllParticles():void
Removes all particles from the emitter.
| Orion | |
![]() |
removeItem(array:Array, item:*):Boolean
[static]
Removes a specified item from the array.
| Orion | |
![]() |
render(e:Event = null):void
Updates all the particles and positions, updates the output class as well.
| Orion | |
![]() |
rotateCoord(x:Number, y:Number, sin:Number, cos:Number):Point
[static]
Takes a given coordinate and rotates it in a 2D space.
| Orion | |
![]() |
This acts as a fake output update function for use by the Update
and Destroy emitters.
| Orion |
Method | Defined by | ||
---|---|---|---|
![]() |
addParticle(pt:Point = null):void
Adds a new particle to the system.
| Orion | |
![]() |
cacheFramesOf(mc:MovieClip):void
If it's a movieclip, cache it's frames.
| Orion | |
![]() |
getColorTransform(p:ParticleVO, targetColor:uint):ColorTransform
Used to get a colortransform object for a specific particle.
| Orion | |
getCoordinate():Point
Returns a coordinate it's designated position.
| OrionMouse | ||
![]() |
Returns a new particle
| Orion | |
![]() |
Checks the recycle bin if a suitable particle can be re-used.
| Orion | |
![]() |
gotoAndStopCached(d:DisplayObject, frame:int):void
Sets a given particle to a specific frame in the movieclip, from
the frame cached in memory.
| Orion | |
leaveHandler(event:Event):void
The mouse move handler, this listens for the MouseEvent.MOUSE_MOVE event,
so it knows when to enable or disable the trailer.
| OrionMouse | ||
![]() |
randomRange(min:Number, max:Number):Number
[static]
Return a random number between a range of numbers
| Orion | |
![]() |
recycleParticle(p:ParticleVO):void
Removes a particle and stores the reference to the particle inside
of the recyclebin dictionary.
| Orion | |
![]() |
removeParticle(p:ParticleVO, doArray:Boolean = true):void
Removes a particle.
| Orion | |
![]() |
renderParticle(p:ParticleVO):void
Updates the specific particle based on the filters assigned to the emitter.
| Orion | |
![]() |
resetParticle(p:ParticleVO):void
Resets the particle and initializes it for use.
| Orion | |
stageHandler(e:Event):void
| OrionMouse |
onlyOnMouseMove | property |
onlyOnMouseMove:Boolean
[read-write]Causes the trailer to only emit particles when the user moves their mouse.
The default value is true
.
public function get onlyOnMouseMove():Boolean
public function set onlyOnMouseMove(value:Boolean):void
OrionMouse | () | constructor |
public function OrionMouse(spriteClass:Class = null, output:IOutput = null, config:Object = null, useFrameCaching:Boolean = false)
The constructor allows a few common settings to be specified during construction. Options such as the output class or any configuration settings.
ParametersspriteClass:Class (default = null ) — This is the linkage class of the item you have exported from the library.
|
|
output:IOutput (default = null ) — Here you can specify which output class you'd like to use. If you don't want to
use one, just leave this as null
|
|
config:Object (default = null ) — Here you can pass in a configuration object. A configuration object is generated by a
preset or you can write one by hand. Each configuration object can contain an effectFilters array, an
edgeFilter object, and a settings object. The settings object can contain all the same properties that
modifying the settings property directly allows.
|
|
useFrameCaching:Boolean (default = false ) — Frame caching is useful for particles that have a lot of glow filters or native Flash filters applied.
Turning on frame caching will cause Orion to take a snapshot of each frame of the particle and turn it into a Bitmap and use the Bitmap
instead. This can greatly increase performance for complicated particles.
|
emit | () | method |
public override function emit(point:Point = null):void
Causes the emitter to add particles.
Parameterspoint:Point (default = null ) — Where to position the particle
|
getCoordinate | () | method |
protected override function getCoordinate():Point
Returns a coordinate it's designated position.
ReturnsPoint — Returns a coordinate at the emitters x,y position or within it.
|
leaveHandler | () | method |
protected function leaveHandler(event:Event):void
The mouse move handler, this listens for the MouseEvent.MOUSE_MOVE event, so it knows when to enable or disable the trailer. It also listens for the Event.MOUSE_LEAVE, to enable/disable when the mosue is off the stage.
Parametersevent:Event — The event dispatched.
|
stageHandler | () | method |
protected override function stageHandler(e:Event):void
Parameters
e:Event |