# Movieclip alignment

**URL:** <https://forum.kirupa.com/t/movieclip-alignment/177607>\
**Category:** Uncategorized\
**Created:** [February 3, 2006, 9:51am UTC](https://forum.kirupa.com/t/movieclip-alignment/177607 "2006-02-03T09:51:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesignerDude05](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@DesignerDude05](https://forum.kirupa.com/u/DesignerDude05)\
**Post date:** [February 3, 2006, 9:51am UTC](https://forum.kirupa.com/t/movieclip-alignment/177607/1 "2006-02-03T09:51:59Z")

</div>

hey all i have a product search box on my stage and each product is a different size so i would like to know how to allign to centre once i have halfed the picture size this is how far im upto…

onClipEvent (load) {  
myPicture = “pad”;  
myPicture.\_x = myPicture.width/2;  
myPicture.\_y = myPicture.height/2;  
setProperty(pad, \_x, 0);  
setProperty(pad, \_y, 98.4);  
[//myPicture.align](https://myPicture.align)?!  
}
