Printing with AS3 PrintJob

This is some basic code to get started with printing in as3. Printing isn’t the easiest thing to do in flash and is something that hasn’t been improved upon too much throughout the years. Maybe with the next release of flash printing will become easier.
function printMe(e:MouseEvent):void
{
//a variable to hold your new print job
 var my_pj:PrintJob = [...]

Right Click Context Menu

Do you need to disable the right click menu when a flash movie is running? This post is for you!
//make a variable to hold a refernce to the right click menu
var myMenu:ContextMenu = new ContextMenu();
//hide ALL the defaulty items flash has on it’s right click menu
myMenu.hideBuiltInItems();
//make a new item on the right click menu and [...]


Tags

.parent actionscript3 actionscript 3 actonscript 3 alpha mask as3 as3 external swf as3 mask blur mask button button code buttonMode buttons cacheAsBitmap child children communicate swf default highlight default yellow disable tab disable yellow display object list event listener external swf as3 filter mask Flash flash cs3 gradient mask hiearchy tree listeners load external movie load external swf loading external swf loadmovie as3 mask movieclip tabchildren tabenabled tab key tab yellow text yellow glow yellow highlight _root

a

Archives

Recent Posts

Flash

Web Design

Pages

actionscript 3, as3, flash, flash cs3, web animation

Categories