开发者

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

开发者 https://www.devze.com 2023-02-23 10:07 出处:网络
I tried this: (DisplayObject(slider)).parent.addEventListener(CustomEvent.CUSTOM_EVENT_TYPE, onCustomEventType);

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

精彩评论

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