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




Print Command Problems



I've got a movie that I want to set a mask in when the user prints out a page. So I'm using

//attachs the print button
_root.attachMovie("PrintButton", "PrintButton", 40000);
_root.PrintButton._x = 100;
_root.PrintButton._y = 500;
_root.PrintButton.onRelease = function() {
printAsBitmap(1,"bmovie");
};

On the main timeline I have the "#b" label. and in that frame made a black box.

But when I run the movie and hit the print button it just prints out the entire screen. Does the print function not work with levels or something?



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-02-2002, 01:33 PM


View Complete Forum Thread with Replies

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

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.

#p Print Command
HELP!
I've got a flash file that contains numerous scenes. In each of these scenes I've got a printable layer, a print label layer and a third layer labelled #p to designate printing. My problem is when I run the flash file and click the print button from a selected scene it prints all the printable frames within the flash file. WHAT'S going on? I've inserted stop commands in the printable layer but to no avail. Any help PLEASE!

Lee

The ****ing Print Command
guys

i'm running out of ink. the movie print all of the 6 thousand frames inside the movie!

how to print a spesific movie in one frame?

my fla is like this:

5 movie in one frame and there are five button which each button will print each movie


help!

ahmadzombie

Print Command AS
Facing few problem

1. Print provision in swf file
2. Insert a MS-word file which contains table and images in flash for scrolling
3. view PDF File in flash (or it can be downloadable and view thru Acrobat reader)

If any one help more help for the task which is very urgently

Tha

Print Command
I was wondering what the code is for a print command or if you know of a tutorial that might help me understand it. I am creating a resume and I wanted to use Flash. And does the print command print only the Text portion or the graphics too or can you choose? Can someone help me? Thanks

Using The Print Command And PDF's
has anyone tried this:
using the print command in actionscript, and when the printer prompt comes up print the flash file as a pdf.

has anyone been able to retain the scalable nature of the vector shape or are you just getting a bitmap version of the swf shape when exporting to pdf?

although when it goes straight to the printer the printed version looks very much like a eps vector image.

the fonts seem all good though.

i'd be interested to hear what results other people have had.

fozzy bear

Print Command
When using Flash's print setup to print dynamic text, all the text prints down and to the right of where it shows up on the page. Only the very top left shows on my printed page. Does anyone know why this might be? Is there something that I can do to help fix this problem?

Print Command
is there any way to have a button that when pressed prints only the current frame? I tried just using Print() but it wants to print all 672 frames! I know there has to be a way around this. Thnx in advance

Print Command
Anyone knows how to use the Print command dynamically that even control or change the user's printer settings?

Help With Print Command
on (press) {
print(drawingArea, "bmovie")
_root.gotoAndPlay(3);
}

I am using this script which works....ACE

This is on a button in the movie clip that is in frame 2 of the stage. What i need the script to do is print what is on frame 2 (and only frame 2) then go to frame 3.

It works in the sense that it does print and it does go to frame 3. However when it prints it prints every frame on the stage, how do i get the script to only print what is on frame 2

Here's One For Someone - Print Command
I have an A4 page (currently in microsoft word) which i would like site viewers to be able to download, how do I go about it.

Thanks in advance

Problem With Print Command
I ve some printable pictures in my flash projector.
A button use action script to print the selected occurence but Flash print the occurence in very small!

I don't understand why because I ve do it in another movie and it was working!

Please help me!
Is there a size option for printing in flash or somethin?

Help Needed Print Command.
I am trying to put a button on my movie that will print the content of a dynamic text box with quite a bit of text... Wnough text to need scroll bars.

Currently I can only get it to print the first bit....

Please help

Nathan..

Print Command In Flash Mx/mac Os X
is there a way to have a FILENAME
placed in there....

so the user doesn't have to TYPE
in the name of the file to be printed

I know print function is insane
still
seems like there should be a way
to have a file name in there
when you "save as" pdf
or print

any help appreciated

Print Command In FLash
Hello
Can i take print from flash movie IF YES then tell me how ?

thnaxx in advance
regards

Direct Print Command..?
Hello..!!

May i know how to giv print command Directly...

lets understand..

i have created 2 different Scene ...

Scene1 and Scene2.......ok

in scene1 there is one img ...wen i click on that image it goes to Scene2..

now....

in Scene2 that image will become large and also there is one button with Print command Script ....( Now in Scene2 ...there is two stuf image and button )...........


now what i want wen i click on that button print should come out....

but the problem is...... both Scene1 and Scene2 is getting Print ...

