Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Does One Print In Flash?



Is there a way that I can print the screen that my flash app is in? If so, can I set parameters for what gets printed?



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-05-2007, 10:00 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Print From Flash Wihtout Print Dialog Box From Poppin
Is there a way in flash 8 to print from a flash button in where the print dialog box does not pop up? Im developing a kiosk app and I need th user to print the screen without having to select the printer. I also dont want the app sitting in a browser in order for it to auto print.

Any help would be great
thanks

Print Action Doesn't Print Content In The Centre Of Paper.
I am wondering if there is any option to control how the content of the frame can be printed from Flash projector of a loaded movie clip.
The "Print" button resides in the loaded movie clip. Here is the code:

on (release) {
print("_parent.quiz", "bmovie");
gotoAndPlay("#p");
}

Shouldn't be any problem. When I print this frame from the loaded movie itself it is printed well. It printed all content exactly in a centre of the page. However, when I try to print this frame of the loaded movie from the main movie it moves all content to the right bottom side of the paper.
Any advice is highly appreciated.
Thanks!

PrintJob:: Is It Possible To Select Page No.to Print Directly From Print Dialog Box ?
I'm using PrintJob object to print multiple pages .
When the print dialog ( on pc) opens, under Page Range, the Current Page and Pages radio buttons are greyed out.
Is there a way to enable them so that users can specify what page to print directly from this print dialog box?

Any suggestion is appreciated,
Thanks!

I Want To Print A Picture Using Print() ; , Trouble With The Backgrund Color
using the print(); action script , the picture prints OK but the background color ends up wasting ink for the user's printer.

print("_root.instance" , "bframe") ;

1. I need that print out to be, over a white background.
Without actually changing the background color to white.


Thanks in advance

samy

Print Directly To Printer (bypass Print Dialog Box)
Does anyone know of a way to bypass the print dialog box when issuing the print command in flash? I am trying to write a flash application and it is nessesary to avoid printing multiple copies (dialog boxs gives the option of how many copies). Thanks!

I am working with flash 6.0 fyi.

Print Actionscript Vs Context Menu Print
I can't for the life of me figure out this oxymoron:

If I include a Print button in my flash movie, I can't seem to find a way in actionscript to print the current frame.

But, in the Flashplayer, if you right click and select Print, you can pick Selection, and it does prints the current frame.

