# Activating movie clip when resizing window with liquid layout?

**URL:** <https://forum.kirupa.com/t/activating-movie-clip-when-resizing-window-with-liquid-layout/283382>\
**Category:** Uncategorized\
**Created:** [March 5, 2009, 2:21pm UTC](https://forum.kirupa.com/t/activating-movie-clip-when-resizing-window-with-liquid-layout/283382 "2009-03-05T14:21:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![media\_mixx](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@media\_mixx](https://forum.kirupa.com/u/media_mixx)\
**Post date:** [March 5, 2009, 2:21pm UTC](https://forum.kirupa.com/t/activating-movie-clip-when-resizing-window-with-liquid-layout/283382/1 "2009-03-05T14:21:15Z")

</div>

I have a movie clip on a liquid layout page that seems to be appearing when I resize the window. The movie clip is supposed to be transparent until you roll over it but when I drag the window open it triggers the movie clip.

I think it has to do with the onClipEvent(load) part of the code but I am not sure. Below is the code that is attached to movie clip that is being triggered. Here is a link to view the swf file:  
[http://www.media-mixx.com/test.swf](http://www.media-mixx.com/test.swf)

Anybody have any ideas on how to remedy this?

note: I just opened this up through the browser from that link and it does not do it but when I publish the movie it does it on my computer…?

Thanks!

onClipEvent(load){

```
this._x= 0;
this._y= (Stage.height + -400/2);

this._width= Stage.width; 

Stage.addListener(this)

this.onResize=function(){
    this._x= 0;
    this._y= (Stage.height + -400/2);
    this._width= Stage.width;
}

```

}  
on (rollOut) {  
//Movieclip GotoAndPlay Behavior  
gotoAndPlay(11);  
//End Behavior

}  
on (rollOver) {  
//Movieclip GotoAndPlay Behavior  
gotoAndPlay(2);  
//End Behavior

}
