Цитата:
|
Сообщение от villa
 Код:
l_btn.onRelease = function() {
getURL("javascript:winNew = window.open(\"\", \"imageEnlarged\", \"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=300,height=250,left=0,top=0,outerWidth=300,outerHeight=250,innerWidth=300,innerHeight=250,alwaysRaised=1,screenX=yes,screenY=yes ,fullscreen=0,channelMode=0,replace=1\");\r\nwinNew.document.write(\"<body leftmargin=0 topmargin=0><img src=c1.html width=300 height=250 hspace=0 vspace=0 border=0></body>\");", "_self");
};
|
Всё бы хорошо, но при тестировании мувиклипа выскакивает окно Output в котором написано:
"Symbol=cats-1, Layer=Layer 3, Frame=20: Line 1: Statement must appear within on handler
onRelease = function() {"
Под "cats-1" имеется в виду имя мувиклипа в котором находится кнопка.
У меня Flash 6 MX - может, к нему этот код не подходит?