AScript: GetURL

From virtualMV2015wiki
Revision as of 18:13, 14 January 2015 by Hesperides (Talk | contribs) (1 revision imported)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Home  Flash11 (CS5) | Flash10 (CS4) <

GetURL is used to open an html page from Flash

Restrictions: You cannot open an html file on the local hard drive

Eg. The following works

popUp_btn.onRelease = function(){

whereas the following code doesnt

popUp_btn.onRelease = function(){

If you want to set the properties of the popup window

 popUp_btn.onRelease = function(){

and add the following code into the html file created that includes the call to the swf file

function fnPopup(strPage){
   var fnPopup =,"WinPopup","toolbar=no,menubar=no,\


1. Every time you "publish" you delete the JavaScript in html file !! 2. Check the errors in Flash (the windowopen command)

Resources: CBT Cafe (2009)[1], TechnicalLead (2009)[2]

Icon References.png References

  1. CBT Cafe (2009) Flash perfection: Pop-up Windows. Retrieved April 11, 2009 from
  2. TechnicalLead (2009) LearnFlash: Javascript Popup Windows. Retrieved April 11, 2009 from

AScript: GetURL. (2018). In virtualMV's ( Michael Verhaart ) wiki. Retrieved March 21, 2018, from    (zotero)