Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching specifically sized and positioned popup windows in flash

Status
Not open for further replies.

digitalpencil

Programmer
Apr 8, 2001
165
GB
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=&quot;JavaScript&quot;> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE=&quot;JavaScript1.1&quot;> javascript_version = 1.1;</SCRIPT>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

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=&quot;#&quot; onClick=&quot;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' )&quot;>

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
 
hi David

2 options in the FAQ section:

faq250-697
faq250-611

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top