i want only Scene2 should be Print ....

n wen its print it should directly Print ........Mo dilogue box should come out for print ..


Thank you..!!

AS And PHP / Print Command Not Working
Hi all,

my AS script is:

Code:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}

else if (!FirstName.indexOf("your") == 1) {
EmailStatus = "Please Enter your name before Sending";
}

else if (!ToComments.indexOf("comments") == 1) {
EmailStatus = "Please enter some text in you message";
}

else {
loadVariablesNum ("send.php", 0, "POST");
EmailStatus = "Sending... one Moment .. ";

}
}
and php

PHP Code:



......Print "_root.Mail.EmailStatus=Complete - Your mail has been sent"; 




The data are retrived from FLah and send on email OK, ... but is not sending back print command. How do fix it? :confused:

Note: EmailStatus is an Input field as default jus tfor info. is working on filling form (eg: Please enter a valid E-mail address). but not getting the print from php

Working on Flash8 but fla is MX one

How To Add Print Command In Swf Movie?
I want to put a print command in my flash movie which will be capable of printing the entire movie image or printing what is only viewed (document size).

How can I do it? I want to put a PRINT button in the movie. Maybe some print options like paper size if that would be possible?

Cannot Get Print Command To Work Correctly
I am writing actionscript right now and I cannot get my published flash movie to print directly. I have imported text from a word document, therefore, when I hit print in the movie, it just opens the word program and opens that file, then I have to hit print in Word to get that to work. here is what it looks like:

on (release) {
getURL("PhaseThree Tutorial.doc", "_blank");
fscommand("fullscreen", "false");

now i am not sure what to add to get this document to print directly. PLEASE help if you have any ideas. Thanks in advance.

One thing to clear up. The Movie and the accomponying word documents are on a CD not posted for the web. Therefore, how it is set up i want to hit print in the movie, and have the actionscript written so that it locates the word doc./and prints it directly, without having to take the extra step of the word program opening, the text opening up, and then having to manually hit the print command in word. now it just opens the doc in word, then i have to hit print. Thanks for any ideas.

Flash Print Command Functions
Print command problems
I've got a movie that I want to set a frame in when the user prints out a page. So I'm using

_root.PrintButton.onRelease = function() {
printAsBitmap(1,"bmovie");
};

On the main timeline I have the "#b" label. and in that frame made a black box.

But when I run the movie and hit the print button it just prints out the entire screen. Does the print function not work with levels or something?

File > Print Command As Navigation...?
Is it possible to use the file>print command in a browser to navigate a flash site...?

I'm busy doing a flash site for my interactive media design class, and we need to create a portfolio for ourself representing our work.

We may not use buttons as navigation, and should try think of other ways that users can navigate.

My idea (if possible) eg. if you go to the file > print command in your browser it would take you to the print section in my portfolio and so forth.

If someone can help me out with scripts or can give me feedback on the possibility of this it would be RAD thanx!

Print Command Doesn't Work From External Movie.
I am wondering if there is any way to make a "Print" command working if the movie which I need to print is loaded MC inside main movie. This command is working well if to print from external movie itself, but when it comes to print from main movie computer is freezing. I am loading this external movie inside main movie inside placeholder movie clip named "placeholder" in the main movie. The command to load the movie which I need to print is:

"loadMovie("quizA.swf", "_root.placeholder");"

The code for print button in the external movie is:

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

Any advise is highly appreciated.
Thank you in advance!

Is It Possible To Simulate The "print" Context Menu Command In AS3?
Hi,

I'm trying to create a button within my Flash app that will send the entire screen to a printer. I want it to simulate the exact function of the "print" context menu item (when you right click in the flash player window and select print). Is there a command in AS3 that will allow me to do this?

I know I can just tell users to "right click and select print", but if it's at all possible this would be a much cleaner solution.







PS. I'm not using the printJob() class because I can't print everything on screen at once without telling it to print every little thing, and some things I don't even know how to print (like objects with system-assigned instance names).

Is It Possible To Simulate The "print" Context Menu Command In AS3?
Hi,

I'm trying to create a button within my Flash app that will send the entire screen to a printer. I want it to simulate the exact function of the "print" context menu item (when you right click in the flash player window and select print). Is there a command in AS3 that will allow me to do this?

I know I can just tell users to "right click and select print", but if it's at all possible this would be a much cleaner solution.







PS. I'm not using the printJob() class because I can't print everything on screen at once without telling it to print every little thing, and some things I don't even know how to print (like objects with system-assigned instance names).

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!

AS3 - After Command Another Command That Starts A Jump To A Specific Frame
Hi everyone,

I am a newbie using Flash CS3 and Actionscript 3.0. I have spent hours looking through forums and found no answer to my problem. Maybe it is because it's not possible but I just wanted to see if an expert can help me out.

I have a button and a few animations. Basically when I click the button I want to say: "When you are pressed down I want you to play at this specific frame for this many frames and then jump to a specific frame and play on there."

wrong code until now:

btn1.addEventListener(MouseEvent.CLICK,go1);

function go1(event:MouseEvent):void{
gotoAndPlay("frame10");
}

if (you get to "frame 15"){
then gotoAndPlay("frame5")
}

Any help would be very much appreciated!

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.

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

Command...variable? Help... Hey, So I Need To Know The Command To Close The Presentat
Hey, so I need to know the command to close the presentation you are in after you click on a linked button to another page... anyone know? or have any questions...... plzzzzzzzz respond...
Hey, what is the command, or properties to have a button GoTo a html link on a release mouse command and the have the presentation (or .swf/.exe projector) close and go get the html that the button was linked to?...
need more info? ask away... tristan@tri-stan.com

thanks,

tri

Command To Run A Flash File From Command Line
Hi All,
I have made a flash application.Suppose the file name is a.swf.
Now I want to run the swf file using a command from the command line..Can anyone please help me regarding this..??

Thanks in Advance,
Nirmal.

FS Command,how To Catch FS Command Using Javascript Not In Vbscript
Hi,

I'm modifying a flash.... and flash uses FS Command.

can you help me catch the fs command in javascript code?? because what I have is the vbscript code, and it does not work on some browsers.

here's the vbscript code(the problem)that calls the function:


PHP Code:





<SCRIPT LANGUAGE="VBScript">
<!--

// Catch FS Commands in IE, and pass them to the corresponding JavaScript function.
Sub mainmenu_FSCommand(ByVal command, ByVal args)
call mainmenu_DoFSCommand(command, args)
end sub

// -->
</SCRIPT> 





here is the other part of the script in the page ...javascript code(works fine):


PHP Code:





<script language="JavaScript">
function mainmenu_DoFSCommand(command, args)

if (command == "showAd")
{
if (document.layers){
daMenu = document.layers[args];
}
else if (document.all){
daMenu = document.all(args).style;
}
daMenu.visibility = visible;
}

if (command == "hideAd")
{
if (document.layers){
daMenu = document.layers[args];
}
else if (document.all){
daMenu = document.all(args).style;
}
daMenu.visibility = hidden;
}
}
</script> 






