加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

How to fix this issue: Type Coercion failed: cannot convert

发布时间:2020-12-15 17:37:31 所属栏目:百科 来源:网络整理
导读:转自:http://blog.donews.com/cnsoft/archive/2012/12/14/1583410.aspx 困扰两天了.? Type Coercion failed: cannot convert flash.events::Event@8eda061 to starling.events.Event.? 莫名其妙. 终于回忆起最近一次的修改,增加了一个资源是 loader 加载的.

转自:http://blog.donews.com/cnsoft/archive/2012/12/14/1583410.aspx

困扰两天了.? Type Coercion failed: cannot convert flash.events::Event@8eda061 to starling.events.Event.? 莫名其妙.
终于回忆起最近一次的修改,增加了一个资源是 loader 加载的.. 但是回调函数是 starling 的event… 太邪恶了.
同样参考,http://stackoverflow.com/questions/13756716/starling-and-cameraroll-upload-type-coercion,

修改方式:// Event > object. try to fix issue
private function handleContentLoaded(evt:Object):void?? 或者? private function handleContentLoaded(evt:flash.events.Event):void

其实这个还跟 FlashBuilder 自动语法提示有关.. 也和 starling 的名字定义有关.. starling 改成 starling.events.SEvent 也行啊..

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读