# Cool zoomed effect

**URL:** <https://forum.kirupa.com/t/cool-zoomed-effect/197754>\
**Category:** flash\
**Created:** [August 18, 2006, 7:44pm UTC](https://forum.kirupa.com/t/cool-zoomed-effect/197754 "2006-08-18T19:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [August 18, 2006, 7:44pm UTC](https://forum.kirupa.com/t/cool-zoomed-effect/197754/1 "2006-08-18T19:44:38Z")

</div>

Hey Flashers,

I recently stumbled on this [adidas](http://www.adidas.com/campaigns/climacoolglobal/content/climacool.asp?strCountry_adidascom=uk) site (via [k10k.net](http://k10k.net)). If you go into products and select any product, there’s a large view of the product and a small view. The small view has a navigation box over it which allows you to move it over the product and move the large view to that point.

I’m trying to replicate similar functionality. I figured it’s a matter of enclosing the x and y change in a startDrag function. I’ve gotten things to move a little, but nothing close to the adidas example:

```auto
var currX:Number = eye_clip._x;
var currY:Number = eye_clip._y;
var xLimit:Number = 0;
var yLimit:Number = 0;
controller.wayfinder.onPress = function() {
    startDrag(this, true, 305, 10, 5, 82);
    for (i=0; i<10; i++) {
        if (wayfinder._x>=82 && eye_clip._x != 0) {
            eye_clip._x -= currX;
        } else if (wayfinder._x<=82 && eye_clip._x != 0) {
            eye_clip._x += currX;
        }
        if (wayfinder._y>=5 && eye_clip._y != 0) {
            eye_clip._y -= currY;
        } else if (wayfinder._y<=5 && eye_clip._y != 0) {
            eye_clip._y += currY;
        }
    }
};
controller.wayfinder.onRelease = function() {
    stopDrag();
};

```

How can I control the large movie clip (eye\_clip) in this example, with the smaller clip called wayfinder? Do I have to map the width and height aspects of one clip to the other? How would I do that?
