tips | examples | case studies | downloads | educators | contact | home |
To open an HTML pop-up window from within Flash, put this script on a button in your FLA: |
on (release) { getURL("javascript:newWindow=
} window.open('filename.htm','popper1', 'width=500,height=300,scrollbars,resizable'); newWindow.focus(); void(0);"); |
The four indented lines should all appear on one line with no spaces. Change the filename, the width and the height to match your pop-up window needs. If you don't want scrollbars, delete that word and the comma following it. If you don't want the pop-up window to be resized, delete the word "resizable" and the comma preceding it. If you want to have different HTML windows open at the same time, change the window name ('popper1') for each separate window. |