Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
S
 saturation, AnimationManager
 SaturationAnimation, SaturationAnimation
 saveSettings, airSprite
 scale
 ScaleAnimation, ScaleAnimation
 ScaleSelection, Asset
 SceneGraph, SceneGraph
 ScriptField, ScriptField
 Scrollbar, Scrollbar
 ScrollbarDown, CommonAsset
 scrollbarHandler, ScriptField
 ScrollbarSlider, CommonAsset
 ScrollbarUp, CommonAsset
 scrollHandler, ScriptField
 searchForKey, HashMap
 securityErrorHandler, mSprite
 selectStrokeAt, SceneGraph
 selectStrokeByName, SceneGraph
 serializeSettings, airSprite
 set
 Set, Set
 setActive, WidgetSprite
 setAdvancedTweenParams, MovieObjectGenerator
 setAll, BitVector
 setAt
 setBevelParams, StrokeFilter
 setBit, BitVector
 setBlurParams, StrokeFilter
 setBoxParams, StrokeStyle
 setCol, Array2
 setDefaultValues, ColorMatrix
 setDropShadowParams, StrokeFilter
 setEndFill, StrokeStyle
 setFillParams, StrokeStyle
 setFocus, TabPane
 setFocusHandler, TabPane
 setFrame, Timeline
 setFrameRate, Timeline
 setGradientParams, StrokeStyle
 setLeft, BinaryTreeNode
 setMinMax, Scrollbar
 setOwnerActive, WidgetSprite
 setPathTweenParams, MovieObjectGenerator
 setRefreshRate, Renderer
 setRight, BinaryTreeNode
 setRow, Array2
 setSelectionChangeCallback, Stroke
 setSelectionIndexCallback, SceneGraph
 setSelectionStrokeCallback, SceneGraph
 setSizeChangeCallback, SceneGraph
 setStageReference, AnimationManager
 setStyleParams, StrokeStyle
 setTweenParams, MovieObjectGenerator
 setupCoordinateSystem, StrokeObjectGenerator
 setupMovieProperties, MovieObjectGenerator
 setupSceneMethods, MovieObjectGenerator
 setupStrokeActions, StrokeObjectGenerator
 setupStrokeProperties, StrokeObjectGenerator
 setupTimeline, MovieObjectGenerator
 setupTimelineTweens, MovieObjectGenerator
 shadow, Color
 ShapeButton, ShapeButton
 ShapeSVG, ShapeSVG
 shiftDown, Array2
 shiftLeft, Array2
 shiftRight, Array2
 shiftUp
 ShowDialog
 showGenerateForm, MainForm
 showSelectedStroke, SceneGraph
 shrinkSequencesOf
 sineIn, Transitions
 sineInAndOut, Transitions
 sineOut, Transitions
 size, AnimationManager
 SizeAnimation, SizeAnimation
 sLinkedInsertionSort
 sLinkedInsertionSortCmp
 SLinkedList, SLinkedList
 sLinkedMergeSort
 sLinkedMergeSortCmp
 SListIterator, SListIterator
 SListNode, SListNode
 sort
 splice
 splitScript, ClassParser
 Stack, Stack
 start
 startAll, Renderer
 startEnterFrame, Renderer
 startTimer, Renderer
 StepperDownArrow, CommonAsset
 StepperUpArrow, CommonAsset
 stop
 stopAll, Renderer
 StopAnimation, Asset
 stopEnterFrame, Renderer
 stopTimer, Renderer
 storeSettings, airSprite
 StringInput, StringInput
 stripComments, MethodParser
 stripMethodPrefix, MovieObjectGenerator
 stripQuotes, MovieObjectGenerator
 Stroke, Stroke
 StrokeFilter, StrokeFilter
 StrokeItem, StrokeItem
 StrokeStyle, StrokeStyle
 substrUntil, Utility
 SyncOff, Asset
 SyncOn, Asset
 syntaxHighlight, ScriptField
