flxeken
03-16-2005, 01:35 PM
Does anyone know if there is a function in actionscript to test if one expression contains another expression?
In director it was simply called "contains" and worked something like this:
test="felix"
fullName="felix af ekenstam"
if (fullName contains test){
trace(fullName+" contains "+test)
}
i have failed to get a simple thing like this to work with actionscript, i ahve to do very stupid long for loops to check everythin.. very annoying. Would be happy for some help..
Felix
In director it was simply called "contains" and worked something like this:
test="felix"
fullName="felix af ekenstam"
if (fullName contains test){
trace(fullName+" contains "+test)
}
i have failed to get a simple thing like this to work with actionscript, i ahve to do very stupid long for loops to check everythin.. very annoying. Would be happy for some help..
Felix