Attempt to link to the html page

I did a fla for an intro, but I want to create a link to click on that will take the Viewer to the next page of the Web site, which is an ordinary html page. I used the example to help him apply the actionscript code next to a button with a named instance of 'enterBtn '.

Set the framework
enterBtn.onRelease = function () {}
getURL (" http://www.mywebsite.net/mainframe.html", "_blank");
};

However, with the code above, I get the following error;
* Error * scene = scene 4, layer = glow behind FrameBTN, frame = 309:Line 2: statement must appear in the Manager
enterBtn.onRelease = function () {}

Total ActionScript errors: 1 reported errors: 1

> > I'm on the right track? Or I have to use the:

var listenerObject:Object = new Object();
listenerObject.onLoadInit = {function (target_mc:MovieClip)}
target_mc.onRelease = function() {}
getURL (" http://www.mywebsite.net/", "_blank");

Can someone help me please?
Thank you!

you're code is not attached to a frame. It is attached to an object.

to remedy this, copy the HTML code, click on a blank space on stage and paste your code into the Panel shares.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Settings for the outgoing (SMTP) mail server for icloud

    Settings for the outgoing (SMTP) mail server for icloud, please provide the setting advanced account. Thank you!

  • Helps the RAM for 15-D045NR

    Hello I think with the purchase of a 15-D045NR. The problem is that I can't find out if the RAM is expandable on this computer. It comes with 4 GB of Ram, but did not mention if it is expandable. I already bought a 15-d037dx, but I'll take it in the

  • DeskJet 3050 j610a - printing problems

    I have a Deskjet 3050 j610a, who is about to throw in the trash. Print quality has deteriorated so that color printing is catastrophic and I tried everything suggested in the documents on this forum and HP assistance. The ink levels are OK. The paper

  • The help of two LACP 5448

    Good day to all I have a Windows 2008 R2 using Broadcom Netxtreme II NICS file server. I have configured using the BroadCom Advanced Control Suite 4 Teaming. The two 5448 are configured using ports-channels to pass traffic to a pair of Dell (Force 10

  • HP pavilion g6 - 2289ee back free, what is the appropriate operating system?

    could someone answer my question please?