微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Silverlight 萤火虫 效果

 

Procedural Animation

Most designers have their wake up moment with programming Flash when they finally understand the power of onEnterFrame() to be interactive in a way that is impossible with timeline based tweens. The Flash Metaphor is one of a movie,with a master timeline that always run and every individual MovieClip being capable of having its own internal timeline running in parallel as well. In fact,you really can't get around it. A timeline is tightly coupled to every MovieClip,even if that timeline is only one frame long. But harnessing the constant and repetitive power of code attached to this onEnterFrame event gives you unprecedented and dynamic control that leaves sequential animations in the dust.

When using onEnterFrame() to control multiple animations on stage,you will usually first decide if you want one onEnterFrame() on the primary KeyFrame controlling all the "dumb" MovieClips,or if you want each MovieClip to be "smart" and calculate its own motion. Often,either solution would work so it may come down to developer preference. So let's look at both techniques and see how to duplicate them in Silverlight.

Duplicating a Single onEnterFrame() Manager

Here is a sample Flash movie that controls its particles with a single onEnterFrame() on the first KeyFrame.

更多.....

 

原文地址和下载:

http://channel9.msdn.com/continuum/tutorials/ProceduralAnimation/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