Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-11-2002, 09:19 AM   #1
Binbag
Registered User
 
Join Date: Mar 2001
Location: London
Posts: 50
Default Printing from a flash doc

Working on an online portfolio and would like a print button on some of the artwork page so viewers can print out my work directly from the .fla file. I this possible and if so how would I go about it??

Thanks for any light you can shed
Binbag is offline   Reply With Quote
Old 01-11-2002, 09:43 AM   #2
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default

You can control what users print out by using special frame labels...set the print area (once) by having frame which contains only a shape representing the print area labelled #b.

Then specify which frames to print by labelling them #p. To give users a button to click within your movie which prints the movie, use fscommand() linked to javascript in the html page and the print method of the window...

Any use?
jimburton is offline   Reply With Quote
Old 01-11-2002, 09:57 AM   #3
Binbag
Registered User
 
Join Date: Mar 2001
Location: London
Posts: 50
Default

Er, yes but I could do with a little bit more detail than that. I don't have much experience with FScommands/Java, thank for the advice though
Binbag is offline   Reply With Quote
Old 01-11-2002, 10:24 AM   #4
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default

Well fscommand() is the way for the flash player to communicate with other programes, in this case the browser. You can use it to do preset things, like show or hide the rightclick menu, but you can also use it to run javascript functions in the html page. There's a very good tutorial on this in the tutorial section...get cracking!

When you've got the hang of communicating between flash and javascript, the script you need to run will be something like:

//Javascript
if (window.print) {
window.print();
}

Last edited by jimburton; 01-11-2002 at 01:22 PM.
jimburton is offline   Reply With Quote
Old 01-11-2002, 11:28 AM   #5
Binbag
Registered User
 
Join Date: Mar 2001
Location: London
Posts: 50
Default

Thats Great. Thank, just what i needed to know.
Binbag is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a flash site, Part1: Some thoughts Bloom22 Other Flash General Questions 6 09-29-2006 02:10 AM
CyanBlue's 5000th Post - Useful Threads List CyanBlue Projectors and CDs 104 02-25-2005 01:13 PM
scrollBar on Flash Exchange cdeg Components 5 05-03-2004 07:13 PM
Printing with flash micdune Simple Stuff (Newbies) 2 04-27-2004 07:29 AM
enterframe and load and objects, oh my! dice ActionScript 1.0 (and below) 13 07-18-2003 11:07 AM


All times are GMT. The time now is 03:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.