AS2 to AS3 help!
Hello,
I'm only a beginner at coding and need to migrate AS2 code to AS3 code. I get this error code: 'Call to possibly undefined method eval.' and don't know how to fix it.
Below is just a section of the code where the error is- but if you need the whole thing I can send that too.
Thanks
};
foam_btn.onRelease = function() {
// this._visible = false;
videoLoop_mc.gotoAndPlay("exit");
triangle_mc.gotoAndPlay("oxygenHeat");
new Tween(eval(currentExt), "alpha", None.easeNone, 100, 0, fadeTime, false);
currentExt = "foamInfo_mc";
new Tween(eval(currentExt), "alpha", None.easeNone, 0, 100, fadeTime, false);
currentFactor = "oxygen_mc";
new Tween(eval(currentFactor), "alpha", None.easeNone, 100, 0, fadeTime, false);
currentFactor = "heat_mc";
new Tween(eval(currentFactor), "alpha", None.easeNone, 100, 0, fadeTime, false);
nextFade();
foamTrigger = true;
buttonDisable();
this.gotoAndStop(1);
visited(foam_btn,foamTrigger);
twoFactors = true;
};