my problem is to pass the arguments in using javascript(not vbscript) so that it will work on others browsers.

other options is to modify more the vbscript so that it will work on more other browsers...

but I dont know anything about vbscript and only basic javascript...

need help thanks a lot in advance.

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 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!

If '&&' Is The 'and' Command In Flash, What's The 'or' Command?
I've got an 'if' statement and I want to say if this, or this, or this happens...

Like:

if { keyDown(_Enter) or keyDown(_Space)

What's the command to say 'or' in Flash?

Thanks!

How To Print Without A Print Dialog Box?
Hello,

I need to know how to print in flash without a windows "print dialog box" pop up??

Please Help Me...


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

FS Command And Get URL
I have just purchased Flash 4 last week, so I am a newbie, so please bear with me.

I would like to create an auto run CD using the flash projector programme. I know how to create an auto run for a CD, my problem is the following.

I have three buttons in my movie:-

1. To view a PDF index file of a CD
2. To install Acrobat Reader from a CD
3. To exit the installation programme.

I can get buttons 2 and 3 to work using the FS command however I cannot get button one to work. I have tried using (Get URL "index.pdf",window="_blank") however this launches IE5 and runs Acrobat from within. I donot want this!¿! I cannot use the FS command to locate the EXE file, as the installation for Acrobat will be in a different location on different machines.

Is there a way of running the index.pdf file straight into Acrobat Reader without having to launch Internet Explorer?

FS Command
I need help with the scripting to control Windows Projector files from within a Flash Movie. The company that I am creating this presentation for no longer has the Flash source files but they need a new interface for their existing projector files to be included on a CD-ROM

The With Command....
what does the with command mean or do?

FS Command And JS
If I want to look in my flash html page for a JS var, can I use the FS Command to do so? How?

FS Command
I want to use flash to create a presentation CD. When the CD is inserted I want the presentation to start automatically.

Any info on how to do this?

cheers,

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