/    Sign up×
Community /Pin to ProfileBookmark

Can’t launch page from Flash with Javascript in Internet Explorer

I recently discovered that my company website [URL=”http://www.dma-animation.com”]http://www.dma-animation.com[/URL] doesn’t work in Internet Explorer on Macs. The site is a flash movie with buttons that when clicked, open a new browser window to show content. (Upon entering the site, click on projects and try to select any project)

The script for the flash buttons are similar to this (with QT_SCRN and SCRNHTML being subfolders, and OZZY being the name of SCRN_03.htm):

[CODE]on (release)
{getURL(“javascript:openQTWindow(‘QT_SCRN/SCRNHTML/SCRN_03.htm’,’OZZY’,’height=344,width=565,toolbar=no,scrollbars=no,resizable=no,top=110,left=85′)”);[/CODE]

And the html code is:

[CODE]function openQTWindow(URLtoOpen2, windowName2, windowFeatures2)
{
var breeds=screen.availWidth;
//set max width&height
var breed=Math.min((breeds-10), 565);
var hoogs=screen.availHeight;
var hoog=Math.min(hoogs, 344);
//Set pos, and center
var posX = ((breed<565)?0: (breeds-breed)/2);
var posY = ((hoog<344)?0: (hoogs-hoog)/2-20);
var posY = Math.max(0,posY);
var movieWindow = window.open(URLtoOpen2,windowName2 ,windowFeatures2);
movieWindow.moveTo(posX,posY);
movieWindow.focus();[/CODE]

I have also tried this for the html:

[CODE]function openQTWindow(theURL,winName,features) { //v2.0
var posw = (screen.width – 565)/2;
var posv = (screen.height – 344)/2;
features = features + “,left=” + posw + “,top=”+ posv + ‘,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no’;
window.open(theURL,winName,features);[/CODE]

These links work fine in Firefox and IE on PCs. If I try to open the window directly with no functions it works fine, but I need to be able to center and resize the window. Any ideas on what’s wrong? Let me know if you need any more info from me! Thanks!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @rebeckyh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...