# Anyone pls help me!

**URL:** https://forum.kirupa.com/t/anyone-pls-help-me/200793
**Category:** Uncategorized
**Created:** [September 15, 2006, 4:25am UTC](https://forum.kirupa.com/t/anyone-pls-help-me/200793 "2006-09-15T04:25:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dardo36](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@dardo36](https://forum.kirupa.com/u/dardo36)
#### Post date: [September 15, 2006, 4:25am UTC](https://forum.kirupa.com/t/anyone-pls-help-me/200793/1 "2006-09-15T04:25:10Z")

</div>

Well the reason why Im posting this is cus I need u to guide me with a zoom in/out navigation Im trying to build

Take a look to this site:  
[http://www.julianwolkenstein.com/jw.html](http://www.julianwolkenstein.com/jw.html)

Im trying to build a navigation just like that…I know is not easy at least for me cus Im a beginer with AS

I got this [.FLA](http://dardostudio.com/zoom_demo_.fla)

As u can see my .fla works whereever you click on the stage…I just need it to work with the Images…you see what I mean?

This .flas has a mc with these actions:

///////////

onClipEvent (mouseDown) {  
if (i\>0) {  
return;  
}  
zoom = true;  
dir == 1 ? (dir=-1) : (dir=1);  
if (dir == 1) {  
pt = {x:\_root.\_xmouse, y:\_root.\_ymouse};  
}  
}  
onClipEvent (enterFrame) {  
if (!zoom) {  
return;  
}  
\_root.\_xscale += dir_i_200/20;  
\_root.\_yscale += dir_i_200/20;  
var pt2 = {x:pt.x, y:pt.y};  
\_root.localToGlobal(pt2);  
\_root.\_x -= (pt2.x-pt.x);  
\_root.\_y -= (pt2.y-pt.y);  
i++;  
if (i == 12) {  
zoom = false;  
i = 0;  
}  
}  
onClipEvent(load)  
{  
var i = 0;  
}

///////

How can I make it zoom in/out only with the Images/buttons ?

Thanks
