Go Back   SitePoint Forums > Forum Index > Design Your Site > Flash and Actionscript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jul 15, 2003, 19:51   #1
ArticleBot
SitePoint Articles
 
ArticleBot's Avatar
 
Join Date: Apr 2001
Posts: 0
Discussion thread for Flash Script - Popup Windows in Flash

This is a dedicated thread for discussing the SitePoint article 'Flash Script - Popup Windows in Flash'
ArticleBot is offline   Reply With Quote
Old Jul 15, 2003, 19:51   #2
Anonymous
SitePoint Community Guest
 
Posts: n/a
how would i be able to add a swf as the popup??
  Reply With Quote
Old Jul 22, 2003, 16:55   #3
Anonymous
SitePoint Community Guest
 
Posts: n/a
how can i use scrollbars in the pop-up windows?
  Reply With Quote
Old Jul 23, 2003, 06:33   #4
Shippy
SitePoint Member
 
Join Date: Jul 2003
Location: Toronto
Posts: 3
This JavaScript provided by SitePoint ScriptMaster: "Flash Script -- Pop-up Windows in Flash" works great - Thank you. But... not if the person visiting your web site does not have the same monitor display settings as you.

I have my monitor display set to 1024 x768. The pop-up window that launches from Flash using this JavaScript sets the size and position of the pop-up on my monitor screen. I used coordinates and size that look great at 1024 x 768 -- until I change the monitor display settings to 800 x 600.

At 800 x 600 (which seems to be the setting that about 27% of the hits I'm getting on my site use) the pop-up window appears way too large and runs off the screen to the left.

Is there a work around for this?

Is there a "sniffer" that can be placed in the html that will determine the screen size of the user. Is there JavaScript that can be added to the existing script that will use this "sniffed" info and (possibly with an if/or statement) launch the correct size for 1024 x 768 or 800 x 600?

Failing the above... is there JavaScript that will center the pop-up on a display rather than set coordinates from the top and left?

Thanks in advance for your suggestions.

Shippy
Shippy is offline   Reply With Quote
Old Aug 8, 2003, 08:39   #5
Anonymous
SitePoint Community Guest
 
Posts: n/a
How about if you need to pass a variable from the flash movie to the new window?

at the moment i've got:

getURL("xml.php?data=" + myDocument, "_blank", "POST")

any ideas?
  Reply With Quote
Old Feb 18, 2004, 14:45   #6
Anonymous
SitePoint Community Guest
 
Posts: n/a
I also have this problem on posting the variables... any luck?
  Reply With Quote
Old Nov 17, 2004, 05:01   #7
Anonymous
SitePoint Community Guest
 
Posts: n/a
Thanks for the script, but there's one obvious error. All Flash buttons need an "on" assignment.

The getURL script you provided works for a frame of a movie, which is fine. But on a button, it produces a syntax. Add something like "on (release) {" at the front and it'll be perfect. =]
  Reply With Quote
Old Jun 19, 2005, 08:17   #8
Anonymous
SitePoint Community Guest
 
Posts: n/a
I would also like to know if it's possible to use scrollbars in the pop-up.
  Reply With Quote
Old Jun 19, 2005, 19:56   #9
jim_morrison3
SitePoint Wizard
 
jim_morrison3's Avatar
 
Join Date: Apr 2004
Location: UK
Posts: 2,266
Hi,
Yes if the dimesion of your swf file including/excluding the HTML content goes beyond the bounds of your pop up window.
jim_morrison3 is offline   Reply With Quote
Old Aug 29, 2005, 03:36   #10
vbishop
SitePoint Community Guest
 
Posts: n/a
Great script. I'm wondering if the resulting pop-up can be made to stay on top of other windows until it is closed by the user. AND, is it possible for the content to pop-up in the same window rather than a new window for each click? Thanks again.
  Reply With Quote
Old Dec 11, 2005, 13:34   #11
Scott
SitePoint Community Guest
 
Posts: n/a
Is it possible to create a popup (and still control the popup window size and location) without using javascript in a flash link? Could you provide an example?
  Reply With Quote
Old Dec 21, 2005, 03:09   #12
etsuko
SitePoint Enthusiast
 
etsuko's Avatar
 
Join Date: Jul 2003
Location: Malaysia
Posts: 95
Urm.. I can't seem to get this to work in Flash 8. T_T
etsuko is offline   Reply With Quote
Old Mar 13, 2006, 08:34   #13
jerlo
SitePoint Community Guest
 
Posts: n/a
Add the on(release) function to your action, and it should work fine.
  Reply With Quote
Old Sep 4, 2006, 06:53   #14
revell
SitePoint Community Guest
 
Posts: n/a
The script works in Flash MX, but only IE can open popup window. In Mozilla doesn't work. Can the script be modified for Mozilla?
  Reply With Quote
Old Oct 2, 2006, 21:00   #15
Leah
SitePoint Community Guest
 
Posts: n/a
Yeah I can't get flash 8 to respond to this popup either. It comes up as a normal html full size document in the same browser window
  Reply With Quote
Old Oct 22, 2006, 14:38   #16
Venki
SitePoint Community Guest
 
Posts: n/a
How to make with scrollbars on this code. can any one help pls...
  Reply With Quote
Old Jul 18, 2007, 04:17   #17
Bora
SitePoint Community Guest
 
Posts: n/a
very very thanks
  Reply With Quote
Old Aug 5, 2007, 02:05   #18
bocian
SitePoint Community Guest
 
Posts: n/a
thanksssssss
  Reply With Quote
Old Jan 29, 2008, 18:21   #19
sagiv
SitePoint Community Guest
 
Posts: n/a
thank you very much!!!
  Reply With Quote
Old Apr 25, 2008, 07:15   #20
guizmoh
SitePoint Community Guest
 
Posts: n/a
thanks a lot, i'll try this now :)
  Reply With Quote
Old Oct 24, 2008, 10:05   #21
Loyd Atwood
SitePoint Community Guest
 
Posts: n/a
I am trying to get this to work in Flash CS3 (saving as Flash 8) but I get an IE error: "Internet Explorer cannot download" when I test in Preview and I get an "object expected" error when I run the HTML in IE. The popup file is called "stuff.html" and I used your code, substituting only the HTML file name. Any help? Thanks.
  Reply With Quote
Old Apr 20, 2009, 17:30   #22
priani
SitePoint Community Guest
 
Posts: n/a
Excelente!!!
  Reply With Quote
Old May 13, 2009, 07:11   #23
kushrooms
SitePoint Enthusiast
 
Join Date: Apr 2009
Posts: 26
thanks works very well!!!
kushrooms is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 11:56.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved