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.
I m trying to disable print screen option in my website. I tried various java scripts but nothing seems to work. Then i come across few blogs where they have shown 'how to disable print screen by Flash'.
I'm doing a basic site with frame labels on the main timeline whose name corresponds to the btn names. A simple otoAndPlay(evt.target.name); I have a basic navigation setup of 7 mcs with mouse eventlisteners for CLICK, ROLL_OVER and ROLL_OUT.
Does anyone know a better way to do this so when my mcs are clicked they display the rollover content/art? In essence I'm trying to achieve that when the user clicks a btn it goes to that "page" and the corresponding btn stays highlighted. Pretty standard web navigation technique but I just don't know what the best way to do this in flash is and with how my site is setup.
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 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'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 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.
[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 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
[code]....
Getting error: Print job canceled as it took more than 15 seconds to complete.
I've got a project that consists of a main SWF that pulls external SWFS via an XML document. Within the main SWF are the navigation controls (i.e. next button and back button). When the next button is pressed, it pulls up the 'next' external SWF called in the XML file. When the back button is pressed, it pulls up the 'previous' external SWF called in the XML file.
The external SWF pages contain different interactions (i.e. drag and drop, multiple choice exercises, etc). Is it possible to disable the next button until the user completes these exercises?
If the navigation buttons were contained within the individual external SWFS, I know how I could make this work, but the XML setup has me confused. My only thought is using the Timer class, but that doesn't ensure the interaction is complete; rather, it just means the next button won't work for x amount of time.
I have a button that when you roll over it a big window pops up, but then when you click on it, it pops the window up again, now its not a problem but i would like to know if i can disable the click function somehow. so that only the roll over works.
I know you can probably use a movie clip and just tell it with actionscript to load when rolled over, but i don't know how
i have a music player in my shell that plays background music. In swf files that are embeded (two layers in) I have videos playing.i want to make a button that stops the background music. Its too hard to communicate with the music player which is many layers away so i think i should use stopAllSounds.However, after i press it, it also disables the videos. how do i disable the stop sounds function, so that I can play videos, without turning the background music back on?
I have two functions, I need one that of them at the start would be disabled and after decent amount of time or when x = 1000, function would be enabled and become active. How can I do that?
how do I go about printing entire, scrollable text area in flash movie, I know how to print entire page but when text file is scrollable it doesn't print whole text.
I am designing a graph to allow line drawing. After the user draws the line, they will drag words (movieclips) from a menu onto to the graph. I am not able to turn of the line drawing function, so when the words are dragged another line is created. I tried to turn off the line drawing onRollOver of the word with no luck. Here is what I'm doing.