1 Reply Latest reply on Mar 22, 2010 6:10 PM by Ned Murphy

    import tween help

    angryannoyance

      Keep in mind I'm using AS2 in Macromeida flash professional 8

       

      Okay here is what I have:

       

       

      import mx.transitions.Tween;

      import mx.transitions.easings.*;

       

      var startY:Number = hairtray2._y;

       

      hairbtn.onRollOver = function  () {

                new Tween(hairtray2."_alpha",Regular.easeOut,0,100,6,false);

                new Tween(hairtray2."_y",Regular.easeOut,startY,startY-10,6,false);

      }

       

      And here is what my output says

       

      **Error** Scene=Scene 1, layer=actions, frame=90:Line 7: Expected a field name after '.' operator.

                new Tween(hairtray2."_alpha",Regular.easeOut,0,100,6,false);

       

      **Error** Scene=Scene 1, layer=actions, frame=90:Line 8: Expected a field name after '.' operator.

                new Tween(hairtray2."_y",Regular.easeOut,startY,startY-10,6,false);

       

      Total ActionScript Errors: 2       Reported Errors: 2

       

       

      Yeah so I could really use an answer thank you.