# Open a borderless window without using prototype

**URL:** <https://forum.kirupa.com/t/open-a-borderless-window-without-using-prototype/162638>\
**Category:** Uncategorized\
**Created:** [September 15, 2005, 12:01am UTC](https://forum.kirupa.com/t/open-a-borderless-window-without-using-prototype/162638 "2005-09-15T00:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max999](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@max999](https://forum.kirupa.com/u/max999)\
**Post date:** [September 15, 2005, 12:01am UTC](https://forum.kirupa.com/t/open-a-borderless-window-without-using-prototype/162638/1 "2005-09-15T00:01:01Z")

</div>

Hi guys i am trying to open a bordeless window without the prototype because i have already script on the frame where my button is placed:  
space = 10;  
photo\_mc.\_alpha = 0;

MovieClip.prototype.loadPhoto = function(photo){  
photo\_mc.\_alpha = 0;  
this.loadMovie(photo);  
\_level0.onEnterFrame = function(){  
var total = Math.round(photo\_mc.getBytesTotal()/1024);  
var loaded = Math.round(photo\_mc.getBytesLoaded()/1024);  
if (total != 0 && loaded\>=total){  
var w = photo\_mc.\_width + space;  
var h = photo\_mc.\_height + space;  
border.resize(w, h);  
delete this.onEnterFrame;  
}  
}  
};  
MovieClip.prototype.resize = function(w, h){  
var speed = 4;  
this.onEnterFrame = function(){  
this.\_width += (w - this.\_width)/speed;  
this.\_height += (h - this.\_height)/speed;  
if( Math.abs(this.\_width-w)\<1 && Math.abs(this.\_height-h)\<1){  
this.\_width = w;  
this.\_height = h;  
photo\_mc.\_x = this.\_x - this.\_width/2 + space/2;  
photo\_mc.\_y = this.\_y - this.\_height/2 + space/2;  
photo\_mc.\_alpha = 100;  
delete this.onEnterFrame;  
}  
}  
};

so it seems that the other methods to open a bordeless window won’t work with this code in the same frame of my button so how can i open a window the exact size that i want without using any scrpt that conflict with the one above??  
Thanks a lot  
Massimo
