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

Stuck on inconsistent results with - this.gotoAndStop(1) Help me solve this. (HTML5 Canvas)

Explorer ,
Mar 03, 2020 Mar 03, 2020

Copy link to clipboard

Copied

ScreenMOmap.jpg

https://drive.google.com/open?id=1dFRqOs6-ekDvrtp232mwojGDznYYerfn

 

Having some issues with "this.gotoAndStop(1);  All the links in the menu on the right work.  They bring up the popup about each building by going to that frame. Then I have an action for that Popup to disappear when clicked by going back to frame 1.  Within the map movie, each building also calls up the same popups.  However, when I trigger the popups by clicking the buildings, which are in the "map" movie, they popup and appear as intended, but I cannot close them by clicking on them. A few do close but most do not. Once the popup is called and appears, why would it work when called up from the main timeline action, but not work when called up from the Map movie? The popup is the same and the action is the same but it seems to not bring up the action when triggered by the building buttons.  Even stranger is that if I bring the popup up by clicking the menu button, then closing it, then the building buttons will work and the popups will close.  As if that establishes the link to the action.

 

Also, another problem I am having is publishing to HTML5.  I have tried a few suggestions but no buttons work

 

Any insight on these issues would be very helpful.

 

Jim

TOPICS
Timeline

Views

432

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 ,
Mar 04, 2020 Mar 04, 2020

Copy link to clipboard

Copied

I personally prefer to give names to frames so that there is no confusion. Try it and see if that will solve your problem. Also you might consider enabling/diabling buttons depending of what you do. the code for that is:

this.buttonName.mouseEnabled = true;
// or 
this.buttonName.mouseEnabled = false;

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
Explorer ,
Mar 04, 2020 Mar 04, 2020

Copy link to clipboard

Copied

LATEST

I will definitely try that.  Do you know a simple code to use frame label rather than frame #

 

Here is what I was using.  So I have labeled frame 1 "frameone", but it doesn't work to just insert the name in the below code. 

 

 

this.detailClip_1.addEventListener("click", fl_ClickToGoToAndStopAtFrame_62.bind(this));

function fl_ClickToGoToAndStopAtFrame_62()
{
	this.gotoAndStop(1);
}

 

 

Many thanks for your help.

 

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