A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Actionscript VS. Tweening...

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    6
    I am new to Flash. But I have a basic understanding of OOP. My queestion is this: Is it better to have actionscript performing animation or motion tweening? Let's say I want to make a bogus equilizer where phoney bars move up and down to the sound of music that isn't playing. Is it better to make a MC where the bars are motion tweened or to use some elements in actionscript that can draw the lines and animate via code.

    My guess is actionscript. It seems as though that would be better (more efficient) than using motion tweens. Is that correct? What do you guys think?


  2. #2
    hmmm... being a man of tweening, i know it can take a while to get everything right. Coding it in actionscript could be more accurate and possibly quicker?
    I know it uses a hell of lot less frames than tweening.

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    6
    Another thought...

    When flash is performing its tweening, I am assuming that it doesn't impact the end result, i.e. in the swf of it. Except maybe size. But it also seems to be that the code version of it, would take less space, but at the same time, the client would have to process the code, right? What is the bigger down fall here?

    Just thoughts as I don't know what the he|| i am talking about!

  4. #4
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hi,

    To my mind if u simply need to move something here and there, then do it using actionscript. Its less heavy than a tween.

    In any case, I suggest u try out both methods...you will get a definite answer.

    Cheerio

    RanTen

  5. #5
    Senior Member FFF's Avatar
    Join Date
    Feb 2002
    Posts
    955
    Actionscript movement is superior to tweeening, less CPU intensive, feels more 'natural'. For some movements, they will both look the same, it really depends on what you need it for.

  6. #6
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    Actionscript! every chance ya get..ONLY if you cant achive the desired efect with AS would I tween. It keeps the files size WAY down..and also I believe tweens are compiled on the fly..where as AS is usually just MATH of some sort...and very quick.

    Now I just need to get better with my AS....lol


    -whispers-

  7. #7
    Junior Member
    Join Date
    Jul 2002
    Posts
    6
    Cool. Thanks guys... I will have to try both out, but I can see that the real power in flash is in its actionscript!

  8. #8
    Junior Member
    Join Date
    Jul 2002
    Posts
    6

    hhhmmm...

    I just realized you have know what you want before you sit down with flash. I thought I would pick it up and make some cool shiz. But I am finding, I am not as smart as I thought I was, and this program makes me feel stupid!

    But in a good way; like a woman!

  9. #9
    Planet Claire Embassator herr_dada's Avatar
    Join Date
    May 2002
    Location
    53 miles west from Venus
    Posts
    419
    watch out brisavgab!! your footer can only be 300x40, if you dont correct it, a mod will come after you, and rip your head off!!! LOL

  10. #10
    Member
    Join Date
    Sep 2002
    Posts
    31
    i didn't know you can making animations with actionscripts!!! how on earth do you do that?

  11. #11
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    I was aware you could use AS for animation, but where do you start learning how? Any good books to get me started?

  12. #12
    Welcome to flavour country
    Join Date
    Sep 2000
    Posts
    662
    I find if you're doing something simple then a tween is the way to go. Of course, there are some things a tween can't do (easily) and that's when actionscript comes in handy.

    Just to get you started, create a movieclip and place it on the stage. Give it an instance name, click on it and open the actionscript editor (I'm going to assume you're using flash 5) and enter this code:

    Code:
    onClipEvent(enterFrame){
    this._x+=5;
    }
    Crude and simple, but a starting point.

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