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
.
精彩评论