ActionScript 2.0 :: [MX2004] Use The Print Function In A Button?
Mar 11, 2005
I'm trying to use the print function in a button, a.s. below:
on(press){
print(_root.instance_1, "bframe");
}
This works fine...the mc "instance_1" is the only thing that prints. The problem is that I need to print 2 movieclips at once. So I have tried the following:
I am trying to create a print button on the last frame that will allow the user to print just that frame. I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper. Here is the code that I have so far:
function printScore(event:MouseEvent):void { var printJob:PrintJob = new PrintJob();
i want to simply print 2 movieClips when i press a Print button. so i have the "_root.container_mc" and "_root.logo_mc"... paste the simplest code for printing a "landscape" page with these 2?
I am trying to make a print button that will print the contents of a mc...this mc basically holds a dynamically drawn floorplan which can be zoomed and panned...I want to be able to print the contents of the mc, and only what is viewable in the mc at the time of the print...so if you are zoomed in, all that prints are the actual objects visibly seen in the mc...I think it may be with the print command using bmovie but I have no idea how to assign a #b lable to the frame.
i have made a music on/off button for a site in flash mx 2004 pro, however every time you jump to a new marker/page, the music starts again, resulting in the same piece of music playing several times over the top of each other. how do i remedy this so the off button keeps the music on/off throughout the site?
Got the one working- but I need a couple pop-ups to be able to launch while others are open.. some variable needs adjustment, just not sure what..The button to launch the pop-up works when on the main timeline, but does not work inside a movieclip, which is where I need it...of course.
I've created a movieclip with buttons inside that I want to use to navigate to different scenes on the main timeline. I have created a function() that loads the button movieclip into the main timeline, but if I try to write a function() to activate the button and move the main timeline to a different scene/frame label it doesn't work. I have tried various things:
I put the code above on the main timeline. It doesn't seem to work. Basically, I could put just an on(release) handler on the buttons, but I wanted to try to keeping all the AS in one place if I can.
I've created a movieclip with buttons inside that I want to use to navigate to different scenes on the main timeline. I have created a function() that loads the button movieclip into the main timeline, but if I try to write a function() to activate the button and move the main timeline to a different scene/frame label it doesn't work. I have tried various things:
I have a small client that needs to put information into Flash and prevent people from printing the document out on their printers.
Of course, you can always print anything you see on your monitor (Print Screen and other apps), but I am only concerned with preventing users from printing from 1) any browser and 2) from the Flash contextual menu.
Code: on (click) { var x = 1; print(x,"bmovie"); }
To print out the current page as displayed on the screen. The command works great, but when the button is pressed all of my variables seem to be reset, along with various combo boxes.The print function works as intended except clearing all my values .Is there a way around this?
Edit: I just ran a small test on a blank .fla with 3 buttons 1 - set variable = 1, 2 - trace variable, 3 - my print code
This does not clear the variables like it does in my application.What exactly goes on during the print function? If I can isolate and trace the problem, I could find a fix for it, but I have no idea whats going on.
There is an output that fits in A4 papersize with a resolution of 827x1169px. I trigger a print function via Flash AS3
[code]...
But the printout does not fit on A4 paper size (it tries to print larger and can see only a small portion on the paper). How can I arrange this with AS3?
I'm trying to take a variable from a php page and send it to flash to then use in a link.I'm having problems just selecting ONE variable from the print function, the code will help explain:
It collects all the data fine but it does not print it out correctly, it prints out all the variables in the php in one link. For example: If i click the facebook icon, i will be taken to http:[url].... This also happens with the other icons (Youtube and Twitter).
I am new to actionscript and am working on a product configurator.It has been a very long and frustrating project (to keep my job.)I've searched for days for a solution so I thought I'd try here.I store all the user choices in variables (text and graphic movie frames.)At the end of the user choices, I want a print button to print these choices to their desktop printer.
One of my webpages has a scrolling text box. When printing, the print only shows the text visible on the screen at the time of printing, so most of my text is missing from the print.To solve the problem I created a print version of that page, with full text visible. I figure a print button can link to it. This file is called print_bio.swf.Question - what would the script be (in AS3) for a print button (printButton) that when clicked prints my other swf file (print_bio.swf) with full text visible?
[Code]... and go to the print section and then check out the print pieces. for some reason my resizing gallery movie is doing some weird stuff and i cant figure out how to fix it. my actionscript goes like this :
I need to create a button, or at least a movie clip that functions like a button that will print a page when clicked. Ideally I would like to have the button as part of the flash application, which will be online embedded into a web page as a .swf. on click the print page dialog box will appear, and the user will be able to print out the web page. What is the best way to code this?
i want to build a questionnaire in cs5.5 which is excutable in iPad. in questionnaire at the end i want to show a result/score and i have to print the result.
1. where the questions can be displayed randomly.
2. At the end i have to show the result with name classified at begining.
3. I want to create a print button in the result form where i can print the result txt.
all above will be executed in iPad/Mac iOS...... in offline mode.
I have created a flash map of the uk which is splti into regions, each region is a button that is fully visible when not rolled on and and fully transluscent when rolled over(to show the same region in a different color). What I need now is for when the button is rolled over I need it show the region name, I have an array of the region names and I was hoping it would be possible to write the AS in seperate file and then link it to the SWF. Is this possible and how would I write the function?
I'm going wrong with this? I'm trying to create a print button and a sprite, but nothing is showing up when I publish.n what I'm missing? Basically what I'm trying to do is create a coupon that can then be printed.
//_____PRINTING FUNCTION_____ var printContent:Sprite = new Sprite(); var printBtn:PrintBtn;