|
Useful functions hidden in Flashblocks.swf |
This is a partial list of useful functions hidden with Flashblocks.swf
- positionInsideStage(movie clip, desired x position, desired y position) - this will place a movie clip as near as possible to x and y while staying within the boundaries of the stage.
- findReplace (findV, replaceWithV, findIn) - find replace text in a string
-
popupWindow (URL) - popup
-
tooltip (txt) create tooltip that follows mouse and
tooltip () to remove tooltip
-
makeButton (mc, txt) - makes a button
- positionInsideStage(mc, x, y) - position a movie clip closest to X and Y while staying withing the borders of the stage.
* makeButton() and tooltip are MovieClip.prototypes so just call them from anywhere. but the rest need to be called from within flashblocks, so call them like: _root.flashblocks.tooltip("the text");
|