Een popup vanuit Flash, zonder javascript te gebruiken
in uw html bestandje vind je
hier.
Wat je dus doet:
STAP 1
- Maak een knop aan. (in dit geval uw foto's zeker?)
- Plak er deze code aan:
on (release) {
address = "http://games.telenet.be.htm";
target_winName = "popup";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
STAP2:
- Maak een extra layer aan, en zet deze code in uw actions:
_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);");
};
Je zet dus het javascript in je flash file zelf, zonder het in uw html bestand te plaatsen.
Owja, ik heb de source-file ook maar even online gesmeten, die kan je
hier vinden.