ActionScript instanceof for dynamic interface
Posted
by Bart van Heukelom
on Stack Overflow
See other posts from Stack Overflow
or by Bart van Heukelom
Published on 2010-03-08T12:48:31Z
Indexed on
2010/03/08
12:51 UTC
Read the original article
Hit count: 465
interface If { ... }
class Impl implements If { ... }
function test(type:Class, obj) {
return obj instanceof type;
}
test(If, new Impl()); // returns false. why, and how to do it right?
© Stack Overflow or respective owner