all groups > flash actionscript > july 2006 >
You're in the

flash actionscript

group:

Making a FIXED SIZE, blank browser window


Making a FIXED SIZE, blank browser window Ares94
7/31/2006 9:23:40 PM
flash actionscript:
Here's the deal.
When I click a link that says SPECIAL OFFERS, I need a Flash animation to open
up.
In a NEW, BLANK browser window.

How do I set the width and heigth of that window using ActionScript? Something
like 300x300 px.
Anyone?

THX!
Re: Making a FIXED SIZE, blank browser window David Stiller
8/1/2006 12:10:02 AM
Ares94,

[quoted text, click to view]

I'm afraid ActionScript can't do that. But JavaScript can. :) Here's
a brief tutorial on how to do it with JavaScript (I just happened to Google
it, and this turned up pretty quickly) ...

http://www.pageresource.com/jscript/jwinopen.htm

So, once your JavaScript function has been written in the HTML document
that embeds the SWF, you may use ActionScript to trigger that JavaScript
function. See the ExternalInterface class entry of the ActionScript 2.0
Language Reference for details (specifically, the call() method).


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

AddThis Social Bookmark Button