FlyingCat
FlyingCat

Reputation: 14290

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!!!

Upvotes: 0

Views: 84

Answers (1)

PatrickS
PatrickS

Reputation: 9572

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

Upvotes: 2

Related Questions