# Drag and zoom

**URL:** <https://forum.kirupa.com/t/drag-and-zoom/294133>\
**Category:** Uncategorized\
**Created:** [August 9, 2009, 9:35am UTC](https://forum.kirupa.com/t/drag-and-zoom/294133 "2009-08-09T09:35:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trnghosh](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@trnghosh](https://forum.kirupa.com/u/trnghosh)\
**Post date:** [August 9, 2009, 9:35am UTC](https://forum.kirupa.com/t/drag-and-zoom/294133/1 "2009-08-09T09:35:50Z")

</div>

Here is the example fla.

What I want to drag the button towards right ( upto the end of the line on the right side) and the box will be zoomed in ( centre) and when I dragged the button towards left ( upto the end of the line on the left side) the box will zoom out ( centre).

How can I do that. Any help or any tute help will be highly appreciated.

trnghosh
