RRProbe

redrocketcms.components.RRProbe

 

The probe acts like a primer to initialize the RRC framework. You can use the probe to load the framework at a time before the body is on stage, for example to play an animation. Otherwise, the body would instantly load content as soon as the framework was loaded.

p id:String

Static. This id is the sybolID linkage necessary for dynamic attachment using attachMovie().

 

Example Usage. Identical functionally to dropping the RRProbe component on the stage:

import redrocketcms.components.RRProbe; this.attachMovie(RRProbe.id, "probe", this.getNextHighestDepth());

p onInitialized:Object (When Initialized)

Write-only. Will accept one of three values:

 

  • "Do Nothing" - does nothing
  • "Play Parent Movie" - plays the parent movie of the probe
  • "onInitialized Function" - requires you to apply a "onInitialized" method to the probe instance. see below.
//Example #1 for onInitialized as a function: var probe:MovieClip; // the instance on the stage probe.onInitialized = function () { trace ("do something"); } //Example #2 for onInitialized as a function: var probe:MovieClip; // the instance on the stage function doSomething () { trace ("do something"); } probe.onInitialized = "doSomething";

e onInitialized()

Event dispatched to listeners when the RRC framework has been iniialized. Note: if you are going to use a function for the Probe, you should use the EventDispatcher method instead of setting an onInitialized method.

 

Example:

var probe:MovieClip; // the probe on the stage var listener:Object = new Object(); listener.onInitialized = function (eo:Object) { trace ("do something"); } probe.addEventListener("onInitialized", listener);