# \[fmx2k4\]CreateEmptyMovieClip not working

**URL:** <https://forum.kirupa.com/t/fmx2k4-createemptymovieclip-not-working/55398>\
**Category:** flash\
**Created:** [June 23, 2004, 5:08pm UTC](https://forum.kirupa.com/t/fmx2k4-createemptymovieclip-not-working/55398 "2004-06-23T17:08:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pruafet](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@pruafet](https://forum.kirupa.com/u/pruafet)\
**Post date:** [June 23, 2004, 5:08pm UTC](https://forum.kirupa.com/t/fmx2k4-createemptymovieclip-not-working/55398/1 "2004-06-23T17:08:25Z")

</div>

Here’s the code, the problem is, it displays nothing, what am I missing?

> 

function createNewTabMovie(name, digit) {  
tX = \_root.tabControl.y;  
tY = \_root.tabControl.x;  
tWidth = \_root.tabControl.width;  
tHeight = \_root.tabControl.height;  
newTab = \_root.createEmptyMovieClip(name+digit, getNextHighestDepth());  
newTab.\_x = tX;  
newTab.\_y = tY;  
newTab.\_width = tWidth;  
newTab.\_height = tHeight;  
newTab.attachMovie(“Button”,“myButt”,3242);  
newTab.moveTo(tX,(tY + tHeight));  
newTab.lineStyle(2,0xff00ff,100);  
newTab.lineTo(tX,tY);  
newTab.lineTo((tX+tWidth),tY);  
newTab.lineTo((tX + tWidth),(tY + tHeight));  
newTab.onRelease = newTab.onReleaseOutside = function (){  
trace(“hit”);  
}  
}

tabControl = new Object();  
tabControl.y = 1;  
tabControl.x = 48;  
tabControl.width = 238;  
tabControl.height = 138;  
createNewTabMovie(“tab”,5);
