How to set the size of html window when opened from Flash movie?
Having trouble getting the html window to open at a specific size when its opened from a Flash movie... grrr Using javascript, and window flashes onscreen at the right size for one millisecond then page opens full-screen.. what the?
Public Comments
- Flash doesn't open windows itself. It either makes a request to simply open a new window from the DOM like an <a> tag would or it calls JavaScript and the script does the opening and sizing of the new window itself. Either way, it's not really a Flash issue. Your best bet is to use something in Flash like this... getURL("javascript:openThisLink('http://intel.com');"); Then you'd need a JavaScript function on the same HTML page where the Flash sits called "openThisLink" that takes a single parameter. The alternative to this is to use something called ExternalInterface, which is a newer way to do something similar to above. Either way, it's JavaScript that opens new windows at particular sizes - assuming the browser permits such actions.
Powered by Yahoo! Answers