JavaScript + Flash ??

edited August 2005 in Internet & Media
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

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

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..."

Comments

  • edited August 2005
    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,location=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
Sign In or Register to comment.