# \[Flash8\]Resizing Movieclip!

**URL:** <https://forum.kirupa.com/t/flash8-resizing-movieclip/223912>\
**Category:** Uncategorized\
**Created:** [April 26, 2007, 5:30pm UTC](https://forum.kirupa.com/t/flash8-resizing-movieclip/223912 "2007-04-26T17:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noxeus69](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@noxeus69](https://forum.kirupa.com/u/noxeus69)\
**Post date:** [April 26, 2007, 5:30pm UTC](https://forum.kirupa.com/t/flash8-resizing-movieclip/223912/1 "2007-04-26T17:30:00Z")

</div>

hey guys,

currently i face one problem with the resizing movieclip using action script. I doing a resize on the width of the moviclip. What i got is the movieclip resize on center, but i want is on left. Any idea how to solve it?

the code i use as below:

[COLOR=darkorange]MovieClip.prototype.resizeMe = function(w) {  
var speed = 3;  
this.onEnterFrame = function() {  
this.\_xscale += (w-this.\_xscale)/speed;  
};  
};  
[/COLOR]
