Revision: 38544
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 5, 2011 01:00 by adrianparr
Initial Code
function mmToPixels(mm:Number):uint { return Math.round(Capabilities.screenDPI * (mm / 25.4)); } var myWidthInMillimeters:Number = 38; var myWidthInPixels:uint = mmToPixels(myWidthInMillimeters); trace("myWidthInPixels: "+myWidthInPixels); // OUTPUT // myWidthInPixels: 108
Initial URL
http://www.adobe.com/devnet/flash/articles/authoring_for_multiple_screen_sizes.html
Initial Description
This is taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
Initial Title
AS3 Millimeters to Pixels
Initial Tags
Initial Language
ActionScript 3