views:

8

answers:

1

my movie is 500 by 200 px. However i am loading display object much larger than that and have just a portion of them show. How do i programatically get the visible dimesions? root.stage.width gives me the extended value.

for the sake of good programing practices i dont want to hardcore the values.

+1  A: 

please see Stage::stageWidth and Stage::stageHeight.

greetz
back2dos

back2dos
thanks man, i feel stupid now for now reading the docs carefully enough
vasion
@vasion: don't. it's not super-obvious and one can well expect `width` and `height` to work just the way you did. it's not a mistake I haven't done as well. ;)
back2dos