# Popup problem when publishing in flash 8

**URL:** <https://forum.kirupa.com/t/popup-problem-when-publishing-in-flash-8/184533>\
**Category:** Uncategorized\
**Created:** [April 5, 2006, 7:37pm UTC](https://forum.kirupa.com/t/popup-problem-when-publishing-in-flash-8/184533 "2006-04-05T19:37:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasdaq404](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nasdaq404](https://forum.kirupa.com/u/nasdaq404)\
**Post date:** [April 5, 2006, 7:37pm UTC](https://forum.kirupa.com/t/popup-problem-when-publishing-in-flash-8/184533/1 "2006-04-05T19:37:37Z")

</div>

I’m having a problem to get this popup script to load in flash 8 when i publish it in flash 6 and mx it works fine but when i try to publish to flash 8, the hit state dislays a dead link. Anyone got some ideas on what i should change.

This is what I have in the 1st frame of my actions layer:

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);”);}stop();

This is what I have on the button movieclip:

on (release) { address = “content/info.html”; target\_winName = “webaddress”; width = 302; height = 308; toolbar = 0; location = 0; directories = 0; status = 0; menubar = 0; scrollbars = 0; resizable = 0; openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);}
