Flex – How to identify if the Class reference is an interface?

Like Java, I want to know if my reference is declared as Interface.

function foo(classRef:Class ){

if(classRef.isInterface(){
//something
}

}

You can use AS3 Commons Reflect to get this information. Your function looks like this:

function foo(classRef:Class)
{
var type:Type = Type.forClass(classRef);

if (type.isInterface)
{
//something
}
}

Like Java, I want to know if my reference is declared as Interface. < p>

function foo(classRef:Class){

if(classRef.isInterface(){
//something
}

}

You can use AS3 Commons Reflect to get this information. Your function looks like this:

function foo(classRef:Class)
{
var type:Type = Type.forClass(classRef);

if (type.isInterface)
{
//something
}
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5855 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.