This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MyPlayer class | |
*/ | |
package { | |
public class MyPlayer extends MovieClip { | |
/** | |
* This static variable will hold our pending listeners for the class. | |
* They will be instantiated once the constructor runs. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.events.Event; | |
var _lastFrame:String = this.currentLabel; | |
function enterFrameHandler(event:Event):void { | |
if(this.currentLabel != _lastFrame) { | |
_lastFrame = this.currentLabel; // set this equal to this.currentFrame to listen for any frame changes instead. | |
dispatchEvent(new Event(Event.CHANGE)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jacksonkr.utils { | |
/** | |
* mimics the php print_r function | |
* jacksonkr.com <[email protected]> | |
*/ | |
public | |
function print_r(obj: * , | |
lvl: int = 0): String { | |
var str: String = ''; | |
var sp = space(lvl); |