dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: authoring time stage size is not the same as compile

  1. #1
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707

    authoring time stage size is not the same as compile

    hi...i have a movie that extends just over 1000px in height (don't ask why right now...later)- at authoring time, my inspector tells me 1024- but in doing a positioning exercise, upon a trace of the stage, i am getting 806- i even tried adding in the stage.scaleMode and stage.align commands to make sure it is not scaling funny, or anything....any explanations for this unexpected result?

  2. #2
    Junior Member
    Join Date
    May 2004
    Posts
    8
    I'm having the same or a similar problem, the stage is set to the default 550 by 400px in flash, when I do
    Code:
    trace(stage.width);
    it give me 601.5.
    Any ideas.
    Thanks

  3. #3
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,046
    stage.width is not the proper way to calculate the width of the stage at run time. stage.width is going to return the width of all the content placed on the stage.

    stage.stageWidth is what you are looking for.

  4. #4
    Junior Member
    Join Date
    May 2004
    Posts
    8
    Thanks. Just what I was looking for.

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