开发者

Flash: how can I cast a slider class to DisplayObject in Flash?

I tried this:

    (DisplayObject(slider)).parent.addEventListener(CustomEvent.CUSTOM_EVENT_TYPE, onCustomEventType);

but开发者_运维问答 flash doesn't like

For whole context see Is it impossible with Flash to get the Instance Creator?


(slider as DisplayObject).parent.addEventListener(CustomEvent.CUSTOM_EVENT_TYPE, onCustomEventType);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