我試圖從我的外部訪問一個mxml組件作爲文件。 e.g從外部動作文件訪問mxml組件
main.mxml:<br>
<code>[mx:text id="myText" />]</code>
file.as:<br>
<code>var mainM:main = new main();
mainM.text.visible = true;</code>
我得到以下錯誤:
[TypeError: Error #1009: Cannot access a property or method of a null object reference]
對如何處理好它的任何建議。
將試一試 – Gbolahan 2010-02-18 16:41:53