Hi Ahmed,

Try registering the flash.display.BitmapData class using the flash.net.registerClassAlias function. If I remember rightly you need to do this for any class besides Object that you want to pass through LocalConnection before passing any objects over the connection. You'll want to do it in both sides of the connection.

for example:

flash.net.registerClassAlias('BitmapDataAlias', BitmapData);

cheers,
Drew


On 08/01/2008, at 10:57 PM, Muhammad Ahmed Ullah wrote:

Hi,

When I try to pass BitmapData through the LocalConnection, I'm getting
the following error message:

"Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback setImgData.
error=TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to flash.display.BitmapData."

Is there any restrictions on the data-types for passing the data
though LocalConnection.

Any ideas in this regard?

Thanks,
Ahmed




Reply via email to