Développement web indépendant à Montpellier

Publié le vendredi 10 avril 2009 14:50:00

Animation en Actionscript : Tween

Grâce aux classes Tween, on peut très facilement créer des animations dynamiquement en Flash avec Actionscript. Bien que l'utilisation de TweenLite ou TweenMax simplifie l'utilisation de la classe Tween, nous abordons en premier lieu l'utilisation de la classe Tween native.

Utilisation de Tween

Tween est la classe native fournie par Adobe pour créer des animations en Actionscript, son utilisation reste relativement simple; exemple, faisons bouger un clip (MovieClip) : la source de l'exemple sera à télécharger librement.

L'exemple montre une cible et une flèche, le but du jeu étant de déplacer dynamiquement la flèche vers le centre de la cible, au moment ou l'on clique sur un bouton monBouton.

Déplacez la cible ou vous le souhaitez, puis cliquez sur le bouton pour que la flèche se plante au centre :

Exemple d'utilisation de la classe Tween en Actionscript 3, la flèche se déplace vers le centre d'une cible.

Création de l'animation en Actionscript

Il suffit pour cela d'instancier un objet Tween, la flèche qui est un MovieClip, se déplace en hauteur et en largeur, nous allons donc pour la déplacer modifier ses attributs x et y pour qu'elle vienne se positionner au centre de la cible.

Importez tout l'abord la classe Tween :

import fl.transitions.Tween;

Puis lancez l'animation :

//new Tween(objet,attribut,methode de déplacement,état de départ, état d'arrivée, durée, utiliser les secondes comme unité);
var t:Tween = new Tween(this.fleche, "x", null, this.fleche.x, this.cible.x, 0.5, true);
var t2:Tween = new Tween(this.fleche, "y", null, this.fleche.y, this.cible.y, 0.5, true);

Pour plus de détail sur la classe Tween, reportez vous à la documentation officiel d'Adobe : Tween.

Ajout d'un callback à la fin de l'animation Tween

Il n'est pas rare de vouloir lancer une action à la fin d'une animation, dans l'exemple, vous constatez qu'une fois que la flèche a atteint (brillament) le centre de la cible, un message s'affiche pour vous féliciter. Nous allons donc nous servir des TweenEvent pour lancer cette action lorsque la flèche aura atteint son but :

t.addEventListener(TweenEvent.MOTION_FINISH, this.touche, false, 0, true);

La méthode touche() se chargera de féliciter l'utilisateur :

public function touche(evt:Event):void
{
    this.prompt.text = "Dans le mille ! félicitations ! ";
}

Attention la classe TweenEvent n'est pas situé dans le package flash.events.*, l'import à effectuer est le suivant :

import fl.transitions.TweenEvent;

Téléchargez la source FLA

tweens.zip 647,58 kB

Cette exemple contient :

  • La source FLA de l'animation Flash
  • La classe .as
  • le fichier SWF compilé

Conclusion

Il est très simple de créer des petites interpolations linéaires en Flash en utilisant la classe Tween native. Il existe néanmoins des librairies qui permettent d'étendre un peu le modèle et de le simplifier ; pour suivre une courbe de Bezier, ou manipuler plusieurs attibuts directement : il s'agit de TweenLite et TweenMax, dont nous aborderons l'utilisation dans un prochain article.

Articles connexes

Notez cet article !

  • Actuellement 5 sur 5 étoiles
  • 1
  • 2
  • 3
  • 4
  • 5

Note : 5/5 (2 notes attribuées)

Merci d'avoir participé !

Vous avez déjà noté cette page, vous ne pouvez la noter qu'une fois !

Votre note a été changée, merci de votre participation !

Bonne résolution ! j'arrête d'alourdir mes pages avec des boutons de partage, mais vous pouvez continuer de partager :-)

