PDA

View Full Version : JavaScript + Flash ??


Deus_m1k3
2 Aug 2005, 9:03pm
Hi!
I need to execute an object created using Flash after it's executed when the user clicks on the object it will open a new HTML page but without status bar or any other tool bar with a specific window size, the position doesn't really matter what I do actually is to open a new window using JavaScript

window.open("index.htm","INFOVIN","left=5,top=5,width=770,height=550,toolbars=no,**********no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,type=fullWindow");
and the woindow.close ();

calling this on the HTML page that envolves the object, but the JavaScript has its limits it can't close a parent window without confirmation... is it posible to execute the JavaScript code with the lfash objet only the "window.open..."

Deus_m1k3
3 Aug 2005, 9:16pm
I've found a solution but involves the flash move attached in a HTML file what I want to do is to open only the Flash movie & from it execute the Javascript code here's what I've foud so far....

on(press)
{
getURL("javascript:NewWindow=window.open('index.html','','left=5,top=5,width=770,height=550,toolbar=No,**********No,scrollbars=yes,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

but as I said this only works if the movie is published as a HTML file & I want to make it directly