public function saturation(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the saturation of a ‘colorable’ object to the desired target color value.
public function SaturationAnimation(objTarget: IColorable,
nTargetValue: Number,
nDuration: Number,
strTransition: String,
uRenderMethod: uint)
Constructor.
private function saveSettings():void
Store settings in XML serialized form.
public function scale(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘scaleX’ and ‘scaleY’ properties of a display object to the desired target values.
public function scale(xScale: Number,
yScale: Number):void
Scale all items in the stroke.
public function scale(xScale: Number,
yScale: Number):void
Scale the position of a StrokeItem.
public function scale(xScale: Number,
yScale: Number):void
Scale the width of the line according the requested scaling and the setting of the LineScaleMode property.
public function ScaleAnimation(objTarget: DisplayObject,
nTargetValueX: Number,
nTargetValueY: Number,
nDuration: Number,
strTransition: String,
uRenderMethod: uint)
Constructor.
public static function ScaleSelection():Shape
ScaleSelection code generated by µShape.
public function SceneGraph(onSizeChange: Function,
onStrokeChange: Function,
onSelectionChange: Function)
Create a new scene graph object with a default stroke.
public function ScriptField(owner: String,  
inputText: String = "",
fieldWidth: uint = DEFAULT_WIDTH,
fieldHeight: uint = DEFAULT_HEIGHT,
color: uint = defaultColor,
fontSize: uint = defaultFontSize)
Creates a multi-line script field with word wrap and a vertical scrollbar.
public function Scrollbar(owner: String,  
height: uint,  
minValue: Number,  
maxValue: Number,  
increment: Number,  
positionHandler: Function,  
frontColor: uint = Color.Grey,
backColor: uint = Color.DarkGrey)
Creates a vertical scrollbar suitable for a multiline text field.
public static function ScrollbarDown():Shape
ScrollbarDown code generated by µSprite.
private function scrollbarHandler(newPosition: Number):void
The user has manipulated the scrollbar position.
public static function ScrollbarSlider():Sprite
ScrollbarSlider code generated by µSprite.
public static function ScrollbarUp():Shape
ScrollbarUp code generated by µSprite.
private function scrollHandler(event: Event):void
The user has scrolled the text in the input field.
protected function searchForKey(objKey: Object):int
Searches through the keys array to see if the key is being stored by this object.
private function securityErrorHandler(event: SecurityErrorEvent):void
Displays a security error message.
public function selectStrokeAt(index: int):Stroke
Change the selected stroke to the stroke with the given index.
public function selectStrokeByName(name: String):Stroke
Change the selected stroke to the stroke with the given asset shape name.
private function serializeSettings():XML
Serializes the current application state into an XML object.
public function set(x: int,
y: int,
obj: *):void
Writes a value into a cell at the given x/y index.
public function set(x: int,
y: int,
z: int,
obj: *):void
Writes a value into a cell at the given x/y/z index.
public function set(obj: *):void
Writes an item to the set.
public function Set()
Creates a new empty set.
public function setActive(state: Boolean):void
Sets the state of the widget to active or inactive.
private function setAdvancedTweenParams(params: Array):String
Sets tween parameters for a new advanced tween added to the movie timeline.
public function setAll():void
Sets each bit to 1.
public function setAt(i: int,
obj: *):void
Writes an item relative to the front index.
public function setAt(i: int,
obj: *):void
Writes an item at a given index.
public function setBevelParams(params: Array):void
Adds a bevel filter to the shape with the given parameters.
public function setBit(index: int,
b: Boolean):void
Sets a bit at a given index.
public function setBlurParams(params: Array):void
Adds a blur filter to the shape with the given parameters.
public function setBoxParams(params: Array):void
Sets the gradient box properties to the given parameters.
public function setCol(x: int,
a: Array):void
Inserts new values into a complete column of the two-dimensional array.
protected function setDefaultValues():void
Applies all default values to the corresponding properties.
public function setDropShadowParams(params: Array):void
Adds a dropshadow filter to the shape with the given parameters.
public function setEndFill():void
Sets the fill properties to transparent.
public function setFillParams(params: Array):void
Sets the solid fill properties to the given parameters.
public function setFocus(pageName: String):void
Change focus to a named tab page.
private function setFocusHandler(event: MouseEvent):void
Changes focus to a tab page when the user clicks on its tab.
protected function setFrame(uFrame: Number):void
Sets the current frame of the playhead.
public function setFrameRate(nFrameRate: Number):void
Sets the frame rate this timeline plays at.
public function setGradientParams(params: Array):void
Sets the linear or radial gradient fill properties to the given parameters.
public function setLeft(obj: *):void
Writes data into the left child.
public function setMinMax(minValue: Number,
maxValue: Number):void
Sets the minimum and maximum values for the scrollbar.
public static function setOwnerActive(owner: String,
state: Boolean):void
Sets all widgets registered to owner to the given state.
private function setPathTweenParams(params: Array):String
Sets tween parameters for a new motion path tween added to the movie timeline.
public function setRefreshRate(nRefreshRate: Number):void
Sets the refresh rate of this renderer if it is Timer driven.
public function setRight(obj: *):void
Writes data into the right child.
public function setRow(y: uint,
a: Array):void
Inserts new values into a complete row of the two-dimensional array.
public function setSelectionChangeCallback(
   onSelectionChangeCallback: Function
):void
Change the callback invoked when the selectedIndex in the stroke is changed.
public function setSelectionIndexCallback(
   onSelectionIndexCallback: Function
):void
Change the callback function called when the selected stroke point changes
public function setSelectionStrokeCallback(
   onSelectionStrokeCallback: Function
):void
Change the callback function called when the selected stroke changes
public function setSizeChangeCallback(onSizeChangeCallback: Function):void
Change the callback function called when the scene graph changes size
protected function setStageReference(objTarget: DisplayObject):void
Sets a global reference to the ‘Stage’ if one doesn’t already exist.
public function setStyleParams(params: Array):void
Sets the line style properties to the given parameters.
private function setTweenParams(params: Array):String
Sets tween parameters for a new tween added to the movie timeline.
private function setupCoordinateSystem(parser: MethodParser):void
Sets the stroke coordinate system for according to defined coordinate system values present in the parser.
private function setupMovieProperties(parser: ClassParser):String
Sets movie scene properties for name, background color, timeline framerate, loop state and scene coordinate system according to the values present in the parser.
private function setupSceneMethods(sceneRelations: Array,
maskNames: Array,
sceneMethods: Array):String
Sets the movie scene graph reestablishing parent/child relationships of shapes, masks and paths.
private function setupStrokeActions(actions: Array):String
Sets stroke shape point and object item positions, line and fill styles, gradient boxes and shape filters according to the actions present in the parsed action array.
private function setupStrokeProperties(parser: MethodParser):void
Sets stroke properties for transparency, rotation, scale and position according to the values present in the parser.
private function setupTimeline(parser: MethodParser):String
Sets timeline properties from a method parser object.
private function setupTimelineTweens(actions: Array):String
Sets timeline tweens from a method parser object.
public static function shadow(color: uint):uint
Convert a color value to its shadow palette variation.
public function ShapeButton(owner: String,  
upShapeFunction: Function,  
downShapeFunction: Function,  
labelText: String = null,
color: uint = Color.Grey,
clickHandler: Function = null,
buttonWidth: Number = DEFAULT_WIDTH,
buttonHeight: Number = DEFAULT_HEIGHT,
autoRepeat: int = 100)
Creates a button with a graphics shape and/or a label text.
public function ShapeSVG(shapeName: String,
shapeP: Point,
shapePts: Array,
shapeRotation: int,
shapeFill: Object,
shapeStroke: Object):void
ShapeSVG object Constructor.
public function shiftDown():void
Shifts all rows down by one row.
public function shiftLeft():void
Shifts all columns by one column to the left.
public function shiftRight():void
Shifts all columns by one column to the right.
public function shiftUp():void
Shifts all rows up by one row.
public function shiftUp():void
Removes and appends the head node to the tail.
public function shiftUp():void
Removes and appends the head node to the tail.
public function ShowDialog(parent: Sprite,
colorField: StringInput):void
Displays the color selection dialog.
public function ShowDialog(parent: Sprite,  
confirmMessage: String = null,
closeHandler: Function = null):void
Displays the confirmation dialog message and calls the closeHandler when the user confirms or cancels the dialog.
public function ShowDialog(parent: Sprite,  
closeHandler: Function = null):void
Displays the dialog box ensuring the displayed script is up-to-date.
public function ShowDialog(parent: Sprite,  
closeHandler: Function = null):void
Displays the dialog box after updating the UI widgets from the dialogbox interchange data.
public function ShowDialog(parent: Sprite,  
tweenName: String,  
closeHandler: Function = null):void
Displays the dialog box after updating the UI widgets from the dialogbox interchange data.
public function showGenerateForm():void
Displays the script edit dialogbox
private function showSelectedStroke():void
Show the selected stroke.
public static function shrinkSequencesOf(
   str: String,
   ch: String
):String // String.prototype.shrinkSequencesOf = function(ch:String):String
Timothee Groleau’s String method shrinkSequencesOf.
public static function shrinkSequencesOf(str: String,
ch: String):String
Shrink all sequences of a given character in a string to one.
public static function sineIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine in easing equation.
public static function sineInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine in and out easing equation.
public static function sineOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine out easing equation.
public function size(objTarget: DisplayObject,  
nTargetValueW: Number,  
nTargetValueH: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘width’ and ‘height’ properties of a display object to the desired target values.
public function SizeAnimation(objTarget: DisplayObject,
nTargetValueW: Number,
nTargetValueH: Number,
nDuration: Number,
strTransition: String,
uRenderMethod: uint)
Constructor.
public function sLinkedInsertionSort(node: SListNode,  
descending: Boolean = false):SListNode
DATA STRUCTURES FOR GAME PROGRAMMERS Copyright © 2007 Michael Baczynski, http://www.polygonal.de
public function sLinkedInsertionSortCmp(node: SListNode,  
cmp: Function,  
descending: Boolean = false):SListNode
DATA STRUCTURES FOR GAME PROGRAMMERS Copyright © 2007 Michael Baczynski, http://www.polygonal.de
public function SLinkedList(...args)
Initializes an empty list.
public function sLinkedMergeSort(node: SListNode,  
descending: Boolean = false):SListNode
DATA STRUCTURES FOR GAME PROGRAMMERS Copyright © 2007 Michael Baczynski, http://www.polygonal.de
public function sLinkedMergeSortCmp(node: SListNode,  
cmp: Function,  
descending: Boolean = false):SListNode
DATA STRUCTURES FOR GAME PROGRAMMERS Copyright © 2007 Michael Baczynski, http://www.polygonal.de
public function SListIterator(list: SLinkedList = null,
node: SListNode = null)
Creates a new SListIterator instance pointing to a given node.
public function SListNode(obj: *)
Creates a new node storing a given item.
public function sort(...sortOptions):void
Sorts the list.
public function sort(...sortOptions):void
Sorts the list.
public function splice(start: DListIterator,  
deleteCount: uint = 0xffffffff,
...args   ):DLinkedList
Adds nodes to and removes nodes from the list.
public function splice(start: SListIterator,  
deleteCount: uint = 0xffffffff,
...args   ):SLinkedList
Adds nodes to and removes nodes from the list.
private function splitScript(script: String):Array
Splits a class script into parts.
public function Stack()
Constructor.
public function start():void
@inheritDoc
function start():void
Moves the iterator to the first item in the collection.
private function start(interval: uint):void
Start auto-repeating clicks on the button.
public function start(interval: uint = 1000):void
Start animating the shape.
public function start():void
Nullified behaviour.
public function start(nRenderMethod: Number):void
Starts rendering for the specified render method.
public function start(interval: uint = 20):void
Start animating the shape.
private function start(interval: uint):void
Start auto-repeating clicks on the button.
public function start():void
@inheritDoc
public function start():void
Resets the vertical iterator so that it points to the root of the tree.
public function startAll():void
Starts rendering for all render methods.
protected function startEnterFrame():void
Starts listening for the enter frame event.
protected function startTimer():void
Starts the timer.
public static function StepperDownArrow():Shape
StepperDownArrow code generated by µShape.
public static function StepperUpArrow():Shape
StepperUpArrow code generated by µShape.
private function stop():void
Stops and removes the auto-repeat timer.
public function stop():void
Stop animating the shape.
public function stop(nRenderMethod: Number):void
Stops rendering for the specified render method.
public function stop():void
Stop animating the shape.
private function stop():void
Stops and removes the auto-repeat timer.
public function stop():void
Stops this timeline at the current frame.
public function stopAll():void
Stops rendering for all render methods.
public static function StopAnimation():Shape
StopAnimation code generated by µSprite.
protected function stopEnterFrame():void
Stops listening for the enter frame event.
protected function stopTimer():void
Stops the timer.
private function storeSettings(settings: XML):void
Writes the XML settings object to the application configuration file.
public function StringInput(owner: String,  
labelText: String = null,
inputText: String = "",
changeHandler: Function = null,
labelWidth: uint = DEFAULT_LABEL_WIDTH,
inputWidth: uint = DEFAULT_INPUT_WIDTH,
color: uint = defaultColor,
fontSize: uint = defaultFontSize)
Creates a one line input text field with an optional label.
public static function stripComments(script: String):String
Strip comments from a script.
private function stripMethodPrefix(methodName: String):String
Removes the method name prefix to obtain the name of the asset created by the method.
private function stripQuotes(quotedString: String):String
Removes double quotes from a string
public function Stroke(strokeStyles: Array,  
throughPoints: Array,  
curvePoints: Array,  
onSelectionChangeCallback: Function = null,
isDefaultItem: Boolean = false)
Create a stroke object for a graphics shape or path.
public function StrokeFilter(shape: DisplayObject)
Constructor that stores a reference to the shape to manage filters for.
public function StrokeItem(itemParent: DisplayObjectContainer,  
itemType: String,  
itemStyle: StrokeStyle,  
strokePt: Point,  
controlPt: Point = null,
cornerPt: Point = null)
Constructor for creation of a StrokeItem.
public function StrokeStyle(strokeWidth: Number = 1.0,
strokeColor: uint = 0x000000,
transparency: Number = 1.0,
usePixelHinting: Boolean = false,
strokeScaleMode: String = "normal",
capStyle: String = "round",
jointStyle: String = "round",
strokeMiterLimit: Number = 3,
numColorsInFill: uint = 0,
fillColor: uint = 0x000000,
fillAlpha: Number = 1.0,
gradientType: String = "linear",
spreadMethod: String = "pad",
interpolationMethod: String = "rgb",
focalRatio: Number = 0,
gradientBoxWidth: Number = 100,
gradientBoxHeight: Number = 100,
gradientBoxRotation: Number = 0,
gradientBoxTx: Number = 0,
gradientBoxTy: Number = 0,
fillColors: Array = null,
fillAlphas: Array = null,
fillRatios: Array = null)
Creates a stroke style object holding line style and solid or gradient fill properties for a StrokeItem.
public static function substrUntil(str: String,
endToken: String):String
Returns a substring matching the part of string until the end token.
public static function SyncOff():Shape
SyncOff code generated by µShape.
public static function SyncOn():Shape
SyncOn code generated by µShape.
private function syntaxHighlight():void
Syntax highlights by setting text formats on the script field text.
Close