PDA

Volledige versie bekijken : probleem met tutorial


clemens
%Europe/Berlin %765 %2005, 18:22
Ik volg een tutorial bij kirupa.com over tween class, nou heeft hij een voorbeeld as die hij gebruikt in een animatie, alleen als je deze animatie laat uitvoeren geeft hij telkens errors:

**Error** Scene=Scene 1, layer=actions, frame=1:Line 5: There is no property with the name 'onMotionFinished'.
xScaleT.onMotionFinished = function() {

**Error** Scene=Scene 1, layer=actions, frame=1:Line 8: There is no property with the name 'onMotionFinished'.
xPosT.onMotionFinished = function() {

Total ActionScript Errors: 2 Reported Errors: 2


Die stuk as wordt gebuikt:


import mx.transitions.Tween;
import mx.transitions.easing.*;
var xScaleT:Tween = new Tween(kText, "_rotation", Elastic.easeOut, 0, 360, 3, true);
var xPosT:Tween = new Tween(kText, "_x", Bounce.easeOut, 0, Stage.width, 3, true);
xScaleT.onMotionFinished = function() {
this.yoyo();
};
xPosT.onMotionFinished = function() {
this.continueTo(Stage.width / 2, 3);
};


wat is nu precies fout aan dit stuk as, want kan nu nl niet verder met tutorial.