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 type
cast operations at runtime, like IUnknown:QueryInterface in COM? For
example:


public class B {}

...

var o:* = new ObjectProxy(new B());
var b:B = o as B;
trace(b); // <- writes "null"
   // but I am looking for solution to
   // hook type cast operation as well
   // in other words need in ActionScript 3
   // "universal delegate"

--
Thanks,
Vadim Melnik.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/







--
j:pn
http://www.lennel.org


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to