flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: Changing object's type without casting
Date Wed, 30 Oct 2013 17:34:26 GMT
If you can change the code of the other type, the best is to reference it through an interface,
instead of the actual type, and then implement this interface in the first type as well, (cf.
Wrapper/Adapter design pattern).

If you can't, or prefer to avoid it, sorry I can't help.

Maurice 

-----Message d'origine-----
De : mark goldin [mailto:markzolotoy@gmail.com] 
Envoyé : mercredi 30 octobre 2013 16:43
À : users
Objet : Changing object's type without casting

Is it possible to make an object of a some type exposing itself as of another type without
casting?
Extending Proxy is what I need to look into?

Thanks

Mime
View raw message