4 Replies Latest reply on Aug 22, 2006 10:10 PM by litdesign

    Fixed size for new browser window

    litdesign Level 1
      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.
        • 1. Re: Fixed size for new browser window
          DazFaz Level 1
          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.
          • 2. Re: Fixed size for new browser window
            Level 7
            >> I want to load sample images as either swf or jpg
            >> in a page that fits the image size exactly.

            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."



            "DazFaz" <webforumsuser@macromedia.com> wrote in message
            news:eceh1i$2g8$1@forums.macromedia.com...
            > 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.
            >


            • 3. Re: Fixed size for new browser window
              litdesign Level 1
              Yep. Sorry for not being more clear. Opening a new window and having it the same size as the inserted image - that is the issue. It will take some time for me to apply your solution. Many thanks.
              • 4. Fixed size for new browser window
                litdesign Level 1
                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.

                http://electricpath.com/litigation.html