Created
May 13, 2011 08:55
-
-
Save peterblazejewicz/970224 to your computer and use it in GitHub Desktop.
printing from embedded browser instance on Win/Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function printHandler(event:MouseEvent):void | |
{ | |
if(browser) | |
{ | |
if(flash.system.Capabilities.os.toLowerCase().substr(0, 1) == "w") | |
{ | |
browser.print(); | |
} else | |
{ | |
browser.goto("javascript:window.print();"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment