I have Particle animation like this this
for(r=0;r<300;r++){
Koord_x1=264;
Koord_x2=500;
Koord_y1=131;
Koord_y2=311;
ObjWidth=300;
var myPellet:MovieClip;
myPellet=_root.TheFlows.attachMovie("sPellet","oPellet_"+r,r);
myPellet._x=Koord_x1+random(ObjWidth);
myPellet._y=Koord_y1+random(ObjWidth);
//speed
yspeed = 25;
myPellet.onEnterFrame = function() {
this._y += random(yspeed)//Math.random()*25;
if (this._y>= Koord_y2) {
this._y =Koord_y1;};}
}
But i want that Object moving in limited area or masked area.
I add masked area like this
var myMask:MovieClip;
MyMask=_root.TheFlows.attachMovie("sStorageSilo","oStorageSilo",_root.TheFlows.getNextHighestDepth(),{_x:264,_y:131});
myPellet.setMask(MyMask);
But it still not working. Any advice ?? or correction in my script code ?. Thanks in advance. MHz