animationsequence.as

来自「著名的flash 3d引擎 away 3d的源代码」· AS 代码 · 共 47 行

AS
47
字号
package away3d.core.base{    import away3d.core.base.*;		/**	 * Holds information about a sequence of animation frames.	 */    public class AnimationSequence    {    	/**    	 * The prefix string defining frames in the sequence.    	 */        public var prefix:String;                /**        * Determines if the animation should be smoothed (interpolated) between frames.        */        public var smooth:Boolean;                /**        * Determines whether the animation sequence should loop.        */        public var loop:Boolean;    	        /**        * Determines the speed of playback in frames per second.        */        public var fps:Number;        		/**		 * Creates a new <code>AnimationSequence</code> object.		 * 		 * @param	prefix		The prefix string defining frames in the sequence.		 * @param	smooth		Determines if the animation should be smoothed (interpolated) between frames.		 * @param	loop		Determines whether the animation sequence should loop.		 * @param	fps			Determines the speed of playback in frames per second.		 */        public function AnimationSequence(prefix:String, smooth:Boolean = false, loop:Boolean = false, fps:Number = 24)        {            this.prefix = prefix;            this.smooth = smooth;            this.loop = loop;            this.fps = fps;        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?