# onResize function question

**URL:** <https://forum.kirupa.com/t/onresize-function-question/171200>\
**Category:** Uncategorized\
**Created:** [December 2, 2005, 5:56pm UTC](https://forum.kirupa.com/t/onresize-function-question/171200 "2005-12-02T17:56:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [December 2, 2005, 5:56pm UTC](https://forum.kirupa.com/t/onresize-function-question/171200/1 "2005-12-02T17:56:41Z")

</div>

i put one movieClip in \_x \_y local

```auto

[color=darkslategray]theClock[/color]._x = Stage.width - 85;
[color=darkslategray]theClock[/color]._y = 85;

```

but now i wanna that continue when resize the window.  
i try:

```auto

clock.onResize = function() {
	 [color=darkslategray]theClock[/color]._x = Stage.width - 85;
	 [color=darkslategray]theClock[/color]._y = 85;
}
clock.onResize();

```

but no work.  
☹

anyone can help me ?
