while 迴圈與 if 陳述式相同,只要條件為 true,就會不斷重複。例如,下列程式碼會產生與 for 迴圈範例相同的輸出: var i:int = 0; while (i < 5) { trace(i); i++; } 使用 ...
help.adobe.com