[flexcoders] Re: How to override type cast operator @ runtime?

2006-04-20 Thread Vadim Melnik
Thanks for information, sorry it was incorrect question, it was not related to ObjectProxy. I wanted to create special object wrapper, overriding flash.util.Proxy methods and forwarding all calls to inner object, something like ObjectProxy does. But instead ObjectProxy it will only trace

RE: [flexcoders] Re: How to override type cast operator @ runtime?

2006-04-20 Thread Peter Farland
... See ASDoc for rest of methods from Proxy that can be overridden... } } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik Sent: Thursday, April 20, 2006 4:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to override

[flexcoders] Re: How to override type cast operator @ runtime?

2006-04-19 Thread Vadim Melnik
have you tried an explicit coercion? Yep, it produced runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to B -- Thanks, Vadim Melnik. --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: have you tried an

Re: [flexcoders] Re: How to override type cast operator @ runtime?

2006-04-19 Thread Johannes Nel
i have seen this eact behaviour when deserilazing something from a bytearray as well :(On 4/19/06, Vadim Melnik [EMAIL PROTECTED] wrote: have you tried an explicit coercion? Yep, it produced runtime error:TypeError: Error #1034: Type Coercion failed: cannot convertmx.utils::[EMAIL PROTECTED]