开发者

flex 4 swfloader: SWFLoader.content.stage.width and height returns the main stage width and height

When I load a flash application using SWFLoader, the Stage width and height of the loaded application becomes the stage of the main flex application. so if i created a game that uses stage width and height to calculate where to draw, it actually draws outside of the bounds of开发者_运维技巧 the loaded application stage because it gets the width and height of the entire screen. how can i resolve this issue?

thanks


This is a common mistake, Use stage.stageWidth and stage.stageHeight.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