SiON Practice
SiONの練習です
♥2 |
Line 23 |
Modified 2011-11-27 10:48:09 |
MIT License
archived:2017-03-05 03:05:46
ActionScript3 source code
/**
* Copyright nika ( http://wonderfl.net/user/nika )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/jRvc
*/
package {
import flash.display.Sprite;
import org.si.sion.*;
import flash.text.*;
import flash.events.*;
public class Main extends Sprite {
public var driver:SiONDriver = new SiONDriver();
private var textField:TextField;
function Main() {
textField = new TextField();
textField.x = 100;
textField.y = 50;
textField.background=true;
textField.backgroundColor=0xCCCCCC;
textField.text = "Play the ABCSong";
textField.addEventListener(MouseEvent.CLICK, play);
addChild(textField);
}
private function play(s:String):void{
driver.play("t100 l8 [ccggaag4 ffeeddc4 | [ggffeed4]2 ]2");
}
}
}