import flash.display.MovieClip;數組
import flash.display.DisplayObject;ip
var m:MovieClip = new MovieClip();flash
var a:Array = [m];import
var o:DisplayObject = a.splice(0, 1) as DisplayObject;im
trace(o) //這樣爲何會輸出null呢di
原來Array.splice返回值是數組。。vi
var o:DisplayObject = a.splice(0, 1)[0] as DisplayObject;display
trace(o) 這樣就沒問題了new