# Type Coercion failed: cannot convert MyEvent@12345 to MyEvent?

**URL:** <https://forum.kirupa.com/t/type-coercion-failed-cannot-convert-myevent-12345-to-myevent/300472>\
**Category:** flash\
**Created:** [November 21, 2009, 9:54pm UTC](https://forum.kirupa.com/t/type-coercion-failed-cannot-convert-myevent-12345-to-myevent/300472 "2009-11-21T21:54:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeldalink](https://avatars.discourse-cdn.com/v4/letter/z/94ad74/32.png) [@zeldalink](https://forum.kirupa.com/u/zeldalink)\
**Post date:** [November 21, 2009, 9:54pm UTC](https://forum.kirupa.com/t/type-coercion-failed-cannot-convert-myevent-12345-to-myevent/300472/1 "2009-11-21T21:54:11Z")

</div>

[FONT=Tahoma][SIZE=2]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??[/SIZE][/FONT]

[FONT=Tahoma][SIZE=2]What could be wrong? [/SIZE][/FONT]

[FONT=Tahoma][SIZE=2]TypeError: Error #1034: Type Coercion failed: cannot convert com.[/SIZE][/FONT][FONT=Tahoma][SIZE=2]box.services::[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2] **Event** @7c055e1 to com.box.services.[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]**Event  
 [/SIZE][/FONT][FONT=Tahoma][SIZE=2]at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at flash.events::EventDispatcher/dispatchEvent()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at com.box.services::Client[/SIZE][/FONT][FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]/::processReply()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at com.box.services:: **ServiceUtil** $/onLoadCompleted()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at com.box.services:: **Client** [/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]/::onRequestCompleted()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2]at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at flash.events::EventDispatcher/dispatchEvent()  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] at com.box.services:: **ClientSpeedRequest** /::onRequestCompleted()

* * *

The funny part is I can’t find the words [/SIZE][/FONT][FONT=Tahoma][SIZE=2]"[/SIZE][/FONT][FONT=Tahoma][SIZE=2] **ClientSpeedRequest** [/SIZE][/FONT][FONT=Tahoma][SIZE=2]" or “[/SIZE][/FONT][FONT=Tahoma][SIZE=2] **ServiceUtil** [/SIZE][/FONT][FONT=Tahoma][SIZE=2]” anywhere in the entire source code folder! So I don’t know where these classes / methods or whatever come from.  
[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]  
Speed[/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]**Event**[/SIZE][/FONT] is a class declared like this:

```auto
final public class **SpeedEvent** extends MapEvent

```

[FONT=Tahoma][SIZE=2]  
[/SIZE][/FONT][FONT=Tahoma][SIZE=2] **Client** [/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]** is a class declared like this:

```auto
final public class [FONT=Tahoma][SIZE=2] **Client** [/SIZE][/FONT]**[FONT=Tahoma][SIZE=2]Speed[/SIZE][/FONT]** extends IClientSpeedWrapper implements IClientSpeed, IEventDispatcher

```
