A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamically adjust stage width from AS

  1. #1
    Senior Member lowestformofwit's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    160

    Dynamically adjust stage width from AS

    Hi guys,

    I used to be really good with Flash but after 4 years of no use I seem to have forgotten everything...

    What I'm trying to do build an FLV player which will take the size of the FLV movie and dynamically adjust the stage width/height to match the FLV.

    Is this possible? (I'm using Flash 8)

    Thanks.

  2. #2
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    You can't really adjust the stage width/height through actionscript code, you do it through html. Set the flash width/height to 100% and put it in a table or something, then line your movie clips x/y through code based on Stage.width/Stage.height.
    ecards - My full flash site.

  3. #3
    Senior Member lowestformofwit's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    160
    Thanks. I got my head around it in the end.

    I just made the swf scale 100% to the stage size and then altered the width or my movie within it. Once the movie is embedded on the page it will be fine.

    It's awful being out of it for so long, I'd even forgotten how to do a simple trace...

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