-{ U8 flags;
- if (!t) return -1;
-
- if(cx && cx->r1==0 && cx->g1==0 && cx->b1==0 && cx->a1==0
- && cx->r0==256 && cx->g0==256 && cx->b0==256 && cx->a0==256)
- cx = 0;
-
- if(m && isUnitMatrix(m))
- m = 0;
-
- flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|
- ((m||cx)&&(!id)?PF_MOVE:0)|(clipaction?PF_CLIPACTION:0);
-
- swf_SetU8(t,flags);
- swf_SetU16(t,depth);
- if (flags&PF_CHAR) swf_SetU16(t,id);
- if (flags&PF_MATRIX) swf_SetMatrix(t,m);
- if (flags&PF_CXFORM) swf_SetCXForm(t,cx,1);
- if (flags&PF_RATIO) swf_SetU16(t,0);
-
- /* ??? The spec states that name comes first? */
- if (flags&PF_CLIPACTION) swf_SetU16(t, clipaction);
- if (flags&PF_NAME) swf_SetString(t,name);
- return 0;
+{
+ return objectplace(t,id,depth,m,cx,name,clipaction,0,0);
+}
+int swf_ObjectPlaceBlend(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name, U8 blend)
+{
+ if(t->id != ST_PLACEOBJECT3)
+ fprintf(stderr, "wrong tag- ignoring blend mode\n");
+ return objectplace(t,id,depth,m,cx,name,0,blend,0);