# Strech effect

**URL:** https://forum.kirupa.com/t/strech-effect/35384
**Category:** Uncategorized
**Created:** [November 13, 2003, 10:37am UTC](https://forum.kirupa.com/t/strech-effect/35384 "2003-11-13T10:37:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ahaab](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ahaab](https://forum.kirupa.com/u/ahaab)
#### Post date: [November 13, 2003, 10:37am UTC](https://forum.kirupa.com/t/strech-effect/35384/1 "2003-11-13T10:37:37Z")

</div>

this is my doubt.  
if you load an external swf and after it is totaly loaded give it as to change sise proprties. the file jumps from his sise exactly to the pretended.

how doe one give code to do this in a progressive way:hr:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 13, 2003, 10:53am UTC](https://forum.kirupa.com/t/strech-effect/35384/2 "2003-11-13T10:53:17Z")

</div>

you need to use an ‘onEnterFrame’ event to incriment the size of the clip each frame of the movie like this:

```auto

Speed = 5;
TargetScale = 200;
this.onEnterFrame = function() {
          if(!Check) {
                    MC._xscale += Speed;
                    if(MC._xscale >= TargetScale) {
                              Check = true;
                              MC._xscale = TargetScale;
                    }
          }
}

```

or to stretch it with easing:

```auto

TargetScale = 200;
this.onEnterFrame = function() {
          MC._xscale += (TargetScale - MC._xscale) / 10;
}

```

hope this help (-:
