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

flash actionscript

group:

Fixed size for new browser window


Fixed size for new browser window litdesign
8/21/2006 11:33:05 PM
flash actionscript: On my site, http://electricpath.com, from the litigation, presentation and
publication pages, I want to load sample images as either swf or jpg in a page
that fits the image size exactly. Humble request: please keep responses very
simple, is possible. Thanks.
Re: Fixed size for new browser window DazFaz
8/22/2006 12:00:00 AM
My first question is what image size? You can tell a loaded .swf or .jpeg to
fit the size of a .swf holder using the Stage.width-Stage.height params which
are different to _height and _width params as the later refer to movie clips
and the Stage params are well, for the stage area only.
Re: Fixed size for new browser window David Stiller
8/22/2006 8:44:24 AM
[quoted text, click to view]

I *think* litdesign is asking how to open a new window to a set size (I
say that based on the subject line: "Re: Fixed size for new browser
window"). If that's it, the answer is JavaScript. If you have Dreamweaver,
litdesign, look for the Open Browser Window Behavior in the Behaviors panel.
That will write the necessary JavaScript into your HTML page. Once the
JavaScript function has been written, you may invoke that function with the
ExternalInterface class (see the ActionScript 2.0 Language Reference) or the
getURL() function. If you choose getURL(), simply substitute the http://
protocoal with the javascript: protocol.

getURL("javascript:JavaScriptFunctionHere()");


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



[quoted text, click to view]

Re: Fixed size for new browser window litdesign
8/23/2006 12:00:00 AM
David, I think I did at least part of what you suggested. Rather than launch
the page from within a swf file, I built buttons in Dreamweaver and used the
Behaviors panel. It's cool. My first time to use it. It all works well, except
that in Safari, I get scrollbars on the launched window. Not in Opera,
Fireworks or OmniWeb. Thanks.
AddThis Social Bookmark Button