2012-11-05 51 views

回答

2

你可以訪問像每個其他設備上的時間。使用此代碼:

var currentTime:Date = new Date(); 
trace(currentTime); 

您需要隨時調用新的Date()以獲得實際時間。

有關詳細信息,請參閱documentation

適用於iOS-Simulator,並且應該可以在設備上工作。

+0

好的,謝謝!是否有與ios的air有關的所有設備相關命令列表? –

+1

也許這個網頁可以幫助你:http://www.adobe.com/devnet/air/air_for_ios.html – Mario

1

您應該使用Date()類。 (也許我誤解了你的問題)

相關問題