Hey,
Is it possible to use this when its in a class? i'm getting errors when trying the simplest example with this class:
"ReferenceError: Error #1069: Property startTotal not found on PriceCalculator and there is no default value."
package {
import flash.display.MovieClip;
import com.greensock.TweenMax;
import com.greensock.easing.*;
public class PriceCalculator extends MovieClip {
var startTotal:Number = 100;
var newTotal:Number = 200;
public function PriceCalculator() {
}
public function updatePrices():void {
TweenMax.to(this, 2, {startTotal:newTotal, onUpdate:updateTotal});
function updateTotal(){
trace(startTotal)
}
}
}
}
is there any way round this?
Cheers
Neil