/ Published in: ActionScript 3
navigateToURL () will be used often, it can open a new browser window, the page can also interact with the JS:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Open a new window: navigateToURL (new URLRequest ( “http://blog.activetofocus.comâ€, “_blankâ€); “_blankâ€: means the new window, you can also use “_self†to open the window and so on; Send email: navigateToURL (new URLRequest ( “mailto: blog@activetofocus.comâ€); Interaction with the js: * Direct the use of js: navigateToURL (new URLRequest ( “javascript: window.close ()â€)); * Call js function: navigateToURL (new URLRequest ( “javascript: MyJsFun (par. ..)â€));