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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -