shift( ) returns the value of the element it removes. The remaining elements all move up in the pecking order toward the beginning of the array.package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var sports:Array = ["q", "s", "i"]; trace(sports.shift( )); trace(sports.shift( )); } }}
Name (required)
email (will not be published) (required)
Website