【发布时间】:2010-09-12 07:22:18
【问题描述】:
我正在通过 Flex 3 中的 SWC 文件访问自定义 UIComponent。 这个组件在 Flash CS3 中工作正常,但是在 Flex 中使用它会在 draw() 中产生一个奇怪的错误。
我在 Sprite 中添加了 swc 组件(带有 addchild)及其在 LIB 路径中。
TypeError:错误 #1010:术语未定义且没有属性。
at com.xxxx.highscores::HighScores/draw()
at fl.core::UIComponent/callLaterDispatcher()
这里是这个 UI 组件的 draw() 函数:
覆盖受保护的函数 draw():void { isInitializing = false;
page.Text.x = width / 2;
page.Text.y = height / 2;
drawBackground();
}
【问题讨论】:
标签: apache-flex flash components