Or for safety, if you're not sure where the C is coming from...
var aObj:A = new A();
var c:C=aObj.getObj();
if (c instanceof B)
{
trace(B(c).doB());
}On 5/23/06, Arnoud Bos <[EMAIL PROTECTED]> wrote: > > > do a downcast like this should prevent the compiler error: > > > var aObj:A = new A(); > trace(B(aObj.getObj()).doB()); > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
