dynamically obtaining movie width/height

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default dynamically obtaining movie width/height

    is there a way to dynamically obtain the width/height of the movie (.swf) I am working in?
    asiabackpacker Guest

  2. Similar Questions and Discussions

    1. how to get stream width and height?
      hello; is there a way to get a streams width and heigh so that I can dynamically change the size of the video object? thanks dsdsdsdsd Chicago
    2. Dynamically changing Application height & width
      Hi, Any one know How to change Application height & Width Dynamically using Action Script? shammi
    3. Stage width & height
      Has anyone else noticed that stage.width and stage.height report incorrectly when yopu test your movie at 100% Does anyone have a good way round...
    4. Can't control height and width
      When I draw a rounded rectangle, i can no longer get a Height and Width measurement readout from the properties window. It gives me 64000 for the...
    5. Obtaining Width and Height for an Image
      I am having a problem here. I have an ASP page which displays different images according to the querystring and the images are all of different...
  3. #2

    Default Re: dynamically obtaining movie width/height

    the stage has width and height properties that you can access. and each movieclip has _width and _height properties that you can access and change.
    kglad Guest

  4. #3

    Default Re: dynamically obtaining movie width/height

    i am looking for a way to access the width and height of the stage. Obviously
    there is no way to change this dynamically, but I just want to know if there is
    a way to access this dynamically, and if so how?

    asiabackpacker Guest

  5. #4

    Default Re: dynamically obtaining movie width/height

    as mentioned above you can use:

    stage.width;
    stage.height;
    kglad Guest

  6. #5

    Default Re: dynamically obtaining movie width/height

    well, that's easy enough-thanks.
    For some reason though, it comes up as four pixles under the actual stage dimensions, but I can definately work around that
    asiabackpacker Guest

  7. #6

    Default Re: dynamically obtaining movie width/height

    my bad. be sure to use Stage.height and Stage.width NOT stage with all lowercase letters.
    kglad Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139