jad
07-10-2006, 08:28 AM
hello,
with F9 Tween class seems not working? Someone can help or explain me? There is an error:
**Error** Scene 1, Layer 'Scripts', Frame 1 : Line 12, Column 7 : [Compiler] Error #1046: Type was not found or was not a compile-time constant: Tween.
var t:Tween = new Tween(this,10,200,1500,12);
ReferenceError: Error #1065: La variabile Timeline0_8eb6c9b2ba18d443808882ca858681e non è definita.
This is the fla code:
import mx.effects.Tween;
import mx.effects.easing.Bounce;
function onTweenUpdate(position:Number) {
clip_mc.x = position;
}
function onTweenEnd(endPosition:Number) {
trace("onTweenEnd");
}
var t:Tween = new Tween(this,10,200,1500,12);
t.easingFunction = Bounce.easeOut;
with F9 Tween class seems not working? Someone can help or explain me? There is an error:
**Error** Scene 1, Layer 'Scripts', Frame 1 : Line 12, Column 7 : [Compiler] Error #1046: Type was not found or was not a compile-time constant: Tween.
var t:Tween = new Tween(this,10,200,1500,12);
ReferenceError: Error #1065: La variabile Timeline0_8eb6c9b2ba18d443808882ca858681e non è definita.
This is the fla code:
import mx.effects.Tween;
import mx.effects.easing.Bounce;
function onTweenUpdate(position:Number) {
clip_mc.x = position;
}
function onTweenEnd(endPosition:Number) {
trace("onTweenEnd");
}
var t:Tween = new Tween(this,10,200,1500,12);
t.easingFunction = Bounce.easeOut;