# Window Component

**URL:** <https://forum.kirupa.com/t/window-component/276460>\
**Category:** Uncategorized\
**Created:** [November 27, 2008, 8:24pm UTC](https://forum.kirupa.com/t/window-component/276460 "2008-11-27T20:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sephiroth1](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Sephiroth1](https://forum.kirupa.com/u/Sephiroth1)\
**Post date:** [November 27, 2008, 8:24pm UTC](https://forum.kirupa.com/t/window-component/276460/1 "2008-11-27T20:24:00Z")

</div>

Guys, how the hell do you get a button to display into a **Window Component**??  
Or for that matter…get an empty movie clip that has been created using code to display into the window?

newName.title = “Sample Window”;  
newName.closeButton = true;  
newName.contentPath = “ani”; \<----- **It works if the MC is within the library, but anything dynamically created and attached doesnt work, same goes for trying to add a Button component to it - it doesnt work for me.**  
newName.setSize(500,500);
