ActionScript 2.0 :: Can Flash Force Printer To Print In Landscape Mode
Apr 25, 2008I want to have flash set the default print orientation to landscape when it calls the print object...is this possible?
View 1 RepliesI want to have flash set the default print orientation to landscape when it calls the print object...is this possible?
View 1 Repliesi m trying to set the printer on the landscape mode but unable to do so.i also used the my_pj.orientation == "Landscape") but got no success in achieving the subject.
here is my code
on (release) {
var my_pj:PrintJob = new PrintJob ();
if (my_pj.start ())
[code]...
how can i achieve the printer in the landscape mode?
I have been working on a small Flash application. I want to add a "Print" button to it, and just dump the entire flash-window to the printer. Is this possible??
View 1 RepliesI have a presentation file I need to print out are ther any utilities or functions within flash that will allow me to print to printer or PDF?
View 4 RepliesOk, this is a function that used to work...so I didn't check it for a while...and I did not edit it from when it was working in any way...but now the print function does not produce a page from the printer...when I click "Print View" the print dialog box comes up, and I can choose my printer, and when I click ok, there is a tooltip near the windows clock that says document sent to printer, but the printer never does anything...I have tested this in several printers and several computers...I have also tried to output to a pdf...and it allows me to choose a file name to save to but it never creates the file...
print button code:
Code:
printButton.onRelease = function()
{
var pj:PrintJob = new PrintJob();
[Code]....
I can't seem to find any way to force it to go landscape mode all the time. When I go to MyApp-app.xml and edit the <aspectRatio></aspectRatio> tags to landscape, only the main view is landscaped. If I navigate to the second view, it turns back to portrait.
View 1 Repliesdoes anyone know a way that you can print a selction on the stage to jpeg format or to a printer
View 3 RepliesI was wondering if it is possible to get my iphone app to preview in landscape mode without having to manually rotate it. I have it set to landscape mode with the landscape stage size, but it launches the preview in portrait mode.
View 4 RepliesI have an as3 built osmf video player swf that we embed on a standard HTML page. When you touch the image the video automatically goes fullscreen and begins playing. Droid and Flash often break after changing back and forth between landscape and portrait while in fullscreen.(by break I mean freeze, where you can hear the video and use the controls, but everything is just a still frozen image, the redrawing fails).Can you lock the fullscreen orientation in html, javascript, or do you have to try to handle it inside the swf?
View 1 Repliesprinting directly to a Photo ID Card printer in a web browser?I have a web application that manages user data, photo, and so forth. I'd like to add a Print ID Card feature to it. The web application is a single page javascript application that talks to a RESTful web service via JSON. I'd like to display what the printed card will look like on both the front and back for approval before the user clicks the print button.
Generate front and back JPG or PNG images to print on the server, send them to the client for display and approval, and then somehow send the images to the printer.Use javascript with SVG or Canvas to display the card to print in the UI for approval, then somehow send the SVG/canvas data to the printer.Generate a PDF and print the PDF to the printer.Use Flash to display and print Use a Java applet to display and print Something else?
got a touch screen project that runs full screenwith scaling (so the same project can also be disributed on CD andweb without manually resizing everything). Full screen is invokedby:if (runMode=="touch") {fscommand("fullscreen","true")};When the user prints the player is knocked out of full screenmode. I can put it back into full screen mode butunsightly and a potential security issue to have access to thedesktop while the kiosk is running. Does anyone know how to keepthe player in full screen mode? I know it can be done,got a sample from the client (AS2, my project is AS3) that runsfull screen without scaling and the print dialog floats nicely overthe stage without dropping out of full screen mode.
View 1 RepliesI have a set of users who run my application in non debug mode. Off late they have been reporting lot of issues. But I am not able to debug as there is no log file.Is it possuible in flex 3 to do logging in a file without running in debug version. I understand trace only works if we run application in debug version.
View 1 Repliescan someone guide me to some tutorial/source to do something like this [URL]
View 3 RepliesA client needs a standard consumer color printer for printing name badges from my flash app. Last time we used the app, I couldn't do any pre-testing of their computer and printer beforehand. So, of course, the margins were completely wrong when the time came to print. Ideally, I'll have the flash app's bugs worked out for the next run, but for safety's sake does anyone know of a printer that has good controls for custom margins and offsets, in case some minor adjustments are needed?
View 1 RepliesThis seems pretty weird even for Adobe standards. I've set up size of the movie to be 1024x768, which is the resolution of ipad screen in landscape. The stage looks ok but when I publish the swf it goes into portrait mode.
I even used this line of code but it doesn't help.
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
I have a print button with this code in it:
Code:
var pj:PrintJob = new PrintJob();
var printOptions:PrintJobOptions = new PrintJobOptions();
[code].......
Is there any way to print the contents of a textfield or string using the pring command in AS?
View 2 RepliesI 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();
[code].....
I want my flex 4 application to print proper picture when I click on print in context menu of Adobe Flash Player.Is it possible?
View 1 Repliesi 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?
View 3 RepliesI 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.
View 3 Replies[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 :
[Code]...
I wanted to make a video player that has normal mode and fullscreen mode. The part I am having trouble understanding is how to handle the video once it gets set to fullscreen. Do I just use the current video or do I get a high quality version of the video to show during fullscreen mode? What would be best practice for this situation?
View 1 RepliesI 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.
how do you set a print button so that it does no show up in the print out?
View 1 RepliesI'm trying to follow along with a basic animation tutorial online using ActionScript. It mentions to switch to expert mode from normal mode, but says that to do this, I need to click on a blue arrow with a box around it(which I don't see anywhere)? Where would I click to switch to expert mode? Is expert mode needed to animate certain things(I'm working with a movie clip)?
View 1 Repliesi am wondering from this code, it makes the stage full screen, does it also makes the content of my movieclips scaled to full screen? i have tried this code and it does not seem to do that, how can i make my content to scale to fill a stage's full screen? i have a Movieclip containing a background with a class to make special effects on the background, i am having trouble making the background be "fullscreened" nicely with the stage.
View 1 RepliesI've been building an AIR application in AS3 which includes a number of drawing tools, allowing the user to annotate a page with freehand drawings, lines, text etc. I'm almost done and everything tests well on my dev computer but testing on an old XP machine crashed every time I tried to print. Eventually I realised this was due to a mass of data being sent to the printer which that poor old XP machine just couldn't handle. All I'm doing is creating a new printJob with printAsBitmap set to true, and using addPage to add the MC I want to print.
When I look at the windows print jobs dialog I see it's sending 1.68Gb of data to the print spooler! I figured that there must be too much in the MC so I create a bitmapData of the same size and copy it to a bitmap, then add that to a blank MC and send that to the printer - same problem! The MC is 2480x3508 which equates to 300dpi on A4 paper. By my calculations that should be a bitmap of around 33Mb, so where is all the other data coming from.
Here's my PHP Code:
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
var options:PrintJobOptions = new PrintJobOptions();
options.printAsBitmap = true;
var thisRect:Rectangle = new Rectangle(0, 0, 2480, 3508);
myPrintJob.addPage(printTemplate, thisRect, options);
PrintTemplate is a simple MC containing a single bitmap. Both the bitmap and the printTemplate object are 2480x3508 pixels.
I've created a print button. I now want to have it sent to the printer a picture that is in my .fla file. What is the best way to achieve this?
View 4 RepliesI have a app writing in Flex AS4. Now I have a component and I need to print it using FlexPrintJob. However, every time when users need to print it in landscape mode, he/she has to click the "Properties" button in the dialog of print and change the orientation from portrait to landscape and it is really annoying.
I wander if there is a way to control it in programming? In other words, can I change some codes to set the default properties of printers to print it in landscape mode?