dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: easy ? bout frame tweens vs. script anima

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Posts
    196
    hello

    im wondering if actionscript that animates will
    play back better than frame animation tweens.

    if you had a choice and wanted the swf to play
    back consistently from machine to machine
    which would you use: actionscript or tweens??
    visually the script will do the same thing as the
    tween. to me it seems actionscript is smoother.
    what are your thoughts on this? thanks.
    d.

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    515
    i don't really see that there would be much difference for a simple motion. for example, if you have an object moving 200 pixels to the left over 20 frames at 20 fps, it should look exactly the same whether you do it in AS or tweening.
    the advantages i see to AS are:
    1. you can customize exactly how it moves, accelleration, deceleration, gravity, bounce, etc. etc. etc. with AS, that would be pretty damn hard with tweening.
    2. you can add a lot more intereactivity and run-time decisions on what motion will occur, based on variables, user choices, etc.
    3. every tween and keyframe adds size to your file, whereas you can write a pretty complex AS function that will do all kinds of motion in under 1 or 2 k. you can't beat that with tweening.

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Posts
    196
    kp:
    thanks. those are in the lines that i was thinking.
    im dealing with is several tweend movie clips that
    just dont seem to run well when theyre all there
    on the root. it looks like i could have a bunch of
    movie clips moving with script and that would play
    back better than a bunch of tweend movies. no?
    thanks again.
    d

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Posts
    515
    it depends. basicly you have 1/12 of a second (operating at 12 fps) to calculate, move and display everything on the screen. if you have a lot of large or complex shapes moving around at the same time, it's going to bog down no matter what you use. but in general, due to what i said earlier, you will probably get better results with script, as long as you know what you are doing

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