i'm trying to create a link from an image that brings up a new window - but i want it to be of a particular width and height, and if possible even position it where it appears on the screen. Is this possible - i'm using flash 4.
Much appreciated,
Printable View
i'm trying to create a link from an image that brings up a new window - but i want it to be of a particular width and height, and if possible even position it where it appears on the screen. Is this possible - i'm using flash 4.
Much appreciated,
Add the following code to a button in flash, changing the name of 'yourfile.html' to whatever your file is called:
getURL ("javascript:newWindow('yourfile.html')");
Then in the HTML page that embeds the movie add the JavaScript code:
<script type="text/javascript">
<!--
function newWindow(htmlFile)
{
mapWindow=window.open(htmlFile, 'mapWin', 'width=300,height=300,left=0,top=0,scrollbars=yes, toolbar=yes,location=yes');
}
-->
</script>
Better yet, see:
http://board.flashkit.com/board/show...threadid=81151