? Print Problem ?
HI,
I have a projector with print button. I need to print the stage (1024x768) or part of the screen.
I made this code but the print is bigger than the paper.
code:
on (release){
essapage = _currentframe; var impressao:PrintJob = new PrintJob(); if (impressao.start()){ var x:Number = essapage._xscale; var y:Number = essapage._yscale; essapage._xscale = 50; essapage._yscale = 50; if (impressao.printNum(0,){ essapage._xscale = x; essapage._yscale = y; } impressao.send(); delete impressao; } }
any help...?
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-16-2006, 11:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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!
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.
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 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>
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!
Not Able To Print More Than 5 Pages In One Print Job.
I am not able to print more than 5 pages in one go. I want to print almost 12 pages in one print job. I am creating the movieclips of each page by adding the dynamic data in to it and store in an array. When all the movieclips created and stored in an array(pagesAry) then it call the following function to print those pages:
private function sendToPrinter():void
{
pj = new PrintJob();
try
{
if(pj.start())
{
for(var n:Number=0; n<pagesAry.length; n++)
{
pj.addPage(pagesAry[n]);
}
pj.send();
}
}catch(e:Error)
{
// handle error
}
}
Getting error: Print job canceled as it took more than 15 seconds to complete.
Has anyone a idea?
Thanks for answeres.
Edited: 12/19/2008 at 11:33:18 AM by atul_kamboj
Print
Is there any way of making it so the user can print pages of the flash file ?
Thanks in advance
Print -- Why Oh Why
why oh why does it print black if I use the print function in flash? Here's what I do:
I have a movieclip on stage named "kodeord". In that movie in load an external one called "print", containing two frames...one blank, and the second one with the content I want to print ( it's just txt....and I named the frame #P)
The problem is, that when I use the
print ("/kodeord", "bframe");
the print is all black (covering the entire page). I've putted a little white sqare there, and that comes out white, so I know it's printing that frame. But why is everything else black? I've tried to use all the other arguments, putting it onstage and offstage, but nothing seems to help.....
It's urgent, so pleeeeeeeeeeeeease help me :-)
Print -- Why Oh Why
why oh why does it print black if I use the print function in flash? Here's what I do:
I have a movieclip on stage named "kodeord". In that movie in load an external one called "print", containing two frames...one blank, and the second one with the content I want to print ( it's just txt....and I named the frame #P)
The problem is, that when I use the
print ("/kodeord", "bframe");
the print is all black (covering the entire page). I've putted a little white sqare there, and that comes out white, so I know it's printing that frame. But why is everything else black? I've tried to use all the other arguments, putting it onstage and offstage, but nothing seems to help.....
It's urgent, so pleeeeeeeeeeeeease help me :-)
Print?
does anybody know how to place an icon for an .swf on the stage and on release of a print button print the contents? Is it possible?
i have a form that i want the user to be able to print but the size of the form(.swf) is 8.5 / 11 ,so that it will print correctly, while the size of the movie is 400 pix by 500 pix. it is not important that the user is able to see the actual .swf because i will have a thumbnail of it next to the print button.
any ideas?
How Do I Print
I saw on the macromedia website that when you click a button it launches the windows print option. I want the user to be able to click a button and it automatically prints a file which I will specify in the code. Is this possible?
Must Print
Need to print 1-100 copies of a letter with different addresses on top of each one. As far as I can tell the print action must specify 1 _mc or level. It would be GREAT if the user didn't have to click the browsers print button 100 times! Is it possible to create new frames inside a movie clip then duplicateMovieClip into that frame so I can build the printable file? How should I approach this?
Print Help
I was reading the tutorial "Designating Printable Frames"
http://www.flashkit.com/tutorials/Ge...29/index.shtml, I tried to make a customized print button for my Flash project.
In my movie, there are two scenes, "Start Button" and "Animation". The "Animation" scene contains a MC
called "expanding", at the last frame of the MC expanding, the user sees a map and some objects he can drag and drop. He can press the "Print" button to print his current design. This is the only frame I want the user to print, so I labeled this frame with #p, and followed exactly what the tutorial said to assign the print action to the button. But when I printed, it was the first two frames of the first scene "Start Button" that got printed. I am really confused as to what I did wrong.
Please help!
How To Print?
The print option right, ok so i want to print whats in an individual frame in a movie clip, but don't quite understand this bmax and bframe ect. option.
I can get a particular frame to print in a movieclip, but what ends up happening is, it prints the picture along with all the extra black space, and i am running out of ink doing that.
How do I just print whats in the frame and nothing else, the picture is all I want.
Best Way To Print
I have a lot of variables/misc things I want to print. But my movie is not the size of the printer and I want a clean print out of everything. What would be the best way to go about doing this? I have considered the following two options, exporting my variables to a movie who's dimensions are set to the standard printer size (the button on the movie properties panel), and use that to print. Or I have considered exported via XML and printing it via a HTML page, the only problem there is I am not expereinced with XML, how should I tackle this problem?
Print #p
Hi All,
I'm having difficulty trying to print an mc, within a certain boundary. !#p doesnt seem to work. I get extra copies of the mc , and additionally I get stuff outside the boundary. Any advice would be appreciated.
Regards,
Kieran.
Print... Umm... Help Plz.
Need some advice here on how to print jpg images that have been loaded into blank movie clips.
What I have is a basic slideshow presentation with a variable number of slides between 1 and 20. Each slide can be either a text box or a jpg.
Now, the setup is each slide fades in... shows it'self for about 3 seconds, and fades out while the next frame fades in. It's tweened over some 1700 frames at 30 frames per second for all 20 slides.
Each slide is a MC with an instance name of S1 - S20. In each MC is a 300x300 white background vector shape and a text box that refers to a simple variable on the main timeline that I use to pass it it's Text information if I need to display text for that slide. If I am displaying an Image, I just null the variable out and show an image instead.
So, now the guys I am making this for want to be able to print out the slides. Problem is, when I try I get an option to print out 1 page for every frame in the main timeline... some 1700. Not to mention, I have no idea how to reference a dynamically loaded jpg in a previously blank MC that is in the early part of the Movie.
sigh... any general advice here anyone can give?
Thanks,
Print
Is there a way to to print in flash
:-)
REGARDS
PAUK
Cannot Print
hi all,
I 've got a HTML page. On top of the page i have myname.swf which just has the name of the user the rest of the page is static html. Now i need to print this page with the username. but when i print my whole page gets printed except the username. the username comes from a txt file. is there any way so that the data in the swf file also gets printed along with the page........ pls help me waiting for any suggestion
Kaustubh
Print
hi,
I want print some text, but I want print only the text using a diferent layout.
Ex:
I have a layout (buttons, images, text, etc...).
But I want print the text using a new layout(jpg)
In the print I want join these 2 elements and leave the old layout.
I try using the #p, but this print all the movie.
Is this possible?
Tk.
Print
I put a print button with this action:
on (press) {
getURL ("print:");
print ("_root.lights2", "bframe");
}
I wanted to print just at a specific frame but it isn't working... it prints all the frames of the timeline.
What did I do wrong (I am on Flash 5)
Thank you
Print With #p And #b
Hi, I've build a kiddies colouring game, where there colour in a blank picture.
Something the client hasn't asked for - but didn't realise they could have is a custom print page.
They don't want to print the whole interface - rather just the bit that contains the print area.
Having read the instructions in flash. I understand that I should be using:
printAsBitmapNum(level, "Bounding box");
Fine, looks like the perfect solution... I add a '#p' to the frame number want to be printed when someone clicks the button.
This works.
The second part is adding an area to mask out the interface and only print the part that I'd like to g on the paper.
This part is the "Bounding box". From what I can see, I add a ''#b' to the frame that I would like to use as a mask for the print out.
The parameter that I put in, instead of "Bounding box" will set the behaviour of who the frame label #b will impact the printed page.
bmovie - you add a single shape in the frame to be used as the mask
bmax - you add a multiple shapes with their total shape to be used as the mask
bframe - will print whatever is in that frame, using its own shape as the bounding box.
If the above is correct, then I am executing this badly. As I cannot get it to work. As with most flash problems - I have created a diff fla to just focus on the simple thing that I cannot achieve.
I have put a rectangle on the stage, and a circle in the layer above it (on frame two) - there is nothing but a button (spanning two frames) on frame on.
At the top of frame two I have a #p. This will test that the #p works.
On the frame with the circle I have added a #b.
My hope is that only a circular mask of the rectangle will be visible on the print out.
On my button is:
Code:
on(press){
printAsBitmapNum(_level0, "bmovie");
}
As I am writing here - this is not the case.
Can anyone try my file and tell me what stupid thing I should be getting embarrassed about...
http://securecomnet.site.securepod.com/temp/print.cfm
Thanks for reading this far...
M@)
PLEASE HELP Trying To Print From MX
Hi, Please help me!!
I'm trying to get Flash to print an external .swf from a print button I have created. It works when the external.swf is a small file, under 20k, but not if it's a bigger file. I know it has something to do with the external file not being fully loaded, but I can't figure out how to solve the problem. Anyone...?
Please don't just tell me the answer, rather, I need to know how to script it.
The code for my button is this:
on (release) {
/printScript:Vmovie = "filename.swf";
playerversion = eval("$version");
versionnumber = substring(playerversion, 9, 2);
if (Number(versionnumber)>=20) {
tellTarget ("/printScript") {
play();
}
} else {
tellTarget ("/printScript") {
gotoAndPlay("noprint");
}
}
}
and then I have a placeholder graphic off of the stage with this script:
frame labeled print:
if (Number(movieloaded) == Number(true)) {
getURL("print:", "target");
}
there is nothing in the frame labled noprint
THANKS!!
How To Print?
I am making an ineractive invitation and would like the recipients to be able to print the actual invitation portion out on their cpu. I am using MX2004 and have created a button already for this but would like to know how to program it so that when the button is pressed it will print it out. If possible I would like only the text to print. I have created and placed the text in it's own layer titled "text layer".
Thanks
Chad
Print
Hi there,
I would like to know if there is any actionsript or HTML that will let me print pages without graphics "only text". Thank you for your help!
Help Me To Print Plz
Hi,
Could somebody please tell me how I may print out my code in Flash MX.
The code is spread about and held in different movieclips on diferent timelines and within library instances.
Does Flash offer a print project ability. Or do you have to MANUALLY go through and copy & past each section of code to notepad before printing?
Surely there must be a quick way! - after all it is a top of the range development studio!
Cheers,
Brad.
Print Help
Hi,
Could somebody please tell me how I may print out my code in Flash MX.
The code is spread about and held in different movieclips on diferent timelines and within library instances.
Does Flash offer a print project ability. Or do you have to MANUALLY go through and copy & past each section of code to notepad before printing?
Surely there must be a quick way! - after all it is a top of the range development studio!
Cheers,
Brad.
Print To Pdf
Hi,
is there a way to create a pdf out from a swf?
For example you would load dynamically different stuff from a xml
to your stage and have the possibility to export that to a pdf...??
Print
Hi all,
How do you print something in the output window? For instance when debugging and you want to know the value of a variable?
Thanks
Jay
Print From * To *?
I have a movie in which I have set up a print job to print different pages (2004pro). It's all working but when the print dialog box comes up it doesn't have the option to print "from number to number " Only the "all" setting is available which prints all pages. Is there a way to get this to work?
Here's what I have:
Code:
on (release) {
p = new PrintJob();
p.start();
p.addPage(p1, {xMin:0,xMax:844.1,yMin:0,yMax:1102},null, 1);
p.addPage(p2, {xMin:0,xMax:844.1,yMin:0,yMax:1102},null, 1);
p.addPage(p3, {xMin:0,xMax:844.1,yMin:0,yMax:1102},null, 1);
p.addPage(p4, {xMin:0,xMax:844.1,yMin:0,yMax:1102},null, 1);
p.send();
delete p;
}
Cheers,
jr.
Print
Hello,
I am trying to set up a print button, where when it is hit it will print out a page of text. I have set up a seperate movie clip that has been saved in the same file. I can't seem to get it to work.....
Jenn
No One Can Help Me Print Can You?
I have tried posting a couple of 'help me's' on here but to no avail!
I would like to users to be able to have the option to print frame 2 of various scenes in my movie.
How do I do this? Just need some code to stick on a button.
I think it has something to do with labelling frame 2 with '# something'
Please, help me - my deadline is approaching!
CHeers
Chris
PRINT Help... (again)
I have searched..and didnt think it was going to be this difficult...
I am trying to print a a moveClip that INSIDE consists of:
some static text
some dynamic text fields (populated before printing)
it is nested inside several other clips:
Code:
_root.partPanel_mc.choice_mc.objectClip_mc
to be exact. With "objectClip_mc" being the clip (its contents) that i want to print out. thats it!!
this is what I currently have on my button:
Code:
on (release) {
print("_root.partPanel_mc.choice_mc.objectClip_mc", "bmovie");
}
I have also tried putting a "#p" in the layer (only 1 frame long) that objectClip_mc is on. I have also tried #b (with same results)
the result:
what I get is a print out of my WHOLE page..like a screenshot. When I addedd the #p to the frame..I didnt see any difference to the print out either.
What am I doing wrong?? the documentation doesnt explain it very well the results you get from using he variations (IMHO)
UPDATE:
ok..I figured it out.. (sorta)
I had a pathing problem..(typo really)
NOW... although I have gotten it to print the correct MC (target)
I have the following problems...
1.) It DOES NOT print any of the dynamically populated textFields
2.) the print out is HUGE!! ..it is scaled ot fit the WHOLE piece of paper..
which I not that big of a deal.. I suppose, (at risk of being RETARDED looking)
I am mainly conerned with the dynamic textFields NOT being printed as well..
Print Blk/wht
This should be a simple question....
I've written a calculation program and need to print it out once it's all filled out.
The background is blue and it has pink, cyan, yellow and white linework on it.
Is there a simple way to get it to print blk/wht?
Print Help
I made a photo gallery where buttons have mouse-over effect that
enlarges photo. Simple, works fine. Now I added click to print, Brings up
the printer-all good. BUT its printing the entire page, is there a path or script to have an individual symbol printed ie; the photo only?
Thanks much Gene
Print..........................................HEL P
I'm going crazy here.
I've been trying to a print an allocated frame of my movie, but can't get it to work. It always seems to print the first frame.
Can anyone help me ....................PLEASE.
Any help will be great......
Print
the following code is what i am using:
on (release) {
printAsBitmapNum(0, "bframe");
}
and it prints every frame of my movie. how can i make it print just a certain section of just one frame?
thanks!!!!
Help With Print
I am trying to print a movie clip. I have tried bmax which does work. The problem is it prnts the MC but on a black background. The user ends up using a lot og black ink. Is there a way around this?
thanks
How Can I Print This?
Hello,
I am curious as to how I can print something from Flash MX. Attached is a sample of a scrolling text field I grabbed fromt the web. I would like to print what ever text content is inside this movie. How would I do that? What script would I need on the movie and or print button?
Thanks for the help
Take care and God bless,
Steve
|