# Setting reg point?

**URL:** <https://forum.kirupa.com/t/setting-reg-point/203902>\
**Category:** flash\
**Created:** [October 15, 2006, 1:45pm UTC](https://forum.kirupa.com/t/setting-reg-point/203902 "2006-10-15T13:45:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [October 15, 2006, 1:45pm UTC](https://forum.kirupa.com/t/setting-reg-point/203902/1 "2006-10-15T13:45:59Z")

</div>

I have this code for creating a border around images. (partly from the huge thread on resizeBorder here at Kirupa). The image is loading into a containerMC and that I can align top left, but this code I dont know how to align? Anyone?

```auto

//creating the border: 
this.createEmptyMovieClip('border', 3); 
with (_root.border) { 
   lineStyle(0.1, 0x999999); 
   _x = 100; 
   _y = 100; 
   beginFill(); 
   moveTo(-100, -100); 
   lineTo(100, -100); 
   lineTo(100, 100); 
   lineTo(-100, 100); 
   lineTo(-100, -100); 
   endFill(); 
}

```
