A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: java scirpt for pop up window

  1. #1
    i need the java scirpt for pop up window to link from flash itself, with the dimenions. thanks

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Manchester, UK
    Posts
    454
    in your flash movie write a function in the main time line

    function newBrowserWindow(theURL){
    getUrl("javascript:newBrowserWindow('"+theURL+"'); ");
    }

    you can now call this function from anywhere in your movie, for example...

    _root.newBrowserWindow("yourPage.htm");

    in your html page, inside the head tag, write the following code...

    function newBrowserWindow(theURL){
    var newWindow = window.open(theURL,"","height=400,width=400");
    }
    You can add fuctionality to the window after the width tag address bar status bar scrollbar etc
    hope this helps
    J

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