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);