0
文件名爲MyClass如何自定義屬性添加到組件
<mx:Script>
<![CDATA[
public var checked:Boolean;
private function init():void {
checked = false;
}
]]>
</mx:Script>
</mx:Tile>
我創建了這個代碼的文件,我必須創建這個自定義類設置自定義的對象性能
我的模塊中添加了這個:
<?xml version="1.0"?>
<s:Module
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init();"
xmlns:MyComp="components.*">
var t:Tile = new MyClass();
,但我得到一個ER該類沒有找到..我做錯了什麼?