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
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/” 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