Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Opening a popup window from flash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
artboy_sf - 03 Jul 2008 01:25 GMT
Hi, I'm about to lose it--I've tried everything and nothing seems to work! What
I'm trying to do is open a pop-up window from a swf that needs to have a
certain height and width and no nav bar. I've tried several techniques
including putting javascript in the containing html file and having nothing in
the HTML file. If anyone has any idea please let me know, thanks!
David Stiller - 03 Jul 2008 02:20 GMT
artboy_sf,

> Hi, I'm about to lose it--I've tried everything and nothing seems
> to work! What I'm trying to do is open a pop-up window from
> a swf that needs to have a certain height and width and no nav bar.

   I wonder if you're testing your efforts from the Flash authoring tool.
With the Flash Player security sandbox, lately, you'll have to upload to a
server to test in a browser.

> I've tried several techniques including putting javascript in the
> containing html file and having nothing in the HTML file. If
> anyone has any idea please let me know, thanks!

   I wrote a tutorial on this -- both AS2 and AS3 -- not long ago for
CommunityMX.com.  It's a subscription site, and some of the articles are
free, but this one isn't ... BUT ... you can sign up for a free trial
subscription, check it out, then cancel if you like.

   http://www.communitymx.com/abstract.cfm?cid=F0639

   If I reference an article in my forum replies, I normally try to answer
with a tutorial from my blog (free), or one of the free CMX articles, but I
imagine you've already Googled around a bit.  The CMX tutorial includes
sample files, and you really won't be out any money.

David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."
artboy_sf - 03 Jul 2008 04:19 GMT
Thanks, David
I'll give it a try!

-Patrick
howardstern - 03 Jul 2008 05:28 GMT
Here's code that works great for me.

Good Luck.
Mike.

on (release) {
getURL
("javascript:NewWindow=window.open('http://www.YOURLINKHERE.html','newWin','widt
h=475,height=600,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=No,fu
llscreen=No');  NewWindow.focus();      void(0);");
}
artboy_sf - 03 Jul 2008 18:22 GMT
Thanks, guys. I think maybe I'm within the Flash Security Sandbox somehow.

-Patrick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.