Skip navigation
luciewong
Currently Being Moderated

change size of index.html dynamically?

Jan 31, 2007 10:02 AM

Hi,
my original index.html has a size of 752x1250.

On Frame 1 it loads certain data (background color and user defined website size) in with asp.
When this data is received, I change the website color with an “getUrl” command as the user has defined the color.
This works fine.

But can I also change the document size of index.html at the same time.
If the user has defined the size 752x2500 height, then I want to change the height of index.html to this size as I do the background.

Is this possible?
Thank you for your help.

Regards,
Lucie
 
Replies
  • Currently Being Moderated
    Jan 31, 2007 11:54 AM   in reply to luciewong
    yes have Flash call a Javascript function to resize window.
     
    |
    Mark as:
  • kglad
    62,004 posts
    Jul 21, 2002
    Currently Being Moderated
    Jan 31, 2007 12:48 PM   in reply to luciewong
    you can change the size of the browser window but you can't change the flash stage dimensions. you'll need a work-around (use a mask, for example) to make it appear the stage dimensions have changed.
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 31, 2007 3:40 PM   in reply to luciewong
    actually you can change the flash stage dimensions but however i cannot reveal my method
     
    |
    Mark as:
  • kglad
    62,004 posts
    Jul 21, 2002
    Currently Being Moderated
    Jan 31, 2007 6:55 PM   in reply to luciewong
    and i have a sure fire method to generate unlimited amounts of money legally in little time and with no effort, but this quick reply box is too small to contain the information.
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 1, 2007 9:24 AM   in reply to kglad
    kglad - touché lol
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 1, 2007 10:14 AM   in reply to luciewong
    Why not using stage resize?
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2007 1:14 AM   in reply to luciewong
    HaHa! I found it:

    Stage size control with ActionScript
    This sample demonstrates how the Stage.scaleMode property affects the values of Stage.width and Stage.height when the browser window is resized.

    You can find the sample source file, stagesize.fla, in the Samples folder on your hard disk.

    In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\ActionScript\StageSize.
    On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/Samples/ActionScript/StageSize.
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2007 7:43 AM   in reply to luciewong
    How about this:
    instead of changing the stage's dimensions you use a huge stage with the noscale option selected and then whenever you change the browser's size all you need to do is relocate the movieclips in your movie to the correct position.

    Cheers,
    Gorka
    www.AquiGorka.com
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points