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

Help a dummie out- scenes

New Here ,
Sep 04, 2017 Sep 04, 2017

Hi,

I am very new to Animate and get given an error to this:

button1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);

function fl_ClickToGoToScene(event:MouseEvent):void

{

MovieClip(this.root).gotoAndPlay(1, "Scène 3");

}

stop();

Error: 1021 duplicate function definition.

Hoping someone more skilled will be able to tell me what to do Thanks in advance

TOPICS
ActionScript
292
Translate
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 ,
Sep 04, 2017 Sep 04, 2017

That error is telling you that you have more than one function named fl_ClickToGoToScene() in your movie file. Each function has to have a unique name. So, if you are using this code snippet more than once in your movie, then you should append something to the name to make it unique. You could append a number like: fl_ClickToGoToScene1() for instance.

Translate
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 ,
Sep 04, 2017 Sep 04, 2017
LATEST

In your Publish Settings is an option to Allow Debugging. Check that box, then the error should tell you what line to look for to fix the problem.

Translate
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