# Image pan with rollovers within

**URL:** <https://forum.kirupa.com/t/image-pan-with-rollovers-within/196847>\
**Category:** Uncategorized\
**Created:** [August 11, 2006, 11:44am UTC](https://forum.kirupa.com/t/image-pan-with-rollovers-within/196847 "2006-08-11T11:44:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickmaster\_b](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mickmaster\_b](https://forum.kirupa.com/u/mickmaster_b)\
**Post date:** [August 11, 2006, 11:44am UTC](https://forum.kirupa.com/t/image-pan-with-rollovers-within/196847/1 "2006-08-11T11:44:47Z")

</div>

The below code was created by creatify at the following link:  
[http://www.kirupa.com/forum/showthread.php?t=227359](http://www.kirupa.com/forum/showthread.php?t=227359)

The code below is within the .fla file plus an .as file is outside the .fla.

```php
import com.McSlider;

var myclip:MovieClip = _root.img;
var myeasing:Number = .5;
var myX:Number = 40;
var myY:Number = 40;
var myviewW:Number = 720;
var myviewH:Number = 520;
var mystartX:Number = ((myclip._width - myviewW)/2); //want the image to start centered
var mystartY:Number = ((myclip._height - myviewH)/2); //want the image to start centered

//new McSlider(yourMovieClip, easing, clipX, clipY, aperature_width, aperature_height, initial_x_Offset, initial_y_Offset);
var nMC:McSlider = new McSlider(myclip, myeasing, myX, myY, myviewW, myviewH, mystartX, mystartY);

```

To view:  
[http://flash.creatify.com/experiments/McSlider.html](http://flash.creatify.com/experiments/McSlider.html)

Download:  
[http://flash.creatify.com/experiments/McSlider.zip](http://flash.creatify.com/experiments/McSlider.zip)

I have been editing this to work to my own benefits, but have come stuck with a problem.  
The problem being, that i have placed rollovers within the image pan, but the .as will not read these due to the movement code for the image. would anyone possibly have any suggestions to how i might get this to work??

Thanks in advance  
Mick
