Procedural Animation written by Rick Barraza,revised by Adam Kinney
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() ManagerHere is a sample Flash movIE that controls its particles with a single onEnterFrame() on the first KeyFrame.
更多.....
原文地址和下载:
http://channel9.msdn.com/continuum/tutorials/ProceduralAnimation/
总结以上是内存溢出为你收集整理的Silverlight 萤火虫 效果全部内容,希望文章能够帮你解决Silverlight 萤火虫 效果所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)