if(textid>=0)
endtext();
- actions = swf_ActionStart(tag);
+ actions = swf_ActionStart();
if(opennewwindow)
action_GetUrl(url, "_parent");
else
if(textid>=0)
endtext();
- actions = swf_ActionStart(tag);
+ actions = swf_ActionStart();
action_GotoFrame(page);
action_End();
swf_ActionEnd();
int buttonid = ++currentswfid;
for(t=1;t<4;t++)
{
- if(points[t].x>xmax) xmax=points[t].x;
- if(points[t].y>ymax) ymax=points[t].y;
- if(points[t].x<xmin) xmin=points[t].x;
- if(points[t].y<ymin) ymin=points[t].y;
+ if(points[t].x>xmax) xmax=points[t].x;
+ if(points[t].y>ymax) ymax=points[t].y;
+ if(points[t].x<xmin) xmin=points[t].x;
+ if(points[t].y<ymin) ymin=points[t].y;
}
p1.x=points[0].x; p1.y=points[0].y; p2.x=points[1].x; p2.y=points[1].y;
p3.x=points[2].x; p3.y=points[2].y; p4.x=points[3].x; p4.y=points[3].y;
lineto(tag, p1);
swf_ShapeSetEnd(tag);
- tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
- swf_ObjectPlace(tag, buttonid, depth ++, 0,0,0);
-
tag = swf_InsertTag(tag,ST_DEFINEBUTTON);
swf_SetU16(tag,buttonid); //id
swf_ButtonSetFlags(tag, 0); //menu=no
swf_SetU8(tag,0);
swf_SetActions(tag,actions);
swf_SetU8(tag,0);
-
+
tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
swf_ObjectPlace(tag, buttonid, depth++,0,0,0);
}