Ciao a tutti... ho questo codice per flash mx che serve per fare aprire delle popup con dimensioni che voglio io. Funziona perfettamente con flash mx, ma ho necessità di adattarlo per l'8.
Ecco il codice:
on (release) {
nameWin = "preload"
uUrl = "http://miosito.it/sito/card.htm";
wdth = "740";
hdth = "425";
scrollbars = "yes";
toolbar = "no";
menubar = "no";
resizable = "no";
status = "no";
location = "no";
left = ("(screen.availWidth/2)-(" add wdth/2 add ");");
top ="((screen.availHeight/2)-(" add hdth/2 add "))";
getURL ("javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);");
}
I seguenti errori sono qui:
**Error** Scene=Scene 1, layer=tasti, frame=1:Line 12: ')' expected
left = ("(screen.availWidth/2)-(" add wdth/2 add ");");
**Error** Scene=Scene 1, layer=tasti, frame=1:Line 13: Syntax error.
top ="((screen.availHeight/2)-(" add hdth/2 add "))";
**Error** Scene=Scene 1, layer=tasti, frame=1:Line 14: ')' or ',' expected
getURL ("javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);");
Total ActionScript Errors: 3 Reported Errors: 3
Grazie per l'attenzione!