A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: Any Suggestions?

  1. #21
    i tried stipping out the code and rewriting it the way that me222 has been saying, i'm hoping that i have just been missing something small, if it doesn't work now i don' know what to do.

  2. #22
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    I hate to say this, but still doesn't work. No full screen anymore though : )

  3. #23
    it should work now(fingers crossed)

  4. #24
    The Definition of... Urbansory's Avatar
    Join Date
    Nov 2000
    Location
    Cleveland, OH
    Posts
    702
    Aiight, it works. So what did you do?

  5. #25
    the button inside flash needs to have
    on (release) {
    getURL ("javascriptpenNewWindow('http://blah.html,'thewin','height=400,width=400,toolbar=n o,scrollbars=no') ");
    }

    and then the javascript inside the <head> tags of the window that holds the swf


    <script language="JavaScript">
    function openNewWindow(URLtoOpen, windowName, windowFeatures) {
    newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
    </script>

    voila

  6. #26
    the button inside flash needs to have
    on (release) {
    getURL ("javascript:openNewWindow('http://blah.html,'thewin','height=400,width=400,toolbar=n o,scrollbars=no') ");
    }

    and then the javascript inside the <head> tags of the window that holds the swf


    script language="JavaScript">
    function openNewWindow(URLtoOpen, windowName, windowFeatures) {
    newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
    script>

    voila

  7. #27
    Junior Member
    Join Date
    Feb 2002
    Posts
    9

    Post What works for me

    I'm a little late to this thread but I thought I would put my 2 cents in.

    This is the script that I wrote to get around this MS blunder:

    function popit(url,w,h) {
    if((navigator.userAgent.indexOf("Mac",0) > -1) && (navigator.userAgent.indexOf("MSIE",0) > -1)) {
    w = w - 16;
    h = h - 16;
    }
    eval("PopWin=window.open('" + url + "', 'MainPopWin', 'width=" + w + ",height=" + h + ",resizable=0,screenX=40,screenY=40,left=40,top=40 ');");
    }

    I like this script because it will work with whatever size window I want to pop-up, and doesn't require an intermediate page or additional javascript code. I haven't tested it widely but has worked for all the versions of IE and NS (on Mac and Win) that I have tried it with.

    Mac

  8. #28
    Junior Member
    Join Date
    Mar 2002
    Posts
    2

    SImple Alternative

    Just set the swf in the page you are displaying to be 100% by 100%. This isn't a problem for most swfs and should display fine regardless of browser. If you have a swf that has to be the exact pixels of the stage you will have to use a more complex version as talked about earlier in this thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center