# Gradual Zoom of Photo

**URL:** <https://forum.kirupa.com/t/gradual-zoom-of-photo/183151>\
**Category:** flash\
**Created:** [March 24, 2006, 5:42am UTC](https://forum.kirupa.com/t/gradual-zoom-of-photo/183151 "2006-03-24T05:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbie99](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@Newbie99](https://forum.kirupa.com/u/Newbie99)\
**Post date:** [March 24, 2006, 5:42am UTC](https://forum.kirupa.com/t/gradual-zoom-of-photo/183151/1 "2006-03-24T05:42:50Z")

</div>

Hi,

I am trying to create a gradual zoom in/out effect on a photo. I wrote the following code (which I found here at Kirupa):

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
var xScaleT:Tween = new Tween(island\_mc, “\_xscale”, Back.easeOut, 80, 100, 120, true);  
var yScaleT:Tween = new Tween(island\_mc, “\_yscale”, Back.easeOut, 80, 100, 120, true);

This works well. My photo scaled smoothly. But the problem is it only scales smoothly in one frame. If I insert more frames, the photo scales with distortion.

I have other layers that span multiple frames. The idea is to make the gradual zoom of the photo the background with some text moving across the photo.

How can I get this to work?

Thanks.

Dumb Newbie
