Mike T. Henderson

Interactive Design & Art Direction

Using String.search() in AS3: Determining Window Target in navigateToURL.

Jul 14 2009

I came across an instance the other day where I had a set of links; some of which where internal, while others where external. I wanted the internal links to open in the same window(target="self"), and the external links to open in a new window/tab(target="blank"). Since I was loading these links from an external json file, populated dynamically and displayed in Flash via a loop, the easy solution to determine the window target was to search for the internal domain name substring within the url string using String.search().

Continue Reading »

0 Posted under: Strings
Click to load more posts...