flash on 2015-9-8
♥0 |
Line 31 |
Modified 2015-09-08 18:24:48 |
MIT License
archived:2017-03-30 10:21:43
ActionScript3 source code
/**
* Copyright jmbyh521 ( http://wonderfl.net/user/jmbyh521 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/AoS7
*/
package {
import flash.events.HTTPStatusEvent;
import flash.net.URLLoader;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
var txf:TextField;
var ldr:URLLoader;
var start:Number;
var stop:Number;
public function FlashTest() {
// write as3 code here..
txf=new TextField();
txf.autoSize="left";
txf.wordWrap=true;
txf.width=stage.stageWidth;
txf.text="helloWorld";
this.addChild(txf);
ldr=new URLLoader();
ldr.addEventListener(HTTPStatusEvent.HTTP_STATUS,onStatus);
ping()
}
function ping():void{
txf.text='pinging ';
doPing();
}
function doPing():void{
}
function onStatus(e:HTTPStatusEvent):void{
}
}
}