A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: website

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    5

    website

    ok you make a website... then you want it to open in a browser window that exactly fits the size of you *.swf file
    How to do that?
    Hello

  2. #2
    Senior Member
    Join Date
    Mar 2003
    Location
    New Orleans
    Posts
    191

    use Javascript

    put this in the <head> portion of your html page

    Code:
    <script language="JavaScript">
    <!--
    function window_resizeBy(altez, larg) {
        self.resizeTo(altez, larg);
    }
    //-->
    </script>
    </head>

    Then put this in the body



    Code:
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="window_resizeBy('400','478')">
    chngae ('400', '478') to the size of your movie.
    I'm only in it for the pleasure

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Location
    New Orleans
    Posts
    191

    oops

    Flashkit won't let me post Javascript

    post your email and I'll send you the code
    I'm only in it for the pleasure

  4. #4
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    Hello

  5. #5
    Could u also send that code to me, for furture refrences

    LerT311@hotmail.com
    ?

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