# Need to change Horizontal getlimits getBounds to Vertical

**URL:** <https://forum.kirupa.com/t/need-to-change-horizontal-getlimits-getbounds-to-vertical/217735>\
**Category:** flash\
**Created:** [March 1, 2007, 3:08pm UTC](https://forum.kirupa.com/t/need-to-change-horizontal-getlimits-getbounds-to-vertical/217735 "2007-03-01T15:08:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [March 1, 2007, 3:08pm UTC](https://forum.kirupa.com/t/need-to-change-horizontal-getlimits-getbounds-to-vertical/217735/1 "2007-03-01T15:08:28Z")

</div>

I used the following tutorial to create a horizontal movie  
[http://www.kirupa.com/developer/actionscript/scriptable\_masks.htm](http://www.kirupa.com/developer/actionscript/scriptable_masks.htm)

Now I am trying to modify my file to have it work on vertical images.

The AS for horizontally scrolling camera focus

```auto
 onClipEvent (enterFrame) {
                  getlimits = _root.normalpic.getBounds(_root);
                  //get the limits of the normal pic movie 
                  if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && _root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
                     this._x = _root._xmouse;
                  }
               } 

```

I tried just changing every x to y and vice versa but it got a little wacky :-/
