# Flash player 8 is not supporting new html window script

**URL:** <https://forum.kirupa.com/t/flash-player-8-is-not-supporting-new-html-window-script/321449>\
**Category:** flash\
**Created:** [April 20, 2011, 5:59am UTC](https://forum.kirupa.com/t/flash-player-8-is-not-supporting-new-html-window-script/321449 "2011-04-20T05:59:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajeesh\_aa](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@ajeesh\_aa](https://forum.kirupa.com/u/ajeesh_aa)\
**Post date:** [April 20, 2011, 5:59am UTC](https://forum.kirupa.com/t/flash-player-8-is-not-supporting-new-html-window-script/321449/1 "2011-04-20T05:59:35Z")

</div>

flash player 8 is not supporting new html window script  
it supports only till player 6 version.

\*\*Frame script: \*\*  
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar,  
location, directories, status, menubar, scrollbars, resizable) {  
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.  
open(’” + url + “’,’” + winName + “’,’” + “width=” + w + “,height=” + h + “,  
toolbar=” + toolbar + “,location=” + location + “,directories=” + directories

- “,status=” + status + “,menubar=” + menubar + “,scrollbars=” + scrollbars +  
“,resizable=” + resizable + “,top=’+((screen.height/2)-(” + h/2 + “))+’,  
left=’+((screen.width/2)-(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0)  
;”);  
}

**Button script:**  
on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “sample.html”;  
target\_winName = “Window Name”;  
width = 700;  
height = 500;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 1;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location,  
directories, status, menubar, scrollbars, resizable);  
}

Please help me if anyone knows about this. my email id is: ajeesh.aa@gmail.  
com Thanks
