# Listener.onResize

**URL:** <https://forum.kirupa.com/t/listener-onresize/182255>\
**Category:** Uncategorized\
**Created:** [March 16, 2006, 6:15pm UTC](https://forum.kirupa.com/t/listener-onresize/182255 "2006-03-16T18:15:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MyDNA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MyDNA](https://forum.kirupa.com/u/MyDNA)\
**Post date:** [March 16, 2006, 6:15pm UTC](https://forum.kirupa.com/t/listener-onresize/182255/1 "2006-03-16T18:15:18Z")

</div>

Within flash 8 i’m working the folowing website:  
[http://www.dri360.com](http://www.dri360.com). The centered MC size changes when clicked a button.  
I published the movie as a 100% x 100% with a noscale option.

My problem is the next. I want to add a movieclip in my main timeline wich must go automatically to the left of the users screen. if you got 1024x 768 and even when someone got a nice 30" screen from with a resolution from 2560x1600. yesterday i posted a thread and i’ve got the next code wich did not work in my movie. I don’t know if it’s my fault.  
the next code i placed in my main timeline:  
[AS]  
listener.onResize = function ()  
{  
menuMc.\_x = menuMc.\_y = 0;  
menuMc.\_height = Stage.height;  
};  
[/AS]  
Ofcourse  
I tried several things today but nothing works. i tried different publish settings. the listener option was new for me and i tried to find out what it does.  
I think there is my problem…  
do i need to add a line like addListener? or do i need to name the function?  
DOes someone can help me out so i can make a menu in the left of the screen without scaling and the movie centered.  
If someone knows where i website to learn this type of actionscript.

kind regards Jos Koomen
