A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: auto resize

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Location
    San Diego, Ca
    Posts
    21

    auto resize

    I have a web site that is half swish and half html and I have designed it so it looks good on a 1024X768 format and i have no scrollbars or menu buttons because I want it self contained.

    It there any code that can be added to my site to make everything shrink in size for those who are on 800x600 format.

    I don't want them to have to scroll.

    www.destinyfaire.com

    gary roberts
    Gary Roberts

  2. #2
    Hope this Helps

    <SCRIPT language=JavaScript>
    <!--
    self.moveTo(0,0)
    self.resizeTo(screen.availWIdth,screen.availHeight )
    -->
    </SCRIPT>

  3. #3
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    That script wont help.

    If you place a movie into a page
    the object embed is the actual decider of how large
    or small the movie is.

    You could set those dimensions to percentages however,,,,,,,

    Once you do that your bitmap images will look distored.
    If the swf is not being displayed in the res that it was
    originally designed for.

    There is also a rather complicated method
    of res detect and browser redirect available thru
    javascritping
    However,,,,,,

    Once again if an swf is not embedded to it's
    original dimensions once again the bitmap images will look
    distorted.

    You could also open your swi group everything as a group
    resize the group then ungroup and resize your movie.

    However once again you would need to go in and edit your
    images externally and re-import them because they will look
    distorted.

    Frets

  4. #4
    Junior Member
    Join Date
    Jan 2003
    Location
    San Diego, Ca
    Posts
    21

    didn't work

    that particular code resized the brower to nothing only the address bar and top of browser showed up. after I could resize it by pulling it down but the content didn't change size.

    Is there a particular place you should put the code?

    I tried the head and then the body both didn't work.

    do you have another idea? I would really appreciate it.

    gary
    www.destinyfaire.com
    Gary Roberts

  5. #5
    Harmony & Justice Veniogenesis's Avatar
    Join Date
    Jul 2002
    Location
    Washington D.C.
    Posts
    4,434
    You can resize the SWF part by changing
    the embed code from a set pixel size to
    a percentage.

    However, it will be impossible (without
    the use of COMPLEX js) to resize the
    html text dynamically.
    Flash Kit Moderator . Duke University
    Thomas Jefferson High School for Science and Technology

  6. #6
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    we posted close to the same time
    look up

  7. #7
    Junior Member
    Join Date
    Jan 2003
    Location
    San Diego, Ca
    Posts
    21

    thanks frets

    although what you said has kind of gone over my head to a bit

    gary
    Gary Roberts

  8. #8
    Junior Member
    Join Date
    Jan 2003
    Location
    San Diego, Ca
    Posts
    21

    how bout this

    would be be best just to have two versions of the site.

    one designed to fit each resolution?

    gary roberts
    www.destinyfaire.com
    Gary Roberts

  9. #9
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    That's really about you.
    And where you see your audience.

    It took me a long time to move
    away from 800 x 600 site design.
    but looking back I'm glad I did.
    And if some user want's to increase
    the display size they can.

  10. #10
    Junior Member
    Join Date
    Jan 2003
    Location
    San Diego, Ca
    Posts
    21

    thanks

    thanks for your feedback. If it were up to me I would keep it
    1024x768 however the guy I am designing it for uses the smaller format and that is the way he wants it.

    thanks

    gary
    www.reelediting.com
    Gary Roberts

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