Skip to content

Instantly share code, notes, and snippets.

@twinge
Created January 25, 2010 17:17
Show Gist options
  • Save twinge/286036 to your computer and use it in GitHub Desktop.
Save twinge/286036 to your computer and use it in GitHub Desktop.
function loadPrintable(e:Event)
{
trace(detail.mcProducts.supplierId.text);
var url:String = xmlContent.appSettings.setting.(@name == "printableStockingList") + "?id=" + detail.mcProducts.supplierId.text ;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank'); // second argument is target
} catch (e:Error) {
trace("Error occurred!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment