Skip to main content
Participant
October 17, 2022
Question

Error 1120 : Access of undefined property window

  • October 17, 2022
  • 2 replies
  • 186 views

I keep getting the following error:

This is the code I have:

 

this.button_1.addEventListener("click", fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage() {
window.open('http://www.adobe.com', '_blank');
}

 

I am trying to save as mp4 (Its not saving either)

 

 

    This topic has been closed for replies.

    2 replies

    Colin Holgate
    Inspiring
    October 17, 2022

    I copied your code into a new HTML5 Canvas FLA (and made a button with the right name), and it worked fine. Are you using an HTML5 Canvas FLA?

    When you said save as mp4, did you mean export to video? If you're animating to export to video, using an ActionScript 3.0 FLA would give you more features and better quality.

    Participant
    October 17, 2022

    I have no idea - I have not used animate before. I am using files someone else created and it looks like they saved them as .mp4. 
    Yes. I tried to export to video. The files will be used as banners for display ads.

     

    kglad
    Community Expert
    Community Expert
    October 17, 2022

    you need to use an html5/canvas project to use javascript code, or use as3 code with an as3 project.

     

    p.s. the better url is https://www.adobe.com

     

    p.p.s. mp4's are not interactive so it makes no sense to code a button (or anything else) in a video.

    Participant
    October 17, 2022

    I created a new documet thats an html 5 project. Its still giving me the same error.

     

    kglad
    Community Expert
    Community Expert
    October 17, 2022

    that doesn't make sense. there is no 1120 error in canvas. that's an actionscript error.

     

    in fact, you can't even test a canvas project in animate. you tesf in your default browser.