Hi, I actually have a movie with a button to open a pop-up window using this AS:
on (release) {
getURL("javascript:window.open('foto.php?foto=maccha_team.jpg','Foto','fullscreen=yes,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no'); void(0);", "", "GET");
}
it works fine, but now I need to make the URL depending on variables which are established through buttons clicks.
I try to make it works with this code:
button 1 //set the url for the pop-up
on (release) { biciURL="javascript:window.open('foto.php?foto=saga_1.jpg','Foto','fullscreen=yes,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no'); void(0);";
}
button 2 //my old pop-up button
on (release) {
getURL(biciURL);
}
but it doesn't works, I get a syntax error in my browser window.
If I use
on (release) {
getURL(biciURL,"","GET");
}
I get the same error.
Any ideas?
Thanks a lot.
Farid