I have created a picture gallery within Flash with 20 or so small pictures. When I click on a picture, I would like to open a page called “picture.html” with attributes. Ive got it working, sort-of, with the following code I found here on this site (thanks! by the way)
in my button I have:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “picture.html”;
target_winName = “kirupa”;
width = 800;
height = 500;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
…and in a Actions layer, I have:
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL(“javascript: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+"))+’"+"’);void(0);");
};
Anyway, its working fine, except I would like to know if its possible to have only 1 “picture.html” file for all my 20 pictures in the photo gallery.
I know that somewhere within picture.html, I need to open an image.jpg. I would like to pass the big picture’s file name to the picture.html page from the flash button. So, how would I pass “picture1.jpg” to “picture.html”, and within “picture.html” how would I open an image from a variable?
Thanks in advance!