A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Pop up window from Flash with size

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    7
    I hope somebody can help me with this. I developed my site in Flash and I would like to open a link from flash on an HTML page that has the dimensions I need and at the same time to be centered on. I know this is done with Javascript but I'm not sure how. I've seen some samples where they use OpenJava script from flash but I'm not sure how they do it and where is it that they put the size for the Pop up window.

    Thanks before hand
    Memo

  2. #2
    mentally unstable member smayer72's Avatar
    Join Date
    Jan 2001
    Posts
    527
    Put this action on your button in flash

    getURL ("JavaScript:NewWindow('page.html','windowname','3 50','400','no')");

    The no at the end hides the top toolbar of the browser

    Hope this helps

    Scott

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    7
    I did just that and It didn't work. Let me explain in case I'm making a mistake.
    I have an HTML page named paranoia.html in the same folder where I have the The other HTML page that has the bigger movie from were i click. So according to what you told me i wrote on the button properties

    getURL ("JavaScript:NewWindow('paranoia.html','paranoia', '150','600','no')");

    But when I click on the button once I'm previewing it in the browser the window Kind of shakes but it doesn't open. Please Advise

  4. #4
    mentally unstable member smayer72's Avatar
    Join Date
    Jan 2001
    Posts
    527
    Sorry man, but that is the extent of my javascript knowledge presently. It has always worked for me before.

    Scott

  5. #5
    Senior Bumbler
    Join Date
    Dec 2000
    Posts
    522
    Try my smart clip (see footer). It requires no scripting at all.


  6. #6
    Senior Member
    Join Date
    Jan 2001
    Posts
    591
    wdglide ROCKS!
    Just in case you're not using Flash 5
    Here's a tutorial which has an Open Centered Window script:
    http://www.san-fran.com/tutorials/fl...lmenu_wframes/

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Posts
    252

    Post

    I answered this exact question for someon just the other day checkout:

    http://board.flashkit.com/board/show...hreadid=142157

    Just as some extra explanation the new window has to contain a html page as it has javascript in it, if you have any question let me know.

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