KitchenSync sample
/**
* Copyright mash ( http://wonderfl.net/user/mash )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/tKyP
*/
package {
import flash.display.Sprite;
import org.as3lib.kitchensync.*;
import org.as3lib.kitchensync.action.*;
import org.as3lib.kitchensync.easing.*;
import com.bit101.components.Text;
public class FlashTest extends Sprite {
private var logger :Text;
public function FlashTest() {
// write as3 code here..
stage.frameRate = 30;
KitchenSync.initialize(this);
createLogger( this );
log( "Hello, " );
new KSFunction( function(who: String) :void {
log(who);
}, 5000, "World!").start();
}
private function log( str :String ) :void {
logger.text += str + "\n";
}
private function createLogger( parent :Sprite ) :void {
logger = new Text( parent, 0, 0 );
}
}
}