- swf_ButtonSetRecord(t,0x01,33,1,0,0);
- swf_ButtonSetRecord(t,0x02,34,1,0,0);
- swf_ButtonSetRecord(t,0x04,35,1,0,0);
- swf_ButtonSetRecord(t,0x08,36,1,0,0);
- swf_SetU8(t,0);
-
- swf_ButtonSetCondition(t, 4);
- swf_SetActions(t,actiontoset);
- swf_SetU8(t,0);
-
- swf_ButtonSetCondition(t, 0);
- swf_SetU8(t,0);
-
- swf_SetU8(t,0);
-
- swf_ButtonPostProcess(t, 2);
+ swf_ButtonSetRecord(t,BS_UP|BS_HIT,34,1,NULL,NULL);
+ swf_ButtonSetRecord(t,BS_OVER,35,1,NULL,NULL);
+ swf_ButtonSetRecord(t,BS_DOWN,36,1,NULL,NULL);
+ swf_SetU8(t,0); // end of button records
+
+ swf_ButtonSetCondition(t, BC_OVERDOWN_OVERUP);
+ swf_ActionSet(t,actiontoset);
+
+ swf_ButtonPostProcess(t, 1); // don't forget!