I’m having trouble creating some kind of code/actionscript to add to a button, which will make a HTML window pop-up with a picture inside. If possible, the window should close again if the picture is clicked…
Anyone have any ideas how I should do this?
I tried a couple of K’s tuts but they didn’t work
#1 . on(release) of flash btn call a javascript Function.
eg. on(release){
getURL(“javaScript:openPopup()”)
#2. In javascript function open the new window
function openPopup(){
var newWin = window.open(“file Name”,“new name”, “features”)
} #3. on Click of Image call a function that close the window
window.close()
Create your HTML page that will popup and use an img tag to insert the picture and what not. I think the picture should be aligned at the very top left of it, or either in the middle. I dont know, try stuff out.