digitalpencil
Programmer
I have created a photo album in flash which I have exported to a html file. The photoalbum uses thumbnails which I have converted into buttons. I am trying to make the buttons actions open the full size image in a new popup window. I have got the link itself sorted it's just how to implement it correctly into flash's 'Get URL' function. The page that the album is in has the following script in the <head> for the popup.
<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>
And the link that I am trying to use in flash is as follows:-
<a href="#" onClick="launchwin('testphotoalbumpopup.jpg','main','width='+(320)+',height='+(240)+',top='+(85)+',left='+(85)+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0' )">
This is tried and tested with a standard HTML text link but I don't know how to go about putting it into Flash.
If you have any ideas as to how to get this script to work or any other methods of displaying popup windows at specific sizes and positions on the page then PLEASE, let me know.
Any help given is much appreciated,
David Grant, Digital Pencil Design
<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>
And the link that I am trying to use in flash is as follows:-
<a href="#" onClick="launchwin('testphotoalbumpopup.jpg','main','width='+(320)+',height='+(240)+',top='+(85)+',left='+(85)+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0' )">
This is tried and tested with a standard HTML text link but I don't know how to go about putting it into Flash.
If you have any ideas as to how to get this script to work or any other methods of displaying popup windows at specific sizes and positions on the page then PLEASE, let me know.
Any help given is much appreciated,
David Grant, Digital Pencil Design