开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