Find Jobs
Hire Freelancers

AS3 Printjob: Coding Fix

$30-250 USD

Cancelled
Posted over 13 years ago

$30-250 USD

Paid on delivery
I have AS3 code that works nicely to print SWFs, but trying to do the same thing in Flex (print the swfLoader) has not proven to work. I get a blank page. When I try using the FlexPrintJob class instead, the text outlines from my swfs do not print correctly, and I cannot change the orientation of the page. I'll pay up to $50 for somebody to get this working in Flex, and perhaps help me set resolution of the output! Here is the code: import mx.printing.*; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; // Create a PrintJob instance. private function doPrint():void { // Create an instance of the FlexPrintJob class. var printJob:PrintJob = new PrintJob(); var options:PrintJobOptions = new PrintJobOptions(); [login to view URL] = true; removeMask(); // Start the print job. if ([login to view URL]() != true) return; var sp:Sprite = new Sprite(); var a:BitmapData = new BitmapData([login to view URL], [login to view URL]); var b:Bitmap = new Bitmap(a,"auto",false); //[login to view URL](stage); [login to view URL]([login to view URL]); addChild(sp); [login to view URL](b) // Add the object to print. Do not scale it. // [login to view URL](sp, [login to view URL]); [login to view URL](sp, null,options); if(((printJob.orientation=="portrait")&&([login to view URL]>[login to view URL]))|| ((printJob.orientation=="landscape")&&([login to view URL]<[login to view URL]))) { [login to view URL] = -90; } var printScale=[login to view URL](([login to view URL]),([login to view URL])); [login to view URL] = [login to view URL] = printScale; [login to view URL](sp, null,options); // Send the job to the printer. [login to view URL](); removeChild(sp); replaceMask(); } private function removeMask():void { [login to view URL] = null; [login to view URL] = false; } private function replaceMask():void { [login to view URL] = [login to view URL]; [login to view URL] = true; }
Project ID: 801286

About the project

1 proposal
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $50 USD for this job
User Avatar
Hi, Willing to do this task right now. Having 5+ years of experience in RIA(Flash, Flex and AIR)
$50 USD in 2 days
5.0 (1 review)
3.1
3.1

About the client

Flag of UNITED STATES
Anchorage, United States
5.0
37
Payment method verified
Member since Dec 10, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.