A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Animating Using Action Script

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    4

    Question Animating Using Action Script

    i have been using action script to make a simple sprite move from one edge of the stage to the other and decreasing in size at the same time and using easing, here is the script that i have made.

    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var myTween = new Tween(introanthead_mc, "_width", Strong.easeInOut, 1000, 100, 33, false);
    var myTween = new Tween(introanthead_mc, "_height", Strong.easeInOut, 1000, 100, 33, false);
    var myTween = new Tween(introanthead_mc, "_x", Strong.easeInOut, 13.7, 649, 33, false);
    var myTween = new Tween(introanthead_mc, "_y", Strong.easeInOut, 587.7, 292, 33, false);

    but the shape of the sprite does not stay the same size can you help??
    p.s.
    (and we don't want to use the time line)

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    100, 10, 33, false);
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center