A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Oct 2000
    Posts
    205
    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,

  2. #2
    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>




  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center