The FindURL() Class (v1.2)
I’ve updated the FindURL class because a couple of people were asking for the ability to target a new browser window. The class can be completely overwritten and shouldn’t affect any old code that you may have produced…it targets the same window as default.
However if you want to target a new browser window you can now do so by adding an additional parameter…”_blank”. See the example below:
var input:String = "blah blah blah http://www.burnedouthippy.com blah blah blah";
var fU:FindURL = new FindURL(input, "_blank");
var output:String = fU.Process();
If you run a trace on output, you’ll see that the new string has HTML a tags inside it and it also now targets a new browser. You can change “_blank” for any other HTML target and it should work just fine…alternatively, completely leave out the second parameter and it will automatically target “_self”.

