开发者

how do i get the dimensions of the visible swf in AS 3.0

开发者 https://www.devze.com 2022-12-26 05:55 出处:网络
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

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 pract开发者_开发问答ices i dont want to hardcore the values.


Please see Stage::stageWidth and Stage::stageHeight.

0

精彩评论

暂无评论...
验证码 换一张
取 消