flash on 2010-11-15
♥0 |
Line 28 |
Modified 2010-11-15 20:04:48 |
MIT License
archived:2017-03-20 05:35:55
ActionScript3 source code
/**
* Copyright enecre ( http://wonderfl.net/user/enecre )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/x0iB
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var tf:TextField = new TextField();
public function FlashTest() {
// write as3 code here..
tf.width = tf.height = 465;
addChild(tf);
var arr0:Array;
var arr1:Array;
arr0 = arr1 = [1,3,4];
arr0.push(6);
tr("arr0:", arr0);
tr("arr1:", arr1);
var arr2:Array;
var arr3:Array;
arr2 = [1,3,4];
arr3 = [1,3,4];
arr2.push(6);
tr("arr2:", arr2);
tr("arr3:", arr3);
}
private function tr(...o:Array):void{
tf.appendText(o + "\n");
tf.scrollV = tf.maxScrollV;
}
}
}