Here is the tips to find a string in a given string. In action script, there is no function available like "instr()" in VB. to find a string we need to write a function like ..
function IsStr(SourceStr:String,FindStr:String):Number
{ var dumArr:Array=new Array();
dumArr=SourceStr.split(FindStr);
if (dumArr.length==1)
{ return -1;
}
else
{ var ActualStr:String=dumArr[0];
return ActualStr.length;
}
}
The above sample function will return a pos of the find string in the source string and if it is not found, then it will return -1.
hope it will be useful for you.
thanks
