• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error 1120 : Access of undefined property window

New Here ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

I keep getting the following error:

Screen Shot 2022-10-17 at 5.59.57 PM.png

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)

 

 

Views

111

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

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.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines