Hi!
SharedWhiteBoard has event synchronizationChange and metadata tag declaration
[Event(name="synchronizationChange", type="com.adobe.rtc.events.CollectionNodeEvent")]
This metadata tag used by Flex compiler while generating ActionScript code and when I use this event in code like this one:
protected function sharedwhiteboard1_synchronizationChangeHandler(event:CollectionNodeEvent):void{
trace('IN SYNC:', this.whitebord.isSynchronized);
}
]]>
</fx:Script>
<rtc:SharedWhiteBoard id="whitebord" synchronizationChange="sharedwhiteboard1_synchronizationChangeHandler(event)"/>
I am expecting event CollectionNodeEvent, but instead of this, i'm receiving ordinary Event and this error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@342bdd1 to com.adobe.rtc.events.CollectionNodeEvent.
So, please, fix this things:
1. Add clone() method to event com.adobe.coreUI.events.WBModelEvent so while redispatching this event, it will not loose data
2. Instead of redispatching this event in com.adobe.rtc.pods.SharedWhiteBoard:333, make dispatch of CollectionNodeEvent event as described in metadata tag.