char pool2[26] = {0x01,0x00,0x00,0x00,0x73,0x74,0x6f,0x70,0x5f,0x66,0x6c,0x61,0x2e,0x4d,0x61,0x69
,0x6e,0x54,0x69,0x6d,0x65,0x6c,0x69,0x6e,0x65,0x00};
TAG * classCall = swf_InsertTagBefore(swf, swf->firstTag, 0x04c);
char pool2[26] = {0x01,0x00,0x00,0x00,0x73,0x74,0x6f,0x70,0x5f,0x66,0x6c,0x61,0x2e,0x4d,0x61,0x69
,0x6e,0x54,0x69,0x6d,0x65,0x6c,0x69,0x6e,0x65,0x00};
TAG * classCall = swf_InsertTagBefore(swf, swf->firstTag, 0x04c);
//0x52 is the Flash9 equivalent to DoAction
char init_pool[322] = { 0x01,0x00,0x00,0x00, /* Flag Parameter to 0x52 */
//0x52 is the Flash9 equivalent to DoAction
char init_pool[322] = { 0x01,0x00,0x00,0x00, /* Flag Parameter to 0x52 */
TAG *classInit = swf_InsertTagBefore(swf, swf->firstTag, 0x052);
/* Copy the environment Initialization code */
TAG *classInit = swf_InsertTagBefore(swf, swf->firstTag, 0x052);
/* Copy the environment Initialization code */
/* Register the callback for every frame */
for (i = 0; i < frame_nums; ++i) {
AVM2_uint32toU30(i,constructor_frame_register + 3); // Write current frame number
/* Register the callback for every frame */
for (i = 0; i < frame_nums; ++i) {
AVM2_uint32toU30(i,constructor_frame_register + 3); // Write current frame number