4 Replies Latest reply on Jan 10, 2014 12:15 AM by carta mundi

    Mouseout syntax error

    carta mundi Level 1

         Hello, i'm getting this error

       

      syntax error at line 5 in "rectkate.mouseout" on "Stage": Mismatched braces

       

      but this is a copy for serval others mouseout-commands...which are getting No problem??

       

      this is the function:

       

      // play the timeline from the given position (ms or label)

      sym.play("ckate");

       

       

       

      and this is in an other command:

       

      // play the timeline from the given position (ms or label)

      sym.play("cdisc");

       

       

       

      As i can see exactly the samen???

       

      ( Is there a maximum on the click and label commands? i've made several commands, most of the with mouseover en mouseout,

      but when i maken a click-command, nothing happend??

      When i make the exactly in a new document it works??

       

      very strange...or does it have to do, with the other error??

        • 1. Re: Mouseout syntax error
          resdesign Adobe Community Professional & MVP

          This must be somewhere else. If you have a red cross at the bottom of your stage, click on it and then on the little arrow to direct you to the offending line. Then correct the error. If you do not know what it is, give us a screenshot of the code window.

          Thanks.

           

          code error.png

          1 person found this helpful
          • 2. Re: Mouseout syntax error
            carta mundi Level 1

            Thanks. I saw that

             

            The lines in my topic are copied from that...and i see no strange things

            • 3. Re: Mouseout syntax error
              resdesign Adobe Community Professional & MVP

              You can have as may play() as you want but not at the same place because you cannot play 2 labels at the same time unless they are labels of different symbols

              You can make an array of the labels on your timeline and then use that to call the play actions

               

              var myLabels = ['ckate','cdisc','otherLabelName1','otherLabelName2','otherLabelName3'];

               

              then

               

              sym.$(myLabels[i]).play();

               

              There must be an error somewhere else maybe.

              1 person found this helpful
              • 4. Re: Mouseout syntax error
                carta mundi Level 1

                Thanks, i'm not so good in this code...

                 

                The animation works good, only the error is ignoring on the edit-screen...but no major problem.

                strange things, the error-good, is copied from another which is good..

                 

                What you suggest, is that better, or better for the overview when you use the code?

                where must i put it, or is better to do not so, when you aren't familiar with the code?

                 

                Below, you find the 415 lines of code, maybe you can see it, where it go wrong?

                It is an animation of 1 minute..with use of several sound effects, and almost at the end, 1 minute: stays "play form 0"

                and half-way i want to create a label, when it cliked jump after this minute.. (i've you want i can also send you the .oam ( 987kb ))

                 

                thanks anyway

                 

                 

                 

                ------------

                 

                /***********************

                * Adobe Edge Animate Composition Actions

                *

                * Edit this file with caution, being careful to preserve

                * function signatures and comments starting with 'Edge' to maintain the

                * ability to interact with these actions from within Adobe Edge Animate

                *

                ***********************/

                (function($, Edge, compId){

                var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes

                 

                 

                   //Edge symbol: 'stage'

                   (function(symbolName) {

                     

                     

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 20000, function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play(0);

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectdisc}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("ldisc");

                        

                 

                 

                      });

                      //Edge binding endSymbol.bindElementAction(compId, symbolName, "${_rectdisc}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cdisc");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                     

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectbritney}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lbritney");

                        

                 

                 

                      });

                      //Edge binding endSymbol.bindElementAction(compId, symbolName, "${_rectbritney}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cbritney");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                     

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectkate}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lkate");

                        

                 

                 

                      });

                      //Edge binding endSymbol.bindElementAction(compId, symbolName, "${_rectkate}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("ckate");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                     

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectempire}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lempire");

                        

                 

                 

                      });

                      //Edge binding endSymbol.bindElementAction(compId, symbolName, "${_rectempire}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cempire");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                     

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 48750, function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play(0);

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 41750, function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play(0);

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 33750, function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play(0);

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 60000, function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play(0);

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 5000, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/punch.ogg' type='audio/ogg' /> <source src='sounds/punch.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 13750, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/punch.ogg' type='audio/ogg' /> <source src='sounds/punch.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 8135, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 8649, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 9133, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 9660, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 10134, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 10638, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 11138, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/swooshie.ogg' type='audio/ogg' /> <source src='sounds/swooshie.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 199, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 701, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1196, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1700, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 2205, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 2701, function(sym, e) {

                         sym.play();

                         newSound = new Audio();     

                         newSound.innerHTML = "<source src='sounds/snare.ogg' type='audio/ogg' /> <source src='sounds/snare.mp3' type='audio/mpeg' />";

                         newSound.volume = 0.3;

                         newSound.loop = false;

                         newSound.play();

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectbritneyCopy}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cbritney");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectbritneyCopy}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lbritney");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectkateCopy}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("ckate");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectkateCopy}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lkate");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectempireCopy}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cempire");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectempireCopy}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("lempire");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectdiscCopy}", "mouseout", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("cdisc");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_rectdiscCopy}", "mouseover", function(sym, e) {

                         // play the timeline from the given position (ms or label)

                         sym.play("ldisc");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                     

                 

                 

                      Symbol.bindElementAction(compId, symbolName, "${_Ellipse4}", "click", function(sym, e) {

                        

                         // insert code for mouse click here

                         // play the timeline from the given position (ms or label)

                         sym.play("volgende");

                        

                 

                 

                      });

                      //Edge binding end

                 

                 

                   })("stage");

                   //Edge symbol end:'stage'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'streep'

                   (function(symbolName) {  

                  

                   })("streep");

                   //Edge symbol end:'streep'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'zaterdag'

                   (function(symbolName) {  

                  

                   })("zaterdag");

                   //Edge symbol end:'zaterdag'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'vrijdag'

                   (function(symbolName) {  

                  

                   })("vrijdag");

                   //Edge symbol end:'vrijdag'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'donderdag'

                   (function(symbolName) {  

                  

                   })("donderdag");

                   //Edge symbol end:'donderdag'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'woensdag'

                   (function(symbolName) {  

                  

                   })("woensdag");

                   //Edge symbol end:'woensdag'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'dinsdag'

                   (function(symbolName) {  

                  

                   })("dinsdag");

                   //Edge symbol end:'dinsdag'

                 

                 

                   //=========================================================

                  

                   //Edge symbol: 'maandag'

                   (function(symbolName) {  

                  

                   })("maandag");

                   //Edge symbol end:'maandag'

                 

                 

                })(jQuery, AdobeEdge, "EDGE-179763297");