Commentaires

  1. Direct Ex... | direct express customer service |


    Merci pour cette information. Cela résout un problème pour une question que j'avais.

  2. Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us.
    http://...f-culture/

  3. Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.
    http://...l-fitness/

  4. I really impressed after read this because of some quality work and informative thoughts . I just wanna say thanks for the writer and wish you all the best for coming!

  5. Thanks for your information, it was really very helpfull.
    http://...ikepro.com

  6. Wow, cool post. I?d like to write like this too ? taking time and real hard work to make a great article? but I put things off too much and never seem to get started.

  7. Hi, I have scanned the greater part of your posts. This post is presumably where I got the most valuable data for my exploration. A debt of gratitude is in order for posting, possibly we can see more on this. Are you mindful of some other sites on this subject.
    http://...ion-today/

  8. You provide very useful data. This post give me lots of advise it is very useful for me. https:/...0253eea4be view here

  9. That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more.
    http://...-business/

  10. Positive site. where did u come up with the information on this posting?I have read a few of the articles on your website now. and I really like your style. Thanks a million and please keep up the effective workhttp://...launch.com

  11. by visiting this site I found cool stuff here keep it up.

  12. Such a nice post, keep providing good resources.

  13. Renu Das Kolkata Escorts Services has gorgeous females provides Independent Escorts Service in Kolkata call girls at 100% satisfaction with VIP models. Provided Kolkata escorts at our agency are professional in nature and are eager to serve you at your place.
    http://renudas.in/
    http://...renudas.in
    http://...-divas.com
    http://...outus.html
    http://...vices.html
    https:/...ness.site/
    https:/...w/renudas/
    http://...llery.html
    http://.../rate.html
    http://...actme.html
    http://...aqueen.com
    http://...adivas.com
    http://...vices.com/
    http://...corts.html
    http://...babes.html
    http://...llery.html
    http://...r-you.html
    http://...rvice.html
    http://...lkata.html
    http://...girls.html
    http://...lkata.html
    http://...lkata.html
    http://...lkata.html
    http://...lkata.html
    https:/...ness.site/
    https:/...elhidivas/
    http://...tiqueen.in
    http://...-divas.com
    http://...adivas.com
    http://...llery.html
    http://...vices.html
    http://...girls.html
    http://...ut-us.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...scort.html
    http://...corts.html
    http://...scort.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...babes.html
    http://...girls.html
    https:/...gspot.com/
    https:/...press.com/

  14. Renu Das Kolkata Escorts Services has gorgeous females provides Independent Escorts Service in Kolkata call girls at 100% satisfaction with VIP models. Provided Kolkata escorts at our agency are professional in nature and are eager to serve you at your place.
    http://renudas.in/
    http://...renudas.in
    http://...-divas.com
    http://...outus.html
    http://...vices.html
    https:/...ness.site/
    https:/...w/renudas/
    http://...llery.html
    http://.../rate.html
    http://...actme.html
    http://...aqueen.com
    http://...adivas.com
    http://...vices.com/
    http://...corts.html
    http://...babes.html
    http://...llery.html
    http://...r-you.html
    http://...rvice.html
    http://...lkata.html
    http://...girls.html
    http://...lkata.html
    http://...lkata.html
    http://...lkata.html
    http://...lkata.html
    https:/...ness.site/
    https:/...elhidivas/
    http://...tiqueen.in
    http://...-divas.com
    http://...adivas.com
    http://...llery.html
    http://...vices.html
    http://...girls.html
    http://...ut-us.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...scort.html
    http://...corts.html
    http://...scort.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...corts.html
    http://...babes.html
    http://...girls.html
    https:/...gspot.com/
    https:/...press.com/

  15. This article gives the light in which we can observe the reality. This is very nice one and gives in depth information. Thanks for this nice article.

  16. Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..

  17. facial ha... | facial hair removal epilator |

    You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!.

  18. Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..

  19. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.

  20. The post is written in very a good manner and it contains many useful information for me.

  21. This is highly information, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things.

  22. Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks

  23. Admiring the time and effort you put into your blog and detailed information you offer!..

  24. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.

  25. Ukrayna K... | Ukrayna Kiev Politeknik Üniversitesi |

    Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!

  26. Webroot.com/safe- Experience next-generation Security level with Webroot on your all devices. Install and activate webroot from www.webroot.com/safe and don’t forget to run webroot safe scan to feel secure anywhere.webroot.com/safe is a computer security software program for Microsoft Windows users that combine software as a service cloud protection with traditional Antivirus and anti-spyware desktop technologies. Built into the suite is a two-way firewall, a registry cleaner, Email anti-spam, secure browsing, anti-phishing and a password management service. The suite was initially released on July 26, 2010, as the 2011 version of the product.

    http://...t.com/safe

  27. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.

  28. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.

  29. This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.

  30. Website n... | Website nhap hang Mona Media |

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..

  31. If you are wondering what the Kroger Feedback Survey is, then it is basically a set of questions that you have to answer while going through the website

  32. I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.

  33. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!

  34. Marketing... | Marketing blog Bloeise |

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.

  35. Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,

  36. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

  37. water sli... | water slide rentals Cincinnati |

    Admiring the time and effort you put into your blog and detailed information you offer!..

  38. ranches f... | ranches for sale in Montana |

    Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!

  39. www.disco... | www.discoverquitoecuador.com |

    Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post!

  40. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..

  41. Cosplay (コスプレ kosupure), a contraction of the words costume play, is a hobby in which participants called cosplayers wear costumes and fashion accessories to represent a specific character.[1] Cosplayers often interact to create a subculture, and a broader use of the term "cosplay" applies to any costumed role-playing in venues apart from the stage. Any entity that lends itself to dramatic interpretation may be taken up as a subject and it is not unusual to see genders switched. Favorite sources include anime, cartoons, comic books, live-action films, television series and video games.
    http://...y-costumes
    http://...y-costumes
    http://...y-costumes
    http://...y-costumes
    http://...te-factory
    http://...y-costumes
    http://...ire-emblem
    http://...y-costumes
    http://...ay-costume
    http://...ay-costume
    http://...ostume-669
    http://...d-of-korra
    http://...y-costumes
    http://.../westworld

  42. This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.

  43. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share.

  44. Thanks you very much for sharing these links. Will definitely check this out..

  45. This is actually the kind of information I have been trying to find. Thank you for writing this information.

  46. I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article.

  47. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.

  48. I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, i am always look for people to check out my web site.

  49. small bus... | small business bookkeeping |

    Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share.

  50. get best and very popular quotes for your family.

  51. www.webroot.com/safe -24/7 technical support for Webroot antivirus, call us to get instant support on webroot installation issues Dial toll free 1-844-833-0610.
    https:/....org/safe/

  52. Where to seek out webroot Key Code? The Webroot security package is simple to setup & install at webroot.com/safe. Simply find 20-character alpha-numeric code that is...
    http://...-safe.org/

  53. Web-root -24/7 technical support for Webroot antivirus, call us to get instant support on webroot installation issues Dial toll free 1-844-833-0610.
    https:/...-root.org/

  54. Experience next generation Security level with Webroot in your all devices. Install and activate webroot from www.webroot.com/safe and don’t forget to run webroot safe scan to feel secure anywhere.
    https:/...-com-safe/

  55. www.webro... | www.webroot.com/safe | webroot/safe - download (windows 10) |

    User Guide for Installation of Webroot.com/safe Antivirus
    When you buy any antivirus product from this American brand, you can install the same on your device with ease. It is extremely convenient to install any of the security packages from Webroot with a few simple steps that you need to follow.

    1. To start with, you will have to download the antivirus software available at webroot.com/safe. This can be done with a powerful internet connection without a CD or DVD. You can also do this with the help of a retail card.

    2. Next step is accessing the unique 20 character alpha-numeric code (xxxx-xxxx-xxxx-xxxx) which is your product key. If you buy retail card, you will find this unique code on the backside of the card that you need to enter after you created your account and login.

    3. You can now Install Webroot with this Product Key by entering this unique product key. The installation process in now complete and you can click on the ‘Submit’ button.

    The Webroot.com/Setup Product Key makes it easy and convenient for all users to install antivirus without much help. However, if you run into any problem during the installation process, then here are a few tips for help.
    www.installwebroot.org/safe/

  56. www.webro... | www.webroot.com/safe | Activate webroot at webroot safe |

    Where to seek out webroot Key Code? The Webroot security package is simple to setup & install at webroot.com/safe. Simply find 20-character alpha-numeric code that is...
    http://...-safe.org/

  57. Webroot Support provides all-round assistance for Webroot Antivirus. As soon as you register yourself for the use of Internet facility and get the advantage of surfing the World Wide Web, you are open to innumerable threats transmitted to your system due to online browsing sessions. Encounter perfect malware blocking with Webroot Antivirus. Let Webroot Support with its techsmarties help you protect your system and rectify the security issues. We at Webroot Support , have team of experts who help you or guide through all the stages of Webroot installation process.
    http://...b-root.org

  58. webroot.c... | webroot.com/safe to get webroot safe setup |

    Webroot Support experts can lend their hand to download, install and update Webroot Spy Sweeper Antivirus on your system. We can also repair all errors that may crop up while installing and configuring Webroot Antivirus on your PC. We can help you detect and remove malicious threats, malware and spyware by performing a quick scan on all files and folders. With our robust technology, we can destroy suspicious programs and infected files from your system. Our antivirus experts can clean all online threats, including Trojan, root kits, key loggers, and worms in just single sweep. We can optimize your computer’s speed and efficiency and also protect it from being sluggish.
    http://...-com-safe/

  59. www.webro... | www.webroot.com/safe | webroot/safe - download (windows 10) |

    www.webroot.com/safe -24/7 technical support for Webroot antivirus, call us to get instant support on webroot installation issues Dial toll free 1-844-833-0610.
    http://....org/safe/

  60. www.webro... | www.webroot.com/safe | Activate webroot at webroot safe |

    Where to seek out webroot Key Code? The Webroot security package is simple to setup & install at webroot.com/safe. Simply find 20-character alpha-numeric code that is...
    http://...-safe.org/

  61. Webroot Support experts can lend their hand to download, install and update Webroot Spy Sweeper Antivirus on your system. We can also repair all errors that may crop up while installing and configuring Webroot Antivirus on your PC. We can help you detect and remove malicious threats, malware and spyware by performing a quick scan on all files and folders. With our robust technology, we can destroy suspicious programs and infected files from your system. Our antivirus experts can clean all online threats, including Trojan, root kits, key loggers, and worms in just single sweep. We can optimize your computer’s speed and efficiency and also protect it from being sluggish.
    http://...b-root.org

  62. webroot.c... | webroot.com/safe to get webroot safe setup |

    Webroot Support experts can lend their hand to download, install and update Webroot Spy Sweeper Antivirus on your system. We can also repair all errors that may crop up while installing and configuring Webroot Antivirus on your PC. We can help you detect and remove malicious threats, malware and spyware by performing a quick scan on all files and folders. With our robust technology, we can destroy suspicious programs and infected files from your system. Our antivirus experts can clean all online threats, including Trojan, root kits, key loggers, and worms in just single sweep. We can optimize your computer’s speed and efficiency and also protect it from being sluggish.
    http://...-com-safe/

  63. welcome to avg.com/retail website With the development of the digital world, online protection is crucial. It is extremely important to protect your PCs, Mac, computers as well as mobile devices and tablets with avg.com/retail. This can be done with the help of effective internet security and anti-virus products from avg.com/retail that safeguards all devices used on digital platforms.

  64. Visit www.norton.com/setup for setup, download, reinstall, enter and activate your norton product key to setup your account.Step-by-Step guide for Norton setup key, Download & installation from norton.com/setup website.

  65. niiiiiiiiice

  66. fsg4m6t@y... | درب ضد سرقت ترک |

    very nice and good article

  67. Free Mobi... | Free Mobile Page Generator |

    This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.

  68. The Indus... | The Industry of Business |

    Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject.

  69. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.

  70. I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog

  71. Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us!

  72. https://n... | https://namsonauto.vn/camera-hanh-trinh-o-to |

    Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.

  73. http://ba... | http://bassluresreview.com |

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.

  74. MyFamilyMobile is a part of Walmart, It is a publicly traded family-owned business, as the company is controlled by the Walton family. It is a retail industry and the headquarters of the company are located are Bentonville, Arkansas, United States. The company has totally 11,718 stores across the worldwide. Walmart is such a market chain where we can find all stuff we need of our life. The company sells famous phone brands.

  75. In September 2010, a beta steam wallet was released by the company.

  76. asdfasdf | capital one credit card application status |

    été retiré pour une obscure raison en actionscript 3, même si nous allons voir qu'il est toujours possible de les utiliser moyenn

  77. Merci pour votre merveilleux article. Où d'autre pourrait-on obtenir ce genre d'information d'une manière si idéale d'écrire? J'ai une présentation la semaine prochaine, et je suis à la recherche d'une telle information.

  78. This is really great work. Thank you for sharing such a useful information here in the blog.

  79. They are not able to finish the writing assignments on time. For some students, writing any writing assignments is able to waste their time

  80. KiK APK download is the upgraded version of KiK developed by the same developers who have the released the Kik windows application.

  81. http://an... | http://androidrootinghelp.com/ |

    Downlad and install iroot apk upgraded version of vRoot developed by the same developers who have the released the iRoot Windows application.

  82. iroot apk download is the upgraded version of vRoot developed by the same developers who have the released the iRoot Windows application.

  83. This is informative article.

  84. Excellent post! We are linking to this particularly great post on our website. Keep up the good writing. <a href="http://...ot;>gta 5 online money hack</a>

  85. Many apps don’t work in the lower version of Android mobile phone.

  86. Many apps don’t work in the lower version of Android mobile phone.

  87. This browser doesn't support Spotify Web Player. Switch browsers or download Spotify for your desktop. You can unlock all the premium features of Spotify with this spotify mod apk. Spotify premium APK Download is one of the best music streaming app out there.

  88. best electric shavers 2017 list, compiled by the experts. Buyer's Guide and Detailed reviews and what actually the product is offering

  89. Tonsils essentially incorporate various cells alluded as lymphocytes and these cells are in charge of delivering antibodies that shield from kid from respiratory illnesses

  90. very nice . thank you for sharing information

  91. removal o... | removal of tonsil stones in adults |

    Tonsil stones are mentioned to be a common condition which is tough to understand or diagnose

  92. If want to experience the game by giving an edge to other players, you should definitely explore the following tips and tricks

  93. IRS custo... | IRS customer service number live person |

    this is very great and brilliant information

  94. lingannak... | create new gmail account |

    Gmail has become a must have application for mailing. You can send and receive messages and emails to nonGmail accounts as well

  95. You are downloading You TV Player Latest APK v10.6 (122). Download You TV Player for PC and Run it on Windows 7/8/8.1/10 & Mac OS. It's very easy to install You TV Player iPhone App with the help of guide here.

  96. This article is an appealing wealth of informative data that is interesting and well-written. I commend your hard work on this and thank you for this information. You’ve got what it takes to get attention.

  97. Clash of... | Clash of Clans for Windows PC |

    Clash of Clans for PC: Among all the android games Clash of clans is the best real time game available in the google play store

  98. Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.

  99. this is truly pleasant to read..informative post is great to read..thanks a considerable measure!

  100. Extraordinary overview, I'm certain you're getting an awesome reaction.

  101. Ryan Cata... | Ryan Cataldo NJ Criminal Record |

    Continue the good work; keep posting more n more n more.

  102. Download... | Download Windows 10 Activation keys |

    Windows 10 Product Keys which will help you get the device run into your device.

  103. Kcn | Tween avec pilotage |

    Un GRAND Merci pour vos explications. Votre site est super :-))

  104. Les tweens ont de nombreux intérêt, en comparaison aux interpolations de mouvements...
    Déjà leur animation et mouvement sont plus fluide et on peux jouer avec plusieurs effets (bounce, elastic...) et vitesses.
    De plus, elles sont plus légéres en poid que les interpolations, ce qui reste un point intéressant, notament pour la création de banniére (pas ou trés peu de temps de chargement).
    Et ainsi pour faire déplacer des clips d'un axe x à un axe y, ça reste la meilleure chose :)

  105. Cela dépend de ce que vous souhaitez faire, avec une interpolation linéaire, vous ne pouvez que faire un parcours pré-établi, avec Tween, vous manipulez l'animation +/- comme vous le souhaitez.
    Il semble cela dit que Tween est relativement consommateur de ressources, en tout cas plus que les interpolations (notez que je l'ai constaté sur un projet AS2, ça a peut être changé en AS3).

    SI vous êtes graphiste et plus à l'aise avec les interpolations, utilisez-les, ce n'est pas une mauvaise pratique.

  106. Seb | Interpolation linéaire |

    Il vaut mieux utiliser l'interpolation linéaire ou la classe tween ?

  107. seb | Tween ou interpolation de mouvement ? |

    Il vaut mieux utiliser tween ou interpolation de mouvement ?