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

Syntax Error

New Here ,
Oct 28, 2013 Oct 28, 2013

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!

TOPICS
ActionScript
618
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 ,
Oct 28, 2013 Oct 28, 2013

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

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 ,
Oct 28, 2013 Oct 28, 2013
LATEST

Replace "and" with &&

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