Flex/Flash Event Question
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
精彩评论