Hi Devis, There are string methods to make your life easier :),
Try indexOf(..), lastIndexOf(..) methods of String class.. var txt:String = "CIAO MONDO"; If(txt.indexOf("MONDO")!=-1) { //substring exists return true; }else { return false; } String.indexOf(..)@livedocs: http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001711.html String class @livedocs: http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001706.html Hope that helps... -abdul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 4:41 PM To: Flex Coders Subject: [flexcoders] ActionScript pos function Hi, exists in AS a function that retrive if a subString exists. For example var txt :String="CIAO MONDO"; //this is not ActionScript >0 SubString exists if(txt.pos('MONDO')>0) return true; else return false; Can you help me please Devis Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/