A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button: Loading swf in new window

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    22

    Button: Loading swf in new window

    Hi,
    I need help with a simple actionscript. All i need is to link a button so that it opens an swf in a new window (without the use of html).

    so far I have something like:

    on (release) {
    loadMovie("newflash.swf", "20");
    }
    the problem with this code is that it opens it in the same window.

    thanks

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    if you just want a new browser window use the following

    Code:
    on(release){
        getURL("http://www.yoursite.com/newflash.swf","_blank");
    }

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