ActionScript 2.0 :: Flash8 : Set The Printer In The Landscape Mode?
Apr 19, 2010
i 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?
View 3 Replies
Similar Posts:
Apr 25, 2008
I want to have flash set the default print orientation to landscape when it calls the print object...is this possible?
View 1 Replies
Feb 12, 2012
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 Replies
Dec 10, 2010
I 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 Replies
Oct 28, 2011
I 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 Replies
Nov 17, 2010
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 Replies
Aug 8, 2011
I 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 Replies
Jan 5, 2010
I'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 Replies
May 15, 2009
I 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 Replies
Apr 20, 2011
I'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.
View 1 Replies
Jun 2, 2005
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 Replies
Aug 10, 2011
I 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?
View 1 Replies
Jan 11, 2012
I am making an app in AIR mobile that I need to be in landscape mode all the time. On most devices this is OK, but on some devices (Motorola XOOM for example) the app launches in landscape. At least on the build in emulator that comes with Flash Builder 4.5. I don't know if this is a problem with the emulator or if the XOOM has different orientations than most devices. Anyway, I want to make sure that the device is always in landscape mode. This can be checked easily:
if(stage.stageWidth<stage.stageHeight){
//rotate screen;
}
View 2 Replies
May 25, 2004
2d Landscape Generation with Midpoint Displacementhey everyone... I'm working on implementing the simple 2d algo. described here:[URL]...html in actionscript. It's a simple midpoint displacement scheme, and it's almost working correctly. The problem i'm having is that the array i'm generating isn't sorting correctly. I need to sort it so that the drawing loop cycles through from left to right (on the x axis)... For some reason, it's not sorting points that are between [0] and [1] in my array. because the algo. is iterative, the problem snowballs the more iterations you run it for.
here's the code i'm working on. it's in 3 frames, and init frame to get it going, and then a loop in frames 2 and three (so that i can see the iterations as they're drawn out):
[Code]...
View 3 Replies
Feb 9, 2010
I want to make a button map to a local printer on the network.
View 6 Replies
Jul 15, 2010
can someone guide me to some tutorial/source to do something like this [URL]
View 3 Replies
Feb 11, 2010
I'm running app in air. When I'm trying to print the print manager window show up, i choose printer and click 'ok' and nothing happens. Printer icon showup for few seconds but have no print tasks. Of course it's not becouse of the printer managar (it works fine when printing from e.g. word).My code looks like this:
[Code]....
View 1 Replies
Mar 7, 2008
Ok, 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]....
View 2 Replies
Jan 16, 2011
how i can set the keyboard to landscape in as3? I'm using flash cs5 and air for android and i don't have the auto aspect ration turned on, so what i want is to set the key board to come up in landscape in code.
View 1 Replies
Mar 20, 2006
i am building an xml gallery that pops up portrait and landscape images. the pop-up should fit each image. I had this working fine with the code below and then I added a few landscape images with different dimensions. now the landscape ones all pop-up with too much space around them. the first part of the function just puts the imeges in the right place on the movie;
[Code]...
View 1 Replies
Jun 16, 2010
I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip. According to the ActionScript online API spec [URL], I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting.
View 1 Replies
Jun 16, 2010
I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip. According to the ActionScript online API spec [URL], I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting.
View 1 Replies
Feb 25, 2011
I need direct-to-printer functionality for my website, with the ability to distinguish a physical printer from a virtual printer (file).has this functionality via a native binary which must be installed by the user. I'd prefer to avoid thatI dug through that Java APIs a bit, and don't see anything that would let you determine physical vs virtual, except looking at the name (that seems prone to misidentification). It would be nice to be able to do it in Java, because I already know how to write Java applets. Failing that, is there a way to do this in Flash or Silverlight?
View 3 Replies
Mar 29, 2011
A 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 Replies
Feb 9, 2010
I am making a floor map for the company I work for. And I want to make a button map to a local printer on the network...
View 1 Replies
Apr 5, 2007
I was wondering if it would be possible to use copyPixel to create a simple text printer for example you have a font as an image like this
[URL] then have some code that will transform your text ="hello world" into HELLO WORLD on your flash screen, but written in that font.
Because the font is spaced equally you could have the source x and y, times by 16pixels for each letter and move the Y source down 16 pixels when it reaches the right side of the image
View 2 Replies
Sep 16, 2011
This 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);
View 1 Replies
Oct 6, 2003
The tutorial I am working on is at: [URL]. I have no problem with the fade grid effect itself but... I'm trying to make one of the squares (which is a guy in the middle of a scenic landscape) visible first giving the effect that you can only see him first, then the grid squares fade in to reveal the landscape that he is standing in.
So I tried just cropping the square out in photoshop, then just placing it in the exact same spot above the original image, but everytime the movie gets to the portion in the timeline with the actionscript, the little square with the man in it disappears. I want the square with the man in it, to remain on the stage from beginning to end, as top layer.
View 5 Replies
Nov 2, 2004
Im trying to fill the landscape with a colour but doesn't seem to work.. ignore the no with statements that was for testing purposes Attached Fla
View 5 Replies
Feb 10, 2010
does anyone know a way that you can print a selction on the stage to jpeg format or to a printer
View 3 Replies