I wanna make a class which can apply a mask to a display object(I can have many of them or just one), so I want to make something liek this :
applymask(display:DisplayCOntainer){
display.addChild(display);//try to move the content currently inside the itself
display.createdisplaymask = new Sprite();
display.display.mask = display.createdisplaymask
}
well that’s the basic idea, but if someone has a better solution cool, I’m not implemented this yet since I’m still developing other parts of the app, I’d like to knwo if this is possible or there’s a better solution.