zeldalink
November 21st, 2009, 04:54 PM
I'm getting an error in an AS3 class that I found on a site,
which says that it cannot coerce MyEvent@12345 to MyEvent??
What could be wrong?
TypeError: Error #1034: Type Coercion failed: cannot convert com.box.services::SpeedEvent@7c055e1 to com.box.services.SpeedEvent
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at com.box.services::ClientSpeed/::processReply()
at com.box.services::ServiceUtil$/onLoadCompleted()
at com.box.services::ClientSpeed/::onRequestCompleted()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at com.box.services::ClientSpeedRequest/::onRequestCompleted()
-----------------------------------------------------------------------------------------------------
The funny part is I can't find the words "ClientSpeedRequest" or "ServiceUtil" anywhere in the entire source code folder! So I don't know where these classes / methods or whatever come from.
SpeedEvent is a class declared like this:
final public class SpeedEvent extends MapEvent
ClientSpeed is a class declared like this:
final public class ClientSpeed extends IClientSpeedWrapper implements IClientSpeed, IEventDispatcher
which says that it cannot coerce MyEvent@12345 to MyEvent??
What could be wrong?
TypeError: Error #1034: Type Coercion failed: cannot convert com.box.services::SpeedEvent@7c055e1 to com.box.services.SpeedEvent
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at com.box.services::ClientSpeed/::processReply()
at com.box.services::ServiceUtil$/onLoadCompleted()
at com.box.services::ClientSpeed/::onRequestCompleted()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at com.box.services::ClientSpeedRequest/::onRequestCompleted()
-----------------------------------------------------------------------------------------------------
The funny part is I can't find the words "ClientSpeedRequest" or "ServiceUtil" anywhere in the entire source code folder! So I don't know where these classes / methods or whatever come from.
SpeedEvent is a class declared like this:
final public class SpeedEvent extends MapEvent
ClientSpeed is a class declared like this:
final public class ClientSpeed extends IClientSpeedWrapper implements IClientSpeed, IEventDispatcher