VIDEO: How to Print from Flash Using ActionScript

Sun, Dec 20, 2009

ActionScript

VIDEO: How to Print from Flash Using ActionScript

This movie requires Flash Player 9

Print from Flash using ActionScript. A few requirements. You will need to tell what printer to use, with the start method. The start method will pop the printer selection dialog box
Another requirement for a print job to be sent is to have at least one page. No pages, no printing.

Download complete tutorial, without advertisement, on FLV format with tested source FLA files: $5

For the Adobe Reference on printing, click here

HERE IS THE SOURCE CODE!

//The ActionScript 3.0 Print from Flash Using ActionScript 3.0
// Avraham Saltoun
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE

print_btn.addEventListener(MouseEvent.CLICK, printMe);

function printMe (event:MouseEvent) {
var myPrintJob:PrintJob = new PrintJob();
// this creates a print job

myPrintJob.start();
//This will pop the dialog box
//with printer options
// this is required in order to send

myPrintJob.addPage(circle_mc);
// this will add a page
// the page will contain only the circel

myPrintJob.addPage(this);
// this will add an additional page
// that will show the whole stage
// this means the circle on top of
// the square

myPrintJob.send();
// This will only work if
// print start and at least one page
// was added!!

// thanks for watching !!!

}

Related Articles:

, , , , , , , , , , , , , , , ,

1,480 Responses to “VIDEO: How to Print from Flash Using ActionScript”

  1. rechtsschutzversicherung testp Says:

    Today, while I was at work, my sister stole my iphone and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone! [url=http://projektnetzwerk24.de/auto___verkehr/kfz-versicherungen]rechtsschutzversicherung test[/url]

  2. finanzierungsrechner immobilieni Says:

    Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say fantastic blog! finanzierungsrechner immobilien

  3. Online high school diploma Says:

    Hi there, just became alert to your blog through Google, and found that it is really informative. I am gonna watch out for brussels. I will be grateful if you continue this in future. Numerous people will be benefited from your writing. Cheers!

  4. hausratversicherung vergleichb Says:

    Awesome blog! Do you have any hints for aspiring writers? I’m hoping to start my own website soon but I’m a little lost on everything. Would you suggest starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I’m totally overwhelmed .. Any ideas? Many thanks! hausratversicherung vergleich

  5. stoffwechsel ankurbelnx Says:

    Hi there! I know this is kind of off-topic however I had to ask. Does building a well-established website such as yours require a massive amount work? I am completely new to operating a blog but I do write in my diary everyday. I’d like to start a blog so I can share my personal experience and thoughts online. Please let me know if you have any recommendations or tips for brand new aspiring bloggers. Appreciate it! stoffwechsel ankurbeln

  6. kredit mit sofortzusagex Says:

    It’s a pity you don’t have a donate button! I’d certainly donate to this outstanding blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this blog with my Facebook group. Talk soon! kredit mit sofortzusage

  7. immobilienfinanzierung rechnerj Says:

    I enjoy what you guys tend to be up too. Such clever work and reporting! Keep up the superb works guys I’ve incorporated you guys to my blogroll. immobilienfinanzierung rechner

  8. haus finanzierena Says:

    Wow! This blog looks exactly like my old one! It’s on a entirely different subject but it has pretty much the same page layout and design. Outstanding choice of colors! haus finanzieren

  9. hypnose abnehmenx Says:

    Hmm it appears like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to the whole thing. Do you have any tips and hints for beginner blog writers? I’d certainly appreciate it. hypnose abnehmen

  10. rechtsschutzversicherung ohne wartezeits Says:

    Hmm it appears like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to the whole thing. Do you have any tips and hints for beginner blog writers? I’d certainly appreciate it. rechtsschutzversicherung ohne wartezeit

  11. rezepte ohne kohlenhydratef Says:

    Howdy I am so excited I found your website, I really found you by accident, while I was searching on Digg for something else, Anyways I am here now and would just like to say cheers for a remarkable post and a all round interesting blog (I also love the theme/design), I donit have time to read through it all at the moment but I have saved it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work. rezepte ohne kohlenhydrate

  12. stoffwechsel anregenh Says:

    My spouse and I stumbled over here from a different web page and thought I should check things out. I like what I see so now i am following you. Look forward to looking at your web page again. stoffwechsel anregen

  13. verzugszinsen berechnene Says:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three e-mails with the same comment. Is there any way you can remove me from that service? Thank you! verzugszinsen berechnen

  14. fettarme rezeptef Says:

    Do you mind if I quote a few of your posts as long as I provide credit and sources back to your website? My website is in the exact same niche as yours and my users would certainly benefit from a lot of the information you provide here. Please let me know if this okay with you. Thanks a lot! fettarme rezepte

  15. eiweissdiaett Says:

    At this time it appears like Expression Engine is the top blogging platform out there right now. (from what I’ve read) Is that what you are using on your blog? eiweissdiaet

  16. fettverbrennung anregeni Says:

    Wonderful website you have here but I was curious about if you knew of any community forums that cover the same topics discussed here? I’d really love to be a part of group where I can get advice from other knowledgeable people that share the same interest. If you have any suggestions, please let me know. Cheers! fettverbrennung anregen

  17. guenstige haftpflichtversicherungx Says:

    I’m really enjoying the theme/design of your website. Do you ever run into any browser compatibility problems? A couple of my blog readers have complained about my blog not operating correctly in Explorer but looks great in Chrome. Do you have any solutions to help fix this issue? guenstige haftpflichtversicherung

  18. kredit online beantragent Says:

    Hey just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome. kredit online beantragen

  19. urgent care Says:

    That’s a great post!

  20. bauzinsen aktuellu Says:

    Hi there! I know this is kind of off-topic however I had to ask. Does building a well-established website such as yours require a massive amount work? I am completely new to operating a blog but I do write in my diary everyday. I’d like to start a blog so I can share my personal experience and thoughts online. Please let me know if you have any recommendations or tips for brand new aspiring bloggers. Appreciate it! bauzinsen aktuell

  21. kredit ohne schufat Says:

    Today, while I was at work, my sister stole my iphone and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone! kredit ohne schufa

  22. privatkredit vergleichb Says:

    Hello! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no backup. Do you have any solutions to stop hackers? privatkredit vergleich


Trackbacks/Pingbacks

  1. pirate bay…

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose pirate bay[...]……

  2. to the cellulite appearance. mesotherapy also helps…

    in improving the over all circulation, carry out effective repairing of the injured and weakened connective skin tissues and boost the lymphatic drainage as well.after giving out one injection of the mesotherapy medicine, medical practitioners claim th…

Leave a Reply

Security Code:

Free PageRank Checker

$7.49 .Com! Score Savings Cartoon Smart Tutorials

oDesk Certified Action Script Programmer oDesk Certified Adobe Flash CS3 Designer oDesk Certified Adobe Photoshop 6.0 Designer

3,036
Unique Visitors
Previous 30 Days
Powered By Google Analytics