Motion with slowdown and Book recommendations

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Motion with slowdown and Book recommendations

    Hi there.

    A 2 part actionscript question.

    1. I want to use actionscript to move an object from A to B and gradually
    slowing down as it gets to point B. I know how to move it in actionscript
    but not how to slow it down. Any pointers/tutorials on how I do this.

    2. Anyone recommend a good book with this sort of thing in it as tutorials.

    Thanks a lot

    James Brown


    James Brown Guest

  2. Similar Questions and Discussions

    1. Programming 3D book recommendations?
      Any recommendations of books on programming / working with director 3D? preferably for someone coming from a JavaScript / ActionScript background....
    2. Newbie looking for Flash Book recommendations
      Flash Newbie! I'm looking for a recommendation on a beginning Flash book. I'd like something like Adobe offers. That is, like the Classroom in a...
    3. PHP Book Recommendations
      Hi all. I am going to be teaching an introductory, course on PHP. As this course has not been offered before, there are no existing materials or...
    4. PS7 Book Recommendations
      Greetings... I've thoroughly digested the Adobe Photoshop 7 CIB title (in concert with my PS7 user manual), which was very useful. My question for...
    5. Book Recommendations
      Hi All, I have been a java/oracle/linux programmer for last 3+ years. I have to build an application using asp and Sql Server. I am fairly...
  3. #2

    Default Re: Motion with slowdown and Book recommendations

    you can use something like this
    function move(clip, targetX, targetY, speed) {
    clip._x += (targetX-clip._x)/speed;
    clip._y += (targetY-clip._y)/speed;
    if ((targetX-clip._x)<.1 && (targetY-clip._y)<.1) {
    clearInterval(myInterval);
    }
    }
    //example of use
    myInterval = setInterval(move, 20, mc1, 200, 200, 20);


    Some of the best books for this sort of thing are now a little out of date as
    they often don`t include setInterval. Have a look at the Friends of Ed series
    of books foundation actionscript and Studio Mx.

    stwingy Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139