hey ive read up a bit on setmask issues and im having one of my own, ive been able to get the mask to work using the
pocurr_item.cap.setMask(_root.sitemapwindow.port[“item”+gui].msk);
but it kills both my rollovers and my tweens and ive been trying all morning to mix and match a solution ths code is kinda big so heres a stage its in the sitemap section, im also using mc_tween for my tweening
http://www.5axismodels.net/stage/
var carsy = ramp.length;
for (gui=0; gui<carsy; gui++) {
var mcap:String = ramp[gui];
var pocurr_item:MovieClip = _root.sitemapwindow.port.attachMovie("sitemap_mcc", "item"+gui, _root.sitemapwindow.port.getNextHighestDepth());
if (pocurr_item._framesloaded == pocurr_item._totalframes) {
pocurr_item.cap.m_caption2 = mcap;
pocurr_item.cap.m_caption.text = mcap;
pocurr_item.cap.setMask(_root.sitemapwindow.port["item"+gui].msk);
//pocurr_item.msk.cacheAsBitmap = true;
//pocurr_item.cap.cacheAsBitmap = true;
pocurr_item.msk._xscale = 1;
_root.sitemapwindow.port["item"+gui].msk.tween("_xscale", 100, .5, "easeOutExpo", gui/carsy*.7);
pocurr_item.bk._alpha = 60;
if (rampspt[gui] == "xp") {
pocurr_item._x = x;
pocurr_item._y = y+(pocurr_item._y+pocurr_item._height)*gui;
pocurr_item.arrow._visible = true;
} else if (rampspt[gui] == "yp") {
pocurr_item._x = x+20;
pocurr_item._y = y+(pocurr_item._y+pocurr_item._height)*gui;
pocurr_item.arrow._visible = false;
pocurr_item.onRollOver = pocurr_item.onDragOver=function () {
this.bk._alpha = 100;
this.cap.colorTo(0xFF7300, 0.5, "linear");
this.streek.play();
};
pocurr_item.onRollOut = pocurr_item.onDragOut=function () {
this.cap.colorTo(null, 0.5, "linear");
this.bk._alpha = 60;
this.streek.gotoAndStop(1);
};
}
//pocurr_item.msk._alpha = 10;
// item properties assigned from XML//////////////////////////////////
}
}