SKINMANAGER METHODS
defineElement
Availability
Flash Player 7.
Description
Associates an array of movie clips to a certain styleformat property. For instance, the skinManager instance may be passed several movie clips that should be styled as using the "highlight" property, while another movie clip might be assigned to use the "face" property.
Arguments
defineElement(propertyName:String, movieClips:Array)
Returns
Nothing
Example
var skinManager:SkinManager = new SkinManager();
skinManager.defineElement("face", [face_mc]);
skinManager.defineElement("highlight", [topHighlight_mc, leftHighlight_mc]);
skinManager.defineElement("shadow", [bottomShadow_mc, rightShadow_mc]);
registerForEvent
Availability
Flash Player 7.
Description
Allows a skin to register to hear an event broadcast by its parent component.
Arguments
registerForEvent(event:String, object:Object)
Returns
Nothing
Example
var focusListener:Object = {};
focusListener.focus = function() { // graphic code };
skinManager.registerForEvent("focus", focusListener);
resetElements
Availability
Flash Player 7.
Description
Clears a skinManager instance of all references to movie clips that may have been passed in defineElement().
Arguments
None
Returns
Nothing
Example
skinManager.resetElements();