actionscript 3 - Can I detect if the monitor is wide or Square and set Video accordingly? -
I created a Flash presentation that runs in full screen, is a few seconds animation, then a video starts and When the video goes to this main menu.
The video is with 720x1080 (16: 9), but my document in flash is 768x576 (4: 3). I've resized the video according to the 768x576, so it comes black and white at the top and bottom. It is fine when my Flash presentation runs on the square monitor, whether the monitor is wide. And I need an "action script" to detect the type of monitor (wide or square), if the video keeps the same on its square, but if the monitor is wide then it starts the video in full screen.
You can use the square, it has two properties, Would you like to re-think your assumption that a monitor square is a screen resolution of either 4: 3 (640x480, 800x600, 1024x768, 1280x1024) or any other aspect on my wide screen which is monitored Neither is 4: 3 nor class (1920x1080). You want to do some research to see which ratios are screen monitors (laptops have multiple values). Your code should ask the Flash Player for screen resolution: Then you can set the appropriate time to switch to full screen or render the video at regular size (768x576). I can think of some ways of deciding it, I am sure you too can. There are some ideas in the pseudo code to think of the appropriate solution for your app: screenResolutionX And the
screenResolutionY , which gives you this information, gives you the resolution of the primary screen.
var ScreenView: number = capabilities; ScreenshotsXx; Var ScreenHight: Number = Capabilities Screensaver Y;
If the screen is not 4: 3, then widen the screen and screen Width of> Video's actual width (1080) Use full screen
Comments
Post a Comment