Packagewidgetfactory.proxy
Classpublic class WidgetManagerProxy
InheritanceWidgetManagerProxy Inheritance BaseProxy Inheritance Object
Implements IWidgetManager

Acts as a proxy for the WidgetManager object. Seeing as instances of widgets can't share strongly typed custom classes, proxyfying your objects is the best way to go to keep things as strongly typed as possible.



Public Properties
 PropertyDefined By
 InheritedisNull : Boolean
[read-only]
BaseProxy
Protected Properties
 PropertyDefined By
 InheritedbaseObject : *
The Object that the proxy object has been created for.
BaseProxy
Public Methods
 MethodDefined By
  
WidgetManagerProxy(widgetManager:Object)
Creates a new instance of the WidgetManagerProxy class.
WidgetManagerProxy
  
Enacts checkWidgetsOnSlide() for the slide currently playing back in the movie.
WidgetManagerProxy
  
checkWidgetsOnSlide(slideNumber:int):void
Forces the WidgetManager to check if any widgets on a certain slide are now active at runtime.
WidgetManagerProxy
  
deRegister(widgetName:String, slideNumber:int):void
Stops the WidgetManager notifying passed in widget of runtime changes.
WidgetManagerProxy
  
register(untypedRuntimeData:Object):void
Signs up a widget with the WidgetManager to be notified when its runtime state changes.
WidgetManagerProxy
  
replaceFrameScriptOn(slide:MovieClip, frame:int):void
When an object is de-registered then its framescript needs to be removed so as not to cause an error.
WidgetManagerProxy
Constructor Detail
WidgetManagerProxy()Constructor
public function WidgetManagerProxy(widgetManager:Object)

Creates a new instance of the WidgetManagerProxy class.

Parameters
widgetManager:Object — The Widget Manager object that the proxy is associated with.
Method Detail
checkCurrentSlide()method
public function checkCurrentSlide():void

Enacts checkWidgetsOnSlide() for the slide currently playing back in the movie.

checkWidgetsOnSlide()method 
public function checkWidgetsOnSlide(slideNumber:int):void

Forces the WidgetManager to check if any widgets on a certain slide are now active at runtime.

Parameters

slideNumber:int — The number of the slide to check. (zero based)

deRegister()method 
public function deRegister(widgetName:String, slideNumber:int):void

Stops the WidgetManager notifying passed in widget of runtime changes.

Parameters

widgetName:String — The ItemName for the widget.
 
slideNumber:int — The number of the slide that the widget is placed on. (zero based)

register()method 
public function register(untypedRuntimeData:Object):void

Signs up a widget with the WidgetManager to be notified when its runtime state changes.

Parameters

untypedRuntimeData:Object — The object that holds the specific RuntimeData for the widget.

replaceFrameScriptOn()method 
public function replaceFrameScriptOn(slide:MovieClip, frame:int):void

When an object is de-registered then its framescript needs to be removed so as not to cause an error. However, it's possible that another object that has the same start frame or end frame. So we must replace it with this function which will check all the widgets on the slide for runtime (and won't cause an error).

Parameters

slide:MovieClip
 
frame:int