Thanks Drew, But after registering the BitmapData class, now the error
is that AMF is requiring zeros argument constructor but the BitmapData
requires atleast two argument.

Now the following error occurs:

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback setImgData.
error=ArgumentError: Error #1063: Argument count mismatch on
flash.display::BitmapData(). Expected 2, got 0.

-Ahmed


--- In flexcoders@yahoogroups.com, Drew Bourne <[EMAIL PROTECTED]> wrote:
>
> 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