Hi,
Here is the rest of the code.
Hope this helps.
/* This function add emoticon to canvas_mc with given ID */
function fAddEmoticon(xp, yp, xscale, yscale, ID)
{
var __reg3 = canvas_mc.attachMovie("rect", "emo" + canvas_mc.getNextHighestDepth(), canvas_mc.getNextHighestDepth());
var __reg2 = __reg3.attachMovie(ID, ID + __reg3.getNextHighestDepth(), __reg3.getNextHighestDepth());
__reg2._x = xp;
__reg2._y = yp;
__reg2._xscale = xscale;
__reg2._yscale = yscale;
manager_obj.addItem(__reg2)
}
canvas_mc.setMask(mask_mc);
manager_obj = new gs.TransformManager({targetObjects: [samp], bounds: {xMin: 0, xMax: canvas_mc._width, yMin: 0, yMax: canvas_mc._height}, forceSelectionToFront: true, autoDeselect: false, eventHandler: onAnyEvent});
Thanks in advacnce.
Regards,