Linking from Actionscript to external web locations

Two lines of code are used in a function to have Flash load an external location.

This first line of code defines a variable.  You put where you want to go in this variable (swap Google out with wherever you want to go).

var request:URLRequest = new URLRequest("http://www.google.com");

This second line of code tells Flash to go to the variable you set.

navigateToURL(request, "_self");

 
 
copyright © 2004 - 11 cawd by steven herr. all rights reserved