# With AS this MUST be possible? POP

**URL:** <https://forum.kirupa.com/t/with-as-this-must-be-possible-pop/111199>\
**Category:** Uncategorized\
**Created:** [May 24, 2004, 6:23pm UTC](https://forum.kirupa.com/t/with-as-this-must-be-possible-pop/111199 "2004-05-24T18:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sprite](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sprite](https://forum.kirupa.com/u/sprite)\
**Post date:** [May 24, 2004, 6:23pm UTC](https://forum.kirupa.com/t/with-as-this-must-be-possible-pop/111199/1 "2004-05-24T18:23:16Z")

</div>

Hi Guys

I’m looking to create a popup which opens a “template” html page with an image placeholder. This way you should be able to send a variable from the swf and open up the same html page each time but the image would change as you change the variable from the flash button.

Basically I have flash page containing various thumbnails and when clicked, each one will open a larger version, but I dont want to make a html page for each one so rather ‘send’ the filename to the html page if this is possible??

there is a similar topic at a java script forum here:

[http://www.webmasterworld.com/forum91/725.htm](http://www.webmasterworld.com/forum91/725.htm)

I was given this:

\<html\>

\<head\>  
\<title\>Image viewer\</title\>  
\<script\>  
function loader(){  
var my\_pic = document.location.search.substring(1);  
document.pic1.src = my\_pic;  
}  
\</script\>  
\</head\>

\<body onload=“loader()”\>  
\<img src=“[http://www.weav.co.uk/dj/dressing/](http://www.weav.co.uk/dj/dressing/)” name=“pic1”\>  
\</body\>

\</html\>

but dont really know how to get it all to work.

This is on my button

on (press) {  
// customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “myimage.jpg”;  
target\_winName = “popup”;  
width = 300;  
height = 451;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
// sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

and this is on the timeline:

Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“javascript: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);");  
};

I just basically want the swf file to decide which jpeg is to be loaded into the popup.html.

HELP!!!

Sprite

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 24, 2004, 9:41pm UTC](https://forum.kirupa.com/t/with-as-this-must-be-possible-pop/111199/2 "2004-05-24T21:41:43Z")

</div>

No need to crosspost:\*(

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2004, 1:42am UTC](https://forum.kirupa.com/t/with-as-this-must-be-possible-pop/111199/3 "2004-05-25T01:42:28Z")

</div>

As scotty said, please do not crosspost sprite 😉

[http://www.kirupaforum.com/forums/showthread.php?t=47970&](http://www.kirupaforum.com/forums/showthread.php?t=47970&)
