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

HTML5 Click on a Button to Make Visible, Troubleshoot?

Community Beginner ,
Apr 30, 2018 Apr 30, 2018

Copy link to clipboard

Copied

I am fairly new to HTML5 and coding in general, so I'm completely bamboozled as to why this bit of code is causing my interactive graphic to crash (not in general, but it won't let me click onto this frame). The error is in the highlighted block of code; when I cut it out, it work normally.

A quick explanation of what I'm trying to do: When you click the button "ul_003_btn", it should make the MC "info_003" and the button to close it visible, and then when you click the close button it makes them invisible. I've verified that the instance names are the same. Any thoughts?

Capture.JPG

Views

364
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

correct answers 1 Correct answer

LEGEND , May 02, 2018 May 02, 2018

If you'd opened the browser developer console, you would have seen exactly which line was causing the error.

Also, the digit 1 and the lowercase letter L look almost identical in that font, so maybe there was a "u1_003" in there somewhere.

Votes

Translate
LEGEND ,
Apr 30, 2018 Apr 30, 2018

Copy link to clipboard

Copied

*cough*bind

Votes

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 Beginner ,
May 01, 2018 May 01, 2018

Copy link to clipboard

Copied

Ok, I added the missing bind after "ul_003_close", but my graphic still crashes when it loads.

Votes

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 ,
May 01, 2018 May 01, 2018

Copy link to clipboard

Copied

Okay, which line are you getting the error message on?

Votes

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 Beginner ,
May 02, 2018 May 02, 2018

Copy link to clipboard

Copied

Ok, I went back and re-inserted my code using snippets and it works now. I compared both and couldn't find a single letter difference between the code that crashed and the code that worked, but there must have been a stray capital or something somewhere in there. Such are the wily ways of JS in Animate 😛

Votes

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 ,
May 02, 2018 May 02, 2018

Copy link to clipboard

Copied

LATEST

If you'd opened the browser developer console, you would have seen exactly which line was causing the error.

Also, the digit 1 and the lowercase letter L look almost identical in that font, so maybe there was a "u1_003" in there somewhere.

Votes

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