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);");
}
Thanks, guys. I think maybe I'm within the Flash Security Sandbox somehow.
-Patrick