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

2006-04-19 Thread Johannes Nel
have you tried an explicit coercion?var o:* = new ObjectProxy(new B());var b:B = B(o);On 4/19/06, Vadim Melnik [EMAIL PROTECTED] wrote:Hi All,flash.util.Proxy/mx.utils.ObjectProxy classes allow us to override properties access, methods call etc. Is it possible to override typecast operations

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

2006-04-19 Thread Peter Farland
ObjectProxy is a Flex specific subclass of Proxy for wrapping anonymous Objects that are dynamic and can't be predictably made bindable to report property change events. It shouldn't be used to wrap typed objects like instances of B (see later). You can never cast ObjectProxy to B... the as