1 Reply Latest reply on Jul 19, 2010 9:16 AM by Flex harUI

    SWFLoader.content: stage width and height, can i override to return proper results  ?



      I'm loading with SWFLoader games that where written using stage functions to get the width and height of the stage and to draw the game and calculate game movements accordinly. When I load a game using SWFLoader, the stage size changes from the stage size of the flash application that i loaded with SWFLoader to the stage size of my entire flex application with breaks the loaded flash application.


      is there a way to override the stage related functions in the loaded flash application in order for them to return the proper value ?



      if my flash application is width=50px height=50px and it's located at my flex stage at x=20px width=20px,


      then the width and height of the stage of the flash application will return 70px.


      is there a way to resolve that ?