Skip to main content
Participant
October 28, 2013
Question

Syntax Error

  • October 28, 2013
  • 2 replies
  • 636 views

I'm getting the following three errors with a AS2 - AS3 conversion. Can anyone help me with cleaning up the code to get this running?

Symbol 'slidingMenu', Layer 'as', Frame 1, Line 34, Column 151084: Syntax error: expecting identifier before greaterthan.

slidingMenu.RollOverBoxes = function(boxNumber:Number) {

 

          for (var i:Number = 1; i<6; i++) {

                    var cBox:MovieClip = eval('box'+i);

                    if (i == boxNumber) {

                              new Tween(cBox, "_height", Strong.easeOut, cBox._height, big_height, time_for_animation, false);

                    } else if(i<>_root.link){

                              new Tween(cBox, "_height", Strong.easeOut, cBox._height, small_height+Math.random()*200, time_for_animation, false);

                    }

          }

};

Symbol 'slidingMenu', Layer 'as', Frame 1, Line 45, Column 221084: Syntax error: expecting rightparen before and.

slidingMenu.RollOutBoxes = function(boxNumber:Number) {

 

          for (var i:Number = 1; i<6; i++) {

                    var cBox:MovieClip = eval('box'+i);

                    if (i == boxNumber and i<>_root.link) {

                              new Tween(cBox, "_height", Strong.easeOut, cBox._height,small_height+300, time_for_animation, false);

                    }

          }

};

Symbol 'slidingMenu', Layer 'as', Frame 1, Line 63, Column 201084: Syntax error: expecting identifier before greaterthan.

if (i == boxNumber) {

                              this["title" + i]._visible=1;

                              _root.link_prev=_root.link;

                              if (_root.link <>boxNumber){

                              _parent["mov"+_root.link].gotoAndPlay("s2");

                              }

Thank you!

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
October 29, 2013

Replace "and" with &&

Ned Murphy
Legend
October 29, 2013

For the errors shown, start by replacing <> with !=