Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Default Create a popup window with specific size

    Hi,

    I'm trying to create a popup window that opens when a button on a flash movie is pressed. Here is the link that I got from another site on how to do it, but it's not working. http://www.macromedia.com/cfusion/kn...fm?id=tn_14192

    I'm trying the Javascript answer, the second way to do it listed on the page. So far here is what I have:
    On the button on the flash movie:
    on(press){
    javascriptpenNewWindow('http://www.classicnursery.com/popup.html','thewin','height=285,width=350,toolbar =no,scrollbars=yes')
    }

    In the index_home.html page code in the <head> tags:
    <script language="JavaScript">
    function openNewWindow('http://www.classicnursery.com/popup.html', 'thewin', windowFeatures) {
    newWindow=window.open('http://www.classicnursery.com/popup.html', 'thewin', windowFeatures); }
    </script>

    I don't think that I understand what they want me to put for "windowFeatures" at the end of those two lines, it says to put info related to: 'thewin','height=400,width=400,toolbar=no,
    scrollbars=yes'
    But I havn't gotten it to work. I hope that you can help, this is a pretty big part of this page! Thanks!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    You need to use the getURL method to open a javascript pop up window....

    Code:
    on &#40;release&#41; &#123;
    getURL &#40;"javascript&#58;NewWindow=window.open&#40;'http&#58;//www.classicnursery.com/popup.html','newWin','width=350,height=285,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No'&#41;;  NewWindow.focus&#40;&#41;;      void&#40;0&#41;;"&#41;;
    &#125;
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Popup or notification for timer?
    By coneybeare in forum Flash Scripting
    Replies: 1
    Last Post: 11-11-2006, 04:10 PM
  2. The only person in the world with this popup window problem!
    By larsmith11 in forum Advanced Flash
    Replies: 2
    Last Post: 06-22-2006, 07:03 AM
  3. stop exit popup
    By adrock2005 in forum Advanced Flash
    Replies: 4
    Last Post: 10-05-2004, 01:32 AM
  4. Window size when viewing over the net
    By xanderbeedle in forum General Flash
    Replies: 1
    Last Post: 06-03-2004, 01:24 AM
  5. passing variables to popup
    By el jefe in forum Flash Scripting
    Replies: 2
    Last Post: 04-08-2004, 07:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial