# flash8 actionscript 2.0 having trouble with aligning a "draw" element

**URL:** <https://forum.kirupa.com/t/flash8-actionscript-2-0-having-trouble-with-aligning-a-draw-element/317402>\
**Category:** flash\
**Created:** [December 19, 2010, 7:52am UTC](https://forum.kirupa.com/t/flash8-actionscript-2-0-having-trouble-with-aligning-a-draw-element/317402 "2010-12-19T07:52:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starrey](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Starrey](https://forum.kirupa.com/u/Starrey)\
**Post date:** [December 19, 2010, 7:52am UTC](https://forum.kirupa.com/t/flash8-actionscript-2-0-having-trouble-with-aligning-a-draw-element/317402/1 "2010-12-19T07:52:23Z")

</div>

Im working with a perpetual calander and it using the following code to set the xPos and yPos. I know how to change positions with numbers but this code has a equation of sorts that i cant seem to find the right search to learn more about it to adjust it way i want. basically this code puts it in upper left hand corner…i moved it down where i wanted…but need to get it over to the right hand side. Last piece of my holiday project…just might make it for the HOLIDAY lol. Thanks for any help and to all those xmas coding elves that have helped along the way.

// DRAWING TEXT CELLS:  
// Sizing  
cellsNumber = 7;  
cellSize = 30;  
stageMargin = cellsNumber;  
xPos = cellSize-stageMargin; \<\<\<\<\<\<this is what i cant figure out  
yPos = 500;  
cellWidth = cellsNumber\*cellSize;
