# Move Display object inside itself

**URL:** <https://forum.kirupa.com/t/move-display-object-inside-itself/273863>\
**Category:** flash\
**Created:** [October 21, 2008, 9:30pm UTC](https://forum.kirupa.com/t/move-display-object-inside-itself/273863 "2008-10-21T21:30:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oskaraqp](https://avatars.discourse-cdn.com/v4/letter/o/8e8cbc/32.png) [@oskaraqp](https://forum.kirupa.com/u/oskaraqp)\
**Post date:** [October 21, 2008, 9:30pm UTC](https://forum.kirupa.com/t/move-display-object-inside-itself/273863/1 "2008-10-21T21:30:34Z")

</div>

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.
