Flex :: Flash Printing Only Prints What Is Visible On A Canvas

Jul 18, 2011

I am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:

protected function doPrintReport(event:Event):void
{
var pj:PrintJob = new PrintJob();

[code]......

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Printing Sprites With Scrollrects Using The Bitmap Printing Option Fixes And Prints Most Of The Stuff In The Sprite

Jun 19, 2007

I have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.

So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.

View 3 Replies

ActionScript 3.0 :: Printing Everything VISIBLE In A Movie Clip (rather Than Merely One Thing)?

Jul 13, 2011

On an application I'm building I've got a movieclip called "viewer", built in my main .swf file, that contains 8 other movie clips. In my application, I have multiple images that can be loaded into the movie clips inside the clip "viewer". I designed this with the hope that everything loaded in the clips within "viewer" would print. In terms of loading all the pieces I want the application works fine through the browser. However, when I go to print the image I've created within the movie clip "viewer", only the most recent item loaded prints...not the image that's onscreen.

bprint.addEventListener(MouseEvent.MOUSE_DOWN,prin tContent);
function printContent(event:MouseEvent) {
var printJobrintJob = new PrintJob();

[code]....

View 3 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

Flex :: Skin A Canvas With Image And Scale It To Size Of Canvas In It?

Apr 9, 2011

I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...

View 2 Replies

Actionscript 3 :: Canvas Total Width (visible Width + Hidden Scrollable Part)?

Apr 19, 2010

It's probably a no brainer, but I've spent the last 40 minutes or so looking for it to no avial.

I have a Canvas control with a fixed width and a horizontal scrollbar.I'm trying to find the actual width of the control.The .width (fixed width) + the part being revealed by the scrollbar.I tried explicitWidth, width + maxHorizontalScrollPosition, and some other combos but non of them hit the spot.

View 1 Replies

Flex :: Flash Builder4.5 - Printing HTML Content ?

Dec 10, 2011

need to print html generated invoices from a distant server, using the print class, event if bitmap is set as false, will render the invoice a bitmap. at least the text is blurry and not usable. alivepdf could be a solution but i need to print straight, not save the pdf locally. i don't even understand, giving the fact this print class sucks badly, flex won't allow a simple javascript print function from the remote page.

View 1 Replies

ActionScript 2.0 :: MySQL Data Into Flash Via PHP (Prints False)

Jan 5, 2007

I've been making flash based websites recently with a simple PHP and MySQL backed CMS. The only problem I'm getting is when the text is loading from the database into the dynamic textfield in the flash movie, it prints either 'false' or '_level0...' The text does eventually load correctly, any way I can get it to print LOADING instead of these two or something similar?

View 2 Replies

Flash :: Printing Flex 4 Application In Firefox Using Browser Print

Nov 16, 2011

There is a wide known issue with printing of Flash content in Firefox and Chrome browsers.So,one solution was created by "AnyCharts".But it seems not to work.I also tried to implement the latest version of the component that is now hosted and Google Code.I did exactly as the manual prescribes but it still doesn't work.AnyChart guys say on their blog page that something should be done with CSS as well ,but as you can see from the manual at Flash-Print-Fix home page ,there is no mention about CSS setup. My code works like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: PNG Imported To Flash 5 Stage Is Transparent, Prints Out With A White Box?

Sep 20, 2011

I've got an application which gives the viewer the capability to create a design then further customize it with their own art, i.e. a logo, which can be a .jpg, .gif or .png. I may narrow the file options down, but right now I'm finding when one prints this design (I have a "print" button as well) any transparent .png file that's in this design prints out with a white "box" that is obviously the canvas on which said .png was designed.

View 2 Replies

Flash :: Resizing A Child Canvas In Flex?

Jan 18, 2012

I'm trying to figure out how to resize a child canvas but I can't quite figure it out. I have a bunch of mini canvas' around a parent canvas like this:

<mx:Canvas width="10" height="10" backgroundColor="#040404" top="0" left="0" id="anchorTL" />
<mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" top="0" id="anchorTR"

[code]......

View 1 Replies

Flash - Flex Canvas With Many UIComponents If One Moved Are Others Redrawn/reprocessed?

Jul 18, 2010

I have a canvas called Host with many UIComponents as children, sometimes up to 1000 or 3000 items. This is fine for now, as they are not interactive. But, I have added a 'marker line' (a 1 pixel wide UI Component with a colored background) to the canvas which follows the mouse movement. When this UIComponent is added to the Host canvas and moves, everything slow down to a crawl i.e. takes ages for the UIComponent to move.

View 2 Replies

Javascript :: Client Technology Choice - Any HTML5/Canvas Libraries As Capable As Flash/Flex?

Jan 7, 2011

I built a prototype in Adobe Flex, they (customers) liked it. Everything was fine until they later told me that iPads / iOS needs to be supported too.I checked out Adobe's Packager for iPhone. We're evaluating that and we will know if it works out in a couple of days. (We need to get through Apple's red tape and certificates raj so this angle is delayed by a few days!)

There is a growing voice for using HTML5/Canvas as a technology platform itself. And despite being quite proficient in Flex, I think this makes sense.

I'm in need of a HTML5 library that can:

Render "widgets" i.e. containers with forms and components(this should be easy and possible using POHJC - Plain old HTML,JavaScript and CSS )Provide a Tree like control for laying out some data Provide a Canvas where data structures can be represented as basic shapes Provide drag and drop capabilities between Trees, Buttons and Canvas Provide some sort of Tab Navigator container (I guess JQuery works here) Interact with back-end services (JSON/XML calls will be okay, but mapping directly with back-end entities will be awesome!)Renders on latest versions of major browsers, Android OS and iOS (WebKit for mobile?)

I'm ready to give JQuery & JQuery UI a try. I looked at Sencha / ExtJS but it seems we need to maintain two code bases one for normal browsers and the other for mobiles (is that correct?)Single code base, I don't want to suggest to them that multiple code bases for the client need to be maintained. That's a last resort option and would lead to complete ruling out of HTML5 with Flash apps and native apps being developed.Canvas capabilities - I don't want to work with raw canvas and shape tags. This too is a last resort option. Is there any abstraction available?

View 2 Replies

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

Oct 25, 2010

I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:

<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"

[code].....

View 2 Replies

ActionScript 3.0 :: Lines Visible In Flash Player, But Not In Flex?

Aug 12, 2009

I've made an animation showing the constellation Orion in 3D (see attached swf). As you can see, it's working properly, displaying stars and lines connecting those stars. The depth scaling is ok. The animation also responds to mouse movements as it should.The problems occur when I embed the swf in Flex using Flex Builder (I posted this question on the Flex forum as well, but I suspect the problem is more AS related than Flex 3 related): the stars of the constellation are visible, the animation responds to mouse movements, depth scaling is OK...but the lines connecting the stars aren't visible. Feel free to make the comparison for yourself.So any suggestions how I can make the lines visible? Can they be exported for Actionscript in the same way the movieclips are?Geography and sciences teacher (not a professional programmer alas)I used Flash CS4 professional version 10.0.2 , Flex Builder 3, IE8, Flash Player 10

import __AS3__.vec.Vector;var balls:Array = new Array();var marks:Array = new Array();var numBalls:uint = 10;var fl:Number = 400;var vpX = 300;var vpY = 300;var commands:Vector.<int> = new Vector.<int>(50,true);var data:Vector.<Number> = new Vector.<Number>(100,

[code].....

View 1 Replies

Flash :: Flex - 3D - AS3 - Convert Degrees Of Rotation To Visible Height

Nov 5, 2009

I need to know what the visible height of a display object will be after I change it's rotationX value. I have an application that allows users to lay out a floor in 3D space. I want the size of the floor to automatically stretch after a 3D rotation so that it always covers a certain area. EDIT: I guess what I am really trying to do is convert degrees to pixels.

On a 2D plane say 100 x 100 pixels, a -10 degree change on rotationX means that the plane has a gap at the top where it is no longer visible. I want to know how many pixels this gap will be so that I can stretch the plane. In Flex, the value for the display objects height property remains the same both before and after applying the rotation, which may in fact be a bug.

EDIT 2: There must be a general math formula to work this out rather than something Flash/Flex specific. When viewing an object in 3D space, if the object rotates backwards (top of object somersaults away from the viewer), what would the new visible height be based on degrees of rotation? This could be in pixels, metres, cubits or whatever.

View 5 Replies

Printing Images In Flex?

Mar 30, 2010

In s Flex 3 app, I have canvas with a PNG image for a background. The image is the same width & height as the canvas. I also have some other controls in the canvas:

[Code]...

View 1 Replies

Flex :: Blank Swf After Printing From Another App?

Jun 12, 2010

where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http:[url]...........But now i have been continuing testing, and i found out, that if i print from another application and then comeback, my video stream from the webcam is blank, this has no sense at all, since i am printing from another app. http:[url]....What is going on here i mean, this must be a flash player issue right.

View 1 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

Professional :: PrintJob Only Prints Once?

Jan 15, 2010

I am having a problem with my printJob.  I have a button setup to call the printJob.  When I click it the pages that I want to print, print properly the first time.  But then if I click the button again to print the same page, it does not work. The button continues to work and calls the function properly, but after that it does not work.   Here is the code that I am using:
 
public function Print_PTSD(event:MouseEvent):void{
trace("Print button clicked");
//Generate the Sprite to be printed

[Code]....

View 1 Replies

Flex :: Disable Printing In Adobe?

Dec 26, 2009

I am building my website in adobe flex(i am n00b). I have some photographs which I would like to make sure that people cannot print.

I do understand that it is not possible to completely stop users from printing. But atleast disable the context menu or just the print option and the copy option.

View 2 Replies

Flex :: Load PDF Into Sprite For Printing?

Jul 20, 2010

I have pre-existing PDF files which I would like to send to a PrintJob in Flex 3. I can load the files fine with UrlRequest, but I need to somehow get the data into a Sprite to be included into a PrintJob.

View 1 Replies

Flex - Printing In Adobe Air Applications?

May 12, 2011

I have a requirement to print a bill from the AIR application.

Following are the constraints.

I need to print to a DotMatrix Printer. I have a complex layout with header, footer and a datagrid with data rolling out to more that one page. I need to have a template to which I will be passing my object.The suffice with the usage of Jasper reports, but I have no server side support.I tried the FlexReport, bentbit and other tools which is optimized for the DotMatrix printers.

Is there a alternative to get the above requirements done. Is there any alternative similar to that of jasper reports without going for a server.

View 2 Replies

JQuery :: Saving / Printing In 300 DPI From Flex

Dec 28, 2011

We have a requirement of customizing some images (adding some text to images) using a flex app or jquery for printing this. Once the customization is done, it has to save the output image in 300 dpi for ensuring high quality for printing. We are stuck here and not sure how to save this image in 300 dpi. We can make sure that the source image uploaded for customization is in 300 dpi. But after the customization, we have to save the image in 300 dpi also.

View 3 Replies

Flash :: Canvas Moved On StartDrag() Without Calling Set X / Y Or Move() - How Does StartDrag() Exactly Work In As3 / Flex

Feb 11, 2011

i have an .as class that extends mx.containers.Canvas (it's a draggable border of a resizable component), it becomes draggable on MOUSE_DOWN and stops being draggable on MOUSE_UP, MOUSE_OUT and ROLL_OUT. before calling startDrag() i create a Rectangle to define the drag area, i also have a _dragging: Boolean variable to control if it's draggable at the moment. the problem is that when i click this border it jumps to a negative coordinate without calling startDrag or switching _dragging to true.

i've overriden get x, set x, get y, set y and move() methods in order to solve it but the only thing i got was the fact that position changes without calling coords setters or move(), but at the moment it's changed a getter is called and returns new (negative) value so my question is what happens on startDrag() and how to filter unwanted incoming coords values?

View 3 Replies

ActionScript 2.0 :: Labeling Different Frames As #p Prints Them All?

Oct 23, 2002

I'm trying to print different frames of my movie, which are located in different scenes. I've put a frame label named #p on every frame that I want to get printed when the user presses a button. Code for this button is:

[Code]....

This actually works fine, the specific frame gets printed OK but all of my other frames labeled #p are printed too! And part of my dynamic loaded data (information of tables, texts, etc.) cannot be seen anymore after printing! It seems as if all dynamic information gets lost. Is there any way of printing just the frame I'm asking for and not all of them? What about the "duplicate label" warning? Is it OK to ignore it?

View 4 Replies

Php :: Printing ArrayCollection In Text Fields In FLex?

Aug 3, 2009

I am getting the the output in Flex from PHP as...

appSes = new ArrayCollection (ArrayUtil.toArray(event.result));

I need the value to be stored in textInput...

<mx:TextInput id="keyword" styleName="glass" width="100%"/>

How to ??

View 2 Replies

Flex :: Printing On OSX Pushes Image Off Page

Oct 18, 2009

My Flex 3 app prints pages just fine from browsers on Windows using FlexPrintJob (not the browser print function). However, on OSX, the left and top margins show up larger and the page gets pushed off the right and bottom. Basically, the scaling is screwed up, and I can't see any way to adjust the margins in code.Has anyone seen this discrepancy in Flex printing between Windows and OSX? Are there any known workarounds? I've searched all over and I can't find any good info on this (other than 12 unresolved printing bugs in the Adobe Jira DB)

PDF Generation is one route and while its a valid solution for some folks, I need to print directly. I'd like to see stuff like using regular Flash PrintJob, monkeypatches to FlexPrintJob, or just ways I can format my DisplayObjects before sending them to FlexPrintJob. None of the scaling options in FlexPrintJob work. My Flex Component is at 1.0 scale. I'm not sure what else I can do except for mess around with regular PrintJob.

View 1 Replies

As3 :: Flex - Printing - Blanks Swf After Print Or Cancel

Jun 11, 2010

ok back at another issues in as3 printing

[Code]...

When i click cancel on the print dialog box, i get error below and it blanks out my swf. The error consists, that whenever i try to print and cancel it, or even when i do succesfully print, swf goes blank.

View 1 Replies

Flex :: ActionScript 3 - Printing Results To Console?

Aug 13, 2010

There's a lot of examples for ActionScript over the web using trace() to print results. I'd tried it using Flash Builder 4, but it don't print to the console. Where can I see the output?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved