トップ 差分 一覧 Farm ソース プレゼンテーション 検索 ヘルプ PDF RSS ログイン

array


var vlist:Array = [250, -30, "red"];

trace(vlist[0] as int);
trace(vlist[1] as int);
trace(vlist[2] as int);



var price:int = 250;
trace(price is int);
trace(price is Number);
trace(price is String);

var vlist:Array = [3, 5, 8];
trace(vlist is Array);
trace(vlist is Object);
trace(vlist is Number);

var clip:MovieClip = new ballMC();
trace(clip is MovieClip);
trace(clip is Sprite);
trace(clip is DisplayObject);



var alist:Array;
var blist:Array;
alist = new Array("a", "b", "c");
blist = alist;
trace(alist.toString());

blist.push("d");
trace(alist.toString());


[Flash,ActionScript3.0,表示]