/ Published in: ActionScript 3
- Get the charCode in a String
- Navigate to an external URL
- Navigate to an external URL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// get charCode in a String s = new String("Chris"); i = s.charCodeAt(0); // i = 67 // Navigate to external URL var targetURL:URLRequest = new URLRequest("http://yourhomepage.com/"); var target:String; // Open the link in.. target = "_self" // specifies the current frame in the current window. target = "_blank" // specifies a new window. target = "_parent" // specifies the parent of the current frame. target = "_top" // specifies the top-level frame in the current window. navigateToURL(targetURL,target);