[prev in list] [next in list] [prev in thread] [next in thread] 

List:       osflash-sandy
Subject:    [Sandy] [sandy commit] r694 -
From:       codesite-noreply () google ! com (codesite-noreply at google ! com)
Date:       2008-07-24 8:35:19
Message-ID: 0015174bdf10f162510452c0ef11 () google ! com
[Download RAW message or body]

Author: makc.the.great
Date: Thu Jul 24 01:34:51 2008
New Revision: 694

Modified:
   trunk/sandy/as3/trunk/src/sandy/primitive/MD2.as

Log:
+ appendFrameCopy()

Modified: trunk/sandy/as3/trunk/src/sandy/primitive/MD2.as
==============================================================================
--- trunk/sandy/as3/trunk/src/sandy/primitive/MD2.as	(original)
+++ trunk/sandy/as3/trunk/src/sandy/primitive/MD2.as	Thu Jul 24 
01:34:51 2008
@@ -177,6 +177,22 @@
 			}
 		}

+		/**
+		* Appends frame copy to animation.
+		* You can use this to rearrange an animation at runtime, create 
transitions, etc.
+		*
+		* @return number of created frame.
+		*/
+		public function appendFrameCopy (frameNumber:int):int
+		{
+			var f:Array = vertices [frameNumber] as Array;
+			if (f == null) {
+				return -1;
+			} else {
+				return vertices.push (f.slice ()) -1;
+			}
+		}
+
 		// animation "time" (frame number)
 		private var t:Number;		



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic