0
當我嘗試在Flash CS4中的日期和字符串之間進行轉換時,我使用DateFormatter,我導入mx.formatters.DateFormatter,但它告訴我「定義mx.formatters.DateFormatter無法找到」,如何解決它,謝謝您!在Flash CS4中找不到mx.formatters.DateFormatter?
當我嘗試在Flash CS4中的日期和字符串之間進行轉換時,我使用DateFormatter,我導入mx.formatters.DateFormatter,但它告訴我「定義mx.formatters.DateFormatter無法找到」,如何解決它,謝謝您!在Flash CS4中找不到mx.formatters.DateFormatter?
問題是DateFormatter是Flex SDK的一部分,而不是Flash CS4的一部分。你需要在你的動作設置中包含Flex SWC文件。
我找到了一個很好的小教程,解釋了所有你需要知道的截圖。
http://actionscriptexamples.com/2008/10/26/using-the-flex-sdk-with-flash-cs4/