View Full Version : Printing from a flash doc
Binbag
01-11-2002, 10:19 AM
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
jimburton
01-11-2002, 10:43 AM
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?
Binbag
01-11-2002, 10:57 AM
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
jimburton
01-11-2002, 11:24 AM
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();
}
Binbag
01-11-2002, 12:28 PM
Thats Great. Thank, just what i needed to know.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.