Đang chuẩn bị liên kết để tải về tài liệu:
Học Actionscript 3.0 - p 22
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Programmatic Tweening Reproducing Timeline Tweens with ActionScript The last thing we want to mention in this chapter is a companion website post about a feature that’s a bit out of the ordinary. As such, we intend it to be an additional resource for your continued study outside this book. In addition to scripting motion solely with code, it’s also possible to rebuild a Flash Professional timeline motion tween using ActionScript. At the very least, this is an interesting workflow between designer and developer—allowing a designer to carefully tweak an animation using traditional interface tools, and then turning the file over to a. | Programmatic Tweening Reproducing Timeline Tweens with ActionScript The last thing we want to mention in this chapter is a companion website post about a feature that s a bit out of the ordinary. As such we intend it to be an additional resource for your continued study outside this book. In addition to scripting motion solely with code it s also possible to rebuild a Flash Professional timeline motion tween using ActionScript. At the very least this is an interesting workflow between designer and developer allowing a designer to carefully tweak an animation using traditional interface tools and then turning the file over to a developer that can make the entire process more dynamic with ActionScript. At best it s a way for any Flash user to turn restrictive timeline tweens into code-based animations that are vastly easier to reuse and adapt. This process requires that a traditional timeline tween be created first and then Flash can break down the steps needed to reproduce the tween and write them to an XML document. ActionScript can then load the document parse the instructions and recreate the tween on the fly. The companion website http www.LearningActionScript3.com has a full tutorial including sample files in a post called Recreating Timeline Tweens with ActionScript so be sure to check it out. NOTE In this introduction we ve only scratched the surface of what the GreenSock Tweening Platform can do. Visit http www.greensock.com for details documentation interactive examples performance comparisons of other tweening engines and more. learningactionscript3 Packages As discussed multiple times in prior chapters one of the greatest benefits of learning object-oriented programming is the ability to quickly and easily reuse code. To that end we re going to evolve a small library of code as the book progresses to show you how to build reusable packages of your own. In this and every subsequent chapter we ll add a little code to this ongoing learningactionscript3 .