Copy link to clipboard
Copied
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 15 | 1084: 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 22 | 1084: 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 20 | 1084: 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!
Copy link to clipboard
Copied
For the errors shown, start by replacing <> with !=
Copy link to clipboard
Copied
Replace "and" with &&
Find more inspiration, events, and resources on the new Adobe Community
Explore Now