# Sliding and zoom content

**URL:** <https://forum.kirupa.com/t/sliding-and-zoom-content/178317>\
**Category:** Uncategorized\
**Created:** [February 9, 2006, 12:37pm UTC](https://forum.kirupa.com/t/sliding-and-zoom-content/178317 "2006-02-09T12:37:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirksmith](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dirksmith](https://forum.kirupa.com/u/dirksmith)\
**Post date:** [February 9, 2006, 12:37pm UTC](https://forum.kirupa.com/t/sliding-and-zoom-content/178317/1 "2006-02-09T12:37:49Z")

</div>

Hi

I’d like to get the content sliding and then zooming in effect achieved here:

> **[Digital Recruitment Specialists | Zebra People - London](http://zebrapeople.com/)**
>
> User Experience, Creative, Client Services, Technology – whatever area you’re in or recruiting for, we’ll listen to your requirements and work with you from start to finish.

I know that the the basic content slide works using the AS below.

Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?

Grateful for any input.

Thanx

Dirk

onClipEvent (load) {  
\_root.targetx = 116;  
\_root.targety = 34;  
speed = 4;  
\_root.onEnterFrame = function() {  
\_x += (\_root.targetx-\_x)/speed;  
\_y += (\_root.targety-\_y)/speed;  
};  
}  
onClipEvent (enterFrame) {  
if (\_y == targety && \_x == targetx) {  
delete this.onEnterFrame;  
}  
}

on (release) {  
\_root.targetx = 116;  
\_root.targety = 34;  
}  
on (release) {  
\_root.targetx =-155;  
\_root.targety = 34;  
}  
on (release) {  
\_root.targetx =116;  
\_root.targety =-196;  
}  
on (release) {  
\_root.targetx =-155;  
\_root.targety =-196;  
}
