2008年9月26日 星期五

內部變數名稱衝突情況

在flash cs3進行發佈時,若發生「A conflict exists with definition xxxx in namespace internal.」(xxxx表示在code中宣告的變數名稱)的情況時,表示重複宣告了變數名稱而產生衝突。

但是在as code中明明就只有定義一次
public var xxxx;
並沒有重複。

這時請到 Publish 的 Settings 中,將
Publish Setting -> Flash -> ActionScript3.0 setting -> Automatically declare stage instance.
這個項目的打勾取消即可。

表示變數與舞台中的實體名稱產生了衝突。