开发者

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

开发者 https://www.devze.com 2023-01-07 17:27 出处:网络
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 h

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

精彩评论

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