# Creating empty movieclip

**URL:** <https://forum.kirupa.com/t/creating-empty-movieclip/52693>\
**Category:** Uncategorized\
**Created:** [May 26, 2004, 2:15pm UTC](https://forum.kirupa.com/t/creating-empty-movieclip/52693 "2004-05-26T14:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mistdreamz](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mistdreamz](https://forum.kirupa.com/u/mistdreamz)\
**Post date:** [May 26, 2004, 2:15pm UTC](https://forum.kirupa.com/t/creating-empty-movieclip/52693/1 "2004-05-26T14:15:39Z")

</div>

how do i create an empty movie clip say, a rectangle, with only the outlines and no fill? the rectangle border will load at a position, say, (0,0), then when i mouseover on the other buttons, it will ease to their coordinates, but the length will change according to the text length  
i wan to use it for my nav bar

wad i currently have is

onClipEvent(load) {  
n = this.createEmptyMovieClip(“bar”,1);  
n.beginFill(0xcccccc,100);  
n.lineTo(0,5);  
n.lineTo(-0.1,5);  
n.lineTo(-0.1,0);  
n.lineTo(0,0);  
n.endFill();  
n.\_y -= n.height;  
}

i copied this source from somewhere…thanx in advance
