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

Html5 canvas quiz problem

Community Beginner ,
Sep 01, 2017 Sep 01, 2017

Copy link to clipboard

Copied

My project has 5 frame 1:video 2:image 3:image 4:quiz 5:image  problem is quiz reply :

i  create a "Reply1" movieclip(image+text) in main timeline frame4

and open it  and create "Reply1in" movieclip goto frame 5 Blue button change red button

and code is 

this.stop();

this.movieClip_9.addEventListener("click", fl_ClickToGoToAndStopAtFrame_18.bind(this));

function fl_ClickToGoToAndStopAtFrame_18()

{

this.gotoAndStop(4);

}

everything is ok but when i navigate main timeline 01234 4321 etc. my quiz buttons flick one second red and blue, what is the problem ?

Views

569

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

correct answers 1 Correct answer

LEGEND , Sep 01, 2017 Sep 01, 2017

There are a few things that could be causing this, but basically they're all bugs in the way CreateJS handles returning to a movieclip that used to be on the stage. Unfortunately it's not easy to fix, because the affected movieclip has no way of knowing what's happened to it. Sometimes the code in the first frame will run, sometimes it won't. Sometimes the movieclip will autoplay, sometimes it won't.

Votes

Translate

Translate
LEGEND ,
Sep 01, 2017 Sep 01, 2017

Copy link to clipboard

Copied

There are a few things that could be causing this, but basically they're all bugs in the way CreateJS handles returning to a movieclip that used to be on the stage. Unfortunately it's not easy to fix, because the affected movieclip has no way of knowing what's happened to it. Sometimes the code in the first frame will run, sometimes it won't. Sometimes the movieclip will autoplay, sometimes it won't.

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 ,
Sep 02, 2017 Sep 02, 2017

Copy link to clipboard

Copied

LATEST

Check out this tutorial and see if that can help you. Animate CC(HTML5) self scoring simple multiple choice quiz. - YouTube

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