actionscript 3 - Flash Develop with Flex4.6: How to match width and height of SWF to resolution automatically -
my question simple, haven't found answer fits problem. have in main class:
[swf(framerate = "60", width = "900", height = "600", backgroundcolor = "0x333333")]
i want change width , height match resolution of screen automatically. capabilities.screenresolutionx , capabilities.screenresolutiony return width , height of computer screen, cant do:
[swf(framerate = "60", width = capabilities.screenresolutionx.tostring(), height = capabilities.screenresolutiony.tostring(), backgroundcolor = "0x333333")]
because returns error: "error: invalid metadata".
is possible ask? , if possible, how do that?
Comments
Post a Comment