Skip to main content
Inspiring
November 7, 2019
Answered

Flash > HTML5 conversion: getURL() equivalent?

  • November 7, 2019
  • 1 reply
  • 612 views

I have the task of converting an old Flash movie with Actionscript 1 to HTML5.  I am not expert in javascript, so seeking some help...

May I ask what is the equivalent of the actionscript global function, getURL() in javascript?

e.g.

myFinishButton.onRelease = function() {
   getURL("myPage.asp", "_parent");
};

 

many thanks,
Geoff

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

 

It's window.open().

 

For example:

this.yourButton.on("click", function(e)
{
    window.open("https://www.adobe.com", "_parent");
});

 

I hope this helps.

 

 

Regards,

JC

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
November 7, 2019

Hi.

 

It's window.open().

 

For example:

this.yourButton.on("click", function(e)
{
    window.open("https://www.adobe.com", "_parent");
});

 

I hope this helps.

 

 

Regards,

JC

GmRAuthor
Inspiring
November 7, 2019

Perfect, thanks so much, JC.

regards,

Geoff