开发者

Flex/Flash Event Question

开发者 https://www.devze.com 2023-01-10 12:10 出处:网络
I am trying to get the event data in a event handler..my debugger image is as follow:alt text http://www.popslinger.org/debug2.JPG

I am trying to get the event data in a event handler..my debugger image is as follow:alt text http://www.popslinger.org/debug2.JPG

I tried to dispatch my custom event with the event.data please see onPlayerError function...

My debug shows my data value is -1 but the compile said "access of undefined property data throught a reference with开发者_开发百科 a static type flash.events.event"

Not sure what to do here..Please help me...Thanks a lot!!!


Look at the trace statement in the comment. You need to cast your event as an Object like this: Object(event).data

0

精彩评论

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

关注公众号