# Virtual tour

**URL:** https://forum.kirupa.com/t/virtual-tour/197549
**Category:** flash
**Created:** [August 17, 2006, 10:28am UTC](https://forum.kirupa.com/t/virtual-tour/197549 "2006-08-17T10:28:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![amal\_auc](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@amal\_auc](https://forum.kirupa.com/u/amal_auc)
#### Post date: [August 17, 2006, 10:28am UTC](https://forum.kirupa.com/t/virtual-tour/197549/1 "2006-08-17T10:28:03Z")

</div>

Hey guys

I am making a virtual tour for a website link : [www.cactusadvert.be/poivredor/poivredor\_fr.htm](http://www.cactusadvert.be/poivredor/poivredor_fr.htm)

Below is the script i am using but there is a problem with the tour.  
Arriving at the end of the image the tour continues. See link  
Can anyone one help me out with this.  
Thanks in advance  
///////////////////////////////////////////////////////////////////

onClipEvent (load) {  
Xwidth = \_root.mc.\_width;  
}  
onClipEvent (enterFrame) {  
if (hitTest(\_root.\_xmouse, \_root.\_ymouse, false)) {  
Xpos = \_root.mc.img.\_x;  
k = Xpos-(\_root.mc.\_xmouse/20);  
\_root.mc.img.\_x = k;  
}  
}

///////////////////////////////////////////////////////////////////
