Why isn’t this working? It is just some simple button code to keep track of what section I have alpha’ed up. When I trace currContents it says undefined.
var currContents:String = "contents";
with(buttons) {
b2.onRelease = function() {
if(_root.currContents != "contents2"){
var button2:Tween = new Tween(eval(_root.currContents), "_alpha", Strong.easeOut, 100, 0, .4, true);
_root.currContents = "contents2";
trace(eval(_root.currContents));
button2.onMotionFinished = function() {
var button2:Tween = new Tween(_root.contents2, "_alpha", Strong.easeOut, 0, 100, .4, true);
};
}
};
}