From 24f88b730055c9aa9b195b50bbc603dfda57e2ca Mon Sep 17 00:00:00 2001
From: kramm <kramm>
Date: Tue, 6 Nov 2001 20:17:48 +0000
Subject: [PATCH] * updated function names * ActionTag freeing implemented

---
 lib/example/buttontest.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/example/buttontest.c b/lib/example/buttontest.c
index daf0a2c..ccd6460 100644
--- a/lib/example/buttontest.c
+++ b/lib/example/buttontest.c
@@ -99,7 +99,7 @@ int main (int argc,char ** argv)
       swf_ButtonSetRecord(t,BS_DOWN,36,1,NULL,NULL);
       swf_SetU8(t,0); // end of button records
       
-      swf_SetActions(t,actiontoset);
+      swf_ActionSet(t,actiontoset);
   }
   else
   {
@@ -112,12 +112,14 @@ int main (int argc,char ** argv)
       swf_SetU8(t,0); // end of button records
 
       swf_ButtonSetCondition(t, BC_OVERDOWN_OVERUP);
-       swf_SetActions(t,actiontoset);
+       swf_ActionSet(t,actiontoset);
        
       swf_ButtonPostProcess(t, 1); // don't forget!
   }
 
-  // FIXME: Free Action Tag lists
+  swf_ActionFree(a1);
+  swf_ActionFree(a2);
+  swf_ActionFree(a3);
 
   t = swf_InsertTag(t,ST_PLACEOBJECT2);
   swf_ObjectPlace(t, ID_BUTTON, 2,0,0,0);
-- 
1.7.10.4