(I need this selectivity, because I have a line of sofas being displayed between keyframes, and I don't want to print out all the sofas in the movies, just the one the user paused the player on)

If anyone has ideas about how to print the CURRENT frame, I'd love to hear it...

Using Print Function, Selecting Which Frame To Print?
I have an elearning tutorial movie built using flash, and each frame is navigated to with forward and back buttons. I want the ability to print certain frames, without having to convert what i want to print to separate movie clips or separpate levels and then targeting them. Is there anyway?

Thanks

Print Doesn't Print Variables, But Displays It ?
Q1. Dynamic values are passed to a print frame (say frame 10 of the main timeline). A movieclip in the

frame 10 contains 2 frames.
Q2. The dynamic values are passed correctly into frame 1 of the movieclip, but not frame 2 of the same

movieclip in the print movieclip timeline.
Also, when I move from frame 1 to 2 and back to frame 1,

the values in frame 1 are also not displayed in the dynamic text.
Q3. When the Print command is clicked, it doesn't print all the dynamic values. Say while giving print

command from frame 1, the values in the frame 2 are not printed. When I move to page 1 and page 2

backand forth, and then give the print command both of the values are not printed (but they are

displayed). Where is the problem?

<as>
Code:
first frame:

stop();
letter = "B";

for(i = 1; i<5; i++){
this["item"+i+"_txt"].text = "value"+i;
trace(i);
}

//code for the print button to transfer the values to the print page.
choose_btn.onPress = function(){
PBitem3 = item3_txt.text;
PBitem4 = item4_txt.text;
for(j = 1;j<3; j++){
_level0["P"+letter+"item"+j]= _level0["item"+j+"_txt"].text;
}
gotoAndStop("print");
}


print frame:
for(k=1;k<8;k++){
_level0["printable_mc"]["PBitem"+k+"mc_txt"].text = _level0["PBitem"+k]
}

print_btn.onPress = function(){
print(_root.printable_mc, "bframe");

}

</as>

Can You Use Print() To Print External Swf's That Are Not In The Library?
Can this be done.

If i have a swf loaded (but not in the library) can i use print() from another .swf and print my target file?

thanks

Print Button Shows Up On Print Out
how do you set a print button so that it does no show up in the print out?

Window.print() Or Document.print()
Hello,

I'm trying to print some text that is in a Flash page with a button in the swf. I have never done this before and was wondering if anyone could show me the proper way to do this.

Thanks!

Print Directly Without Print Pannel
I have a trouble, and i dunno how resolve them.

I wanna print, but when i do click i need the command PRINT directly (like word when you click in the icon print), but in this case, appears the window print pannel, i dunno how print directly (i dont wanna see the window print pannel).

this is my as, it is correct, but anybody how to give the action to print directly (whitout print window pannel).

is really hard, my brain is don now... im freeze

// The code
on (release) {
var imp = new PrintJob();
var resultado = imp.start();
//var resultado = true;
if (resultado) {
imp.addPage(_root, {}, {printAsBitmap:true});
imp.send();
} else {
trace("Fallo");
}
//delete imp;
}

Print 2 Levels In One Print-command
Hi,

What I have done is a print-window that lets the user choose which pages to print. This works fine when the user selects only one checkbox but when more then one page is to be printed the problems starts.

Each page is loaded onto a different level. I don't want to have to reload the movie-clips since I have variables in them that need to remain intact. I then make the movie-clips invisible so that only on appear at a time on the main time-line (frames 5-9).

The code so far for the print-dialog looks like this...

on (press) {
if (_root.utskrift.alla_checkbox.getValue() == true) {
print(???);
unloadMovieNum(8);
}
if (_root.utskrift.prog_checkbox.getValue() == true) {
print(_level1, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.dd_checkbox.getValue() == true) {
print(_level2, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.dh_checkbox.getValue() == true) {
print(_level3, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.funk_checkbox.getValue() == true) {
print(_level4, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.samm_checkbox.getValue() == true) {
print(_level5, "bmovie");
unloadMovieNum(8);
}
}

... where movie8 is the print-window. The first if-statement is for printing all pages and if you can help me witj tjis I will be satisfied.

Any ideas that you have will be grately appreciated. This is the last thing I have to do before the project is finished so please help me before I go mad.

If you could axamplafy with some code that would be grate since I'm not a used programmer.

Print Wants To Print A Page For Each Layer?
hi,

i'm trying to figure out why my print button acts like it does, i've read a lot of posts and Macromedia docs on printing.
i have a main file with a blank MC that has external swfs loaded into it. the ext swfs have dynamic data which i need to be able to print.
a print button (which is in the main timeline) will pop up the print options and ask if you want to print pages 1-30, or 1-7, depending on the swf that is loaded (it would ideally only give the option to print 1 page... a page with the data).
the print button uses
printNum ("_root.main", "bmovie");
(i've also tried the "printasbitmap", and just "print")
the empty MC ("main") has a bounding box with a frame labelled #b.
the external swfs have #p on the frames i would like to print, and i even tried !#p on other frames to try to prevent it from asking if i want to print multiple pages.

any suggestions or pointing to articles/tuts that focus on involved printing practices would be greatly appreciated.
thanks!

How Print Html Page Or Word Outside Flash When Click Button Inside Flash ?
hello,


how print html page or word outside flash when click button inside flash ?

any ideas or what the action can help me to do that ?

How To Print From Flash?
Hey guys, I need to print from my web site, and it's a flash site. ( http://www.kalcotter.com ) I'm wondering the best way to do this. I'm guessing I can make my resume as a work doc. and then Flash can call to it, and print it. Or make it an .swf and flash will call to that and print it or what? Any ideas, or direction would be awesome!
thanks,

kal

Print With Flash
Hi
I want to print a mc.

but the picture coming out of the printer shows the picture as it should be but also the backgroundcolor of the site. Can i change that so he only prints the picture i want to?

thanx

How Can I Print Flash?
Hi

I can get something coming out of my printer. But that page is a full page print, which is filled up with background color.

How can i only print the image i want ????

Print .pdf From Flash?
Havent had any luck finding out if there is a way to print a .pdf file from a flash movie without another program?

Print To Flash Help
I work at an advertising agency. They do nothing but print. In fact I'm the first Flash guy in this office.

It seems like most of my work is going to bo converting printed pieces into Flash.

File size isn't a huge issue now, since these are all going on CD's, but I'm sure eventually it will become an issue.

Also obviously time is an issue.

I've found 2 ways to do this:

1- go to all the original art files, make jpgs, gifs, export eps to swf, import everything into Flash. Copy and past text from Quark, check all fonts, styles, and weights and apply that to the text in Flash and usually adjust the tracking. Then I line everthing up to a jpeg template in Flash. (this way gives me the smallest file, but takes forever)

2- export an eps from Quark, open in Illustrator, export as an swf and import into Flash. Everything is already lined up. (much faster than 1, but text usually has to be converted to outlines in Illustator, otherwise tracking is really off and words will actually get broken into pieces of text and overlap, and repeated elements aren't all the same symbol, also it gives you a billion extra symbols, almost every simple shape is made with masks, so you have to break it all up, and you still get a bigger file)

Does anyone have any suggestions on a better way to do this, something that's a good balance between not taking forever and not giving you a HUGE file?

Or is this just a pain in the ass process that there isn't an easy way to do?

Flash Won't Print?
Howdy all,

I am making a web site for a company and it has flash across the top. I can see the flash as part of the page when I print it but the client cannot. Is this a browser setting or something that I have control of?

No Print In Flash
Hello everyone. Can someone please help me with blocking the print feature in flash movie? I have seen some flash movies, that when you right click on them, you only see flash player 6. instead of the whole menu. I would like to disable quality, print, etc, from the right clcik on my movie. Any ideas? Thanks very much for any help in advance, and ahve a great day.
Anthony

p.s. Also, please, can you tell me how to have an image/button/pic, when clicked on, it opens in its own pop up window the exact size of image.

Print In Flash, How?
Hi,

I've read the macromedia documentation about the print funtion in Flash, but I dont quite get it..

I'm trying to make an area of my movie printable (bordered by an mc). Now i've tried targeting the mc as a bounding box, and also i've tried to add #P and #b to the frames. But it dosent work like it should (i.e. how I want it to work ). I dont get the bmovie, bframe and bmax parameters?

Can anyone explain it better than macromedia, or tell me some links to some guides/tuts on the subject?

Another thing is - how do I stop the flash print function to go 100% of the printable area? It's like when you open a swf file in the browser, it streches to fit the window. I need it to be exactly as it is..

Thanks

PRINT From Flash
Is there any way to print an object from a swf without scaling it?

I mean: even if you tell flash to take de movie dimensions as printable limit, flash scales the draw depending on the printing margin of the printer you use.

Is there any way to tell flash not to scale the objects? for example: specifying flash to print a square that is 2x2 cm.

Thanks for advanced

How To Print From Flash
Can somebody please tell me how to print anything from Flash. I want to print graphics and text, and I want to make it so that all the user has to do is click on "print" and it prints, or it maybe goes to their printer's window in which all they would have to do after that is click "ok" or "print" again.
Thanks,
Greg

How Can I Print From Flash?
I want to be able to print some text from Flash.
The text I want to print is simply a variables.

I'm pulling my hair out because the print capabilities of Flash seem to be really c***.

I've tried reading up.
And the Print implementation in Flash MX seems to be really hard to understand.

Ideally, I need to develop using Flash 5.
But, in Flash 5, the printing capabilities are soooo poor.

Can anyone offer any help/advice?

Thanks.


Jam

Print With Flash
In order to print a frame it needs to be marked as #P. The problem I have is I would like to allow the user to decide what frame he would like to print, but I have not been able to find how to mark a single frame. Is there a way to change the name of a single frame using action script? Or is there another way?

How To Print In Flash?
hi,

I like to include a button in my flash which allow the printing of the contents on my flash, ie, to print what's on the screen at the time of printing.

* it's not right-clicking on the flash and choose "print"

many thanks.

Lawrence

Print In Flash MX?
Print in flash MX??

Hello everybody..

How can i print the current frame in flash MX (in .swf file )??I mean print some screens in .swf file?? like Main window or quiz window and so on..

I can’t do that..

i used this action script (but it was printed all the frames from 1 to end)

on (release) {
printNum(0, "bmovie");
}

What can I do now??

thanx alot..

Print From Flash
Hi guys, Im calling a movie which has a picture to be printed and this code:

if ($player != "") {
print (this, "bframe");
}

The only problem is it seems to continually want to print. ie the print option keeps popping up. Is there a way to envoke this code just once? Any ideas?

Thanks. Graham

Print On Flash 8
Hi, I have an object that I want to print from the flash movie. I make a button, and I tryed to made the script on that button to print the object, but it didn't worked
Can anyone can help me?

Print In Flash...
hey all. I have a flash gallery loading images dynamically from a xml. I want to be able to print those images. The images are being loaded into separate dynamic movieclips. I've used the print command but i would only print the background color. Is there a way for me to print not the movieclip but the image? I can set the print to get the absolute URL of the image. I've tryed with getURL("http://myurl.cm/myimage.jpg"), but it prints all of the images.

Any ideas?

Flash Print...
Hey...

Well, i suck at printing, and that's it. I haven't fully grasped flash's ability to print.

I have a movieclip that i want to be printed, but inside that MC i've got other MC with their alpha and color values altered. The problem is that flash prints the MC but with the apha values set to 100.

What is the best way to print in flash?

Flash 'N' Print
Hey guys,

We're currently at the day before deadline of our school project, we wanted to print something as some sort of souvenir for the player, but do you guys know how pixel-size and printed size are related to eachother when using the function to print during runtime?

Thanks alot, I need help as soon as possible so I'd be very greatfull for any quick input...

- Ruben

Print And Flash
I remember reading somewhere long, long ago that a Flash "site" or presentation could be set to print a specific Flash Paper document in its stead. For instance, a banner advertisement could be set to print a full (even multi-page) brochure if the customer wanted. (Of course, nowadays the "best practice" seems to be to seize control of large portions of the user's browser window and beat the user over the head whether he wants the message or not. I'm just not a fan of the "hard sell." Call me old-fashioned.)

With Flash Paper kicked (down the stairs | to the curb), that doesn't seem to be the preferred method any more.

So how does one now create a document and set it up to print in place of a Flash webpage/site?

Print In Flash
Hi Friends,

Can any one help me out with this code pls. I want to print multiple records may be in 100's. To simplfy we consider we want to print 2 pages which has got dynamic data, which is coming from XML file.

I have a MC named A4L in Library which i am calling on the stage. Now I have a print button inside a MC. At a time you can see 1 record at a time. But you have NEXT and BACK button to view other records. I hope u got the stucture of MC.

Now following is the script which prints button 2 pages but prints same record again. Thats my problem. Onthe screen I can see when I click on print button and says OK...I can see the next record. But it still print first record only. I dont know whats happeing at the back ???
Here is the code

myPrint.onRelease = function()
{
myPj = new PrintJob();
if(myPj.start()){
for(i=1; i<3; i++){
_root.A4L._xscale = 94;
_root.A4L._yscale = 94;
myPj.orientation="landscape";
myPj.addPage(_root.A4L, "bmovie");

trace("page i >> "+i)

myPj.send();
gotoAndPlay(2); //playing frame 2 will refresh data

}
}
delete myPj();
}

Pls help...thanx ashish

Print In Flash
I have an swf embedded in an html file. I have used the print function in the flash file itself, where a user can print the contents of the swf file. However, the print command doesn't work for the swf.

When I use the print command from the html page, it prints the complete html page, which is what I don't want. How can one make the print work only for the swf.

K. David.

Print With Flash
Hi,

I have this form which has the dynamic date field in it; it is a calculated date field. I am printing the movie clip and the date filed is in that movie clip, it does not print.
Any tip?

How To Print Flash
Hello Dudes

Anyone knows how to print a Flash movie from the browser, cause it's printing white?

Thank you everyone.

Print In Flash
Hi Friends,

Can any one help me out with this code pls. I want to print multiple records may be in 100's. To simplfy we consider we want to print 2 pages which has got dynamic data, which is coming from XML file.

I have a MC named A4L in Library which i am calling on the stage. Now I have a print button inside a MC. At a time you can see 1 record at a time. But you have NEXT and BACK button to view other records. I hope u got the stucture of MC.

Now following is the script which prints button 2 pages but prints same record again. Thats my problem. Onthe screen I can see when I click on print button and says OK...I can see the next record. But it still print first record only. I dont know whats happeing at the back ???
Here is the code

myPrint.onRelease = function()
{
myPj = new PrintJob();
if(myPj.start()){
for(i=1; i<3; i++){
_root.A4L._xscale = 94;
_root.A4L._yscale = 94;
myPj.orientation="landscape";
myPj.addPage(_root.A4L, "bmovie");

trace("page i >> "+i)

myPj.send();
gotoAndPlay(2); //playing frame 2 will refresh data

}
}
delete myPj();
}

Pls help...thanx ashish

Print In Flash
I have an swf embedded in an html file. I have used the print function in the flash file itself, where a user can print the contents of the swf file. However, the print command doesn't work for the swf.

When I use the print command from the html page, it prints the complete html page, which is what I don't want. How can one make the print work only for the swf.

K. David.

How To Print Within Flash?
Recently I have been handed a flash project that has user inputs etc that save to a database. The user has the option to click a button which launches a web broswer and displays whatever they have entered in the flash tutorial to the browser. This way the user can print their results.

Now the client wants to be able to put this tutorial on a CD so they can ship it out to those customers who don't have internet access. My problem is that I have no idea how to make flash save the variables that the user inputs via text fields and buttons etc. and then display them within flash so that the user can then print their results.

Does anyone know of a good resource that I can use to figure this out?

Thanks.

How Can I Print From Flash?
I want to be able to print some text from Flash.
The text I want to print is simply a variables.

I'm pulling my hair out because the print capabilities of Flash seem to be really c***.

I've tried reading up.
And the Print implementation in Flash MX seems to be really hard to understand.

Ideally, I need to develop using Flash 5.
But, in Flash 5, the printing capabilities are soooo poor.

Can anyone offer any help/advice?

Thanks.


Jam

Print PDF From Flash?
Hi:

I created a mc which acts as a button in my movie. I want the user to be able to click it and have a PDF open and start printing a PDF document. Would I use Javascript for this?

If this is not possible, I need it to print the contents (which is a mc) of a scrollpane.

Any ideas?

Thanks,
Loren

Print Out Of Flash?
hi guys.
i have done a site in flash. it has a directions page. i want to have printable directions. i was just going to have a button within flash that pops up a new window where it has a 'print directions' button, but this might be a bit clumsy. is there a way to print directly out of flash but where you can specify to only print out the required part without the rest of the page being printed out too?
thanks

Print From Flash
Empy movieclip
mc = _root.map.createEmptyMovieClip("group_"+n, n);
loading external movieclip
mc.loadMovie("map_"+n+".swf");
How to print it?
Sincerely Petromap

Flash PRINT
Hello,
I'm using the PRINT function to print a movieclip and it's working perfectly except that when i call the function, it pops up the windows printer menu asking me to choose my printer etc. Is there a way to automatically just print to the default printer without it poping up the windows printer box? similiar to pressing Ctrl+P in ms word which prints right to the printer.

Cheers

Print Pdf Through Flash
How can I printout a pdf without opening it through flash

been looking at flash jester and projector
any ideas

cheers for now

Using FLASH To PRINT Images
Say I created an image/picture in FLASH, and I want to print it out? If the image is on the stage area (when I go to print preview it only shows a partial picture) If I move it "WAY" up and to the left if will print correctly.


Can someone tell me what is going on here?? If there a setting to change or something I am overlooking??


Thanks -whispers-

Copyright © 2005-08 www.BigResource.com, All rights reserved