A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Tweening vs Scripting

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    524

    Tweening vs Scripting

    Anyone have some theory and or facts to back up that scripting is better than tweening?

    Looking for tutorials on acheiving the same effects that a tween has yet done through scripting.

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Make one of each, then publish a size report. AS fade tweens at least, are much less processor intense.

  3. #3
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789

  4. #4
    I figured out a single-VAR, easing, tween-function. You can use the code to tween ANY variable, but if you point to _x or _alpha or _y then it causes a visual tween. If you want the code ill give it to ya. Its fairly simple, u just set tatgetX (for example) and if targetX != currentX then moveAlittlebit.

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    524
    Originally posted by mattm@slicker
    I figured out a single-VAR, easing, tween-function. You can use the code to tween ANY variable, but if you point to _x or _alpha or _y then it causes a visual tween. If you want the code ill give it to ya. Its fairly simple, u just set tatgetX (for example) and if targetX != currentX then moveAlittlebit.

    That would be great and I think it would help alot of people on here.

  6. #6
    here is a quick little demo. The code could probably be improved, but I dont have the time. If anyone converts this into a better function, let me know.
    Attached Files Attached Files

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