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

Canvas HTML DOM getElementById() of specific movieclip

New Here ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

Hey guys, I'm using Animate 2020 publishing export into HTML5 canvas for Google banners. One of the requirements of the platform is to stop all animation after clickthrough. In order to do so, I would like to do the following. 

 

After publishing *.fla file, inside resulting HTML document I would like to use getElementById() function to access certain movie clip called "mcHolder" at making it gotoAndStop() to a specific frame called "last_frame". So I'm trying to access it this way. This is how exportroot is defined by the publishing process

 

 

exportRoot = new lib._20Q2_BANNER_300x250_NL();

 

 

Any suggestions on how to make it work? This one below can not do the job.

 

 

exportRoot.mcHolder.children[0].gotoAndStop('last_frame');

 

I understand that this question is more coding related than animation. But maybe someone already figured it out.

 

kind regards, Tania

TOPICS
Code

Views

253

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
no replies

Have something to add?

Join the conversation