In the series “Oneliners for Flash” this is a handy one for stopping the current timeline for a while and continuing after a certain amount of time. A nice replacement of endless inserted frames:
stop(); var interval:Number = setInterval(function () : Void {clearInterval(interval); play();}, 2000);
The number at the end, 2000, is the number of milliseconds to [...]
Articles in category 'Flash'
JSFL, Javascript for Flash, supports running scripts from other script files. The syntax is not very lucky, and I would have preferred something like import, but its availability allows for creation of libraries for reuse.
The file Commands.zip contains “newItem.jsfl”, that contains a few functions that come in handy when creating a new linked movieclip item. [...]
When defining a member variable of type Array, put a Javadoc comment (/** */) on the line above the declaration, so it will appear when hovering over a reference to the member variable. Example:
/** of type SubjectData */
private var mSubjects : Array;
Situation: You load an external swf and render it to a bitmap. On rollover, you tell it to go to another frame, and rerender it, to get the rollover image from the loaded swf. If you do this by giving it a label (gotoAndStop(“over”)), it will miss the new frame half of the time, and [...]