Groups | Blog | Home
all groups > flash (macromedia) > september 2003 >

flash (macromedia) : Flash Javascript calling to an external .js file


D1D
9/5/2003 11:42:34 PM
Hi folks.

I'm trying to have Flash open up a popup window of a certain size.
The Flash button call is this:

on (release) {

getURL("JavaScript:openFlashWindow('http://www.donkeyink.com/affiliate.html'
,'affiliate','height=400,width=550,toolbar=no,scrollbars=no') ");
}


My problem is that I have all my JavaScript linked to an external .js file.
The JavaScript that normally sits in the HTML page housing the Flash is
this:

function openFlashWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}

This code now sits in the external .js file and isn't working.

Any ideas how I can make the callout in Flash aware that the code it's
looking for is in the linked file?
Thanks.

JP
www.donkeyink.com

Peter Lee
9/14/2003 2:41:08 PM
This should work, there's nothing extra that you should do. Maybe you
should check that the js file is linked correctly.

Peter

--
Peter Lee

Novel Games - Free Game Downloads and Free Flash Games
Visit us at: http://www.novelgames.com



[quoted text, click to view]
AddThis Social Bookmark Button