Hey all,

I am trying to make sure that a object passed to my method has to be of type
String so I did


function methodA (val:String):void{

   if (val is String){
        trace (" I am string");
   }

   trace(typeof(val));


}


if I pass this to the method var t:* = new AnyClass();

it traces out
I am string
string


is there a way to make sure that the param passed to my method is of type

thanks
firdosh

Reply via email to