replaceText only works with text fields, so with variables, you would have to do it manually:
Actionscript Code:myvar = myvar.substring(0, targetString.indexOf("{"))+newString+myvar.substring(targetString.indexOf("}")+1, myvar.length);
Also, for the Script running slow message, that's usually caused by using a never-ending loop. You have somehow triggered an infinite loop somewhere in your code, try to look for it, something like a large for or while loop with an undefined conditional variable or two functions executing each other.




... and finally 18 :P
Reply With Quote