flash on 2009-9-19
♥0 |
Line 17 |
Modified 2009-09-19 16:46:11 |
MIT License
archived:2017-03-20 16:45:13
ActionScript3 source code
/**
* Copyright coeyes ( http://wonderfl.net/user/coeyes )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bfju
*/
package {
import flash.display.Sprite;
import flash.events.*;
import flash.ui.*;
import com.bit101.components.*;
public class FlashTest extends Sprite {
internal var label:Label;
public function FlashTest() {
label = new Label(this, 10,10, "THIS is first my app");
var button:PushButton = new PushButton(this, 10,30, "BUTTON", onPushButton);
}
private function onPushButton(e:MouseEvent):void {
trace("Move Label");
label.x += 10;
}
}
}