Find Jobs
Hire Freelancers

AS3 Printjob: Coding Fix

$30-250 USD

Anulowano
Opublikowano ponad 13 lat temu

$30-250 USD

Płatne przy odbiorze
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; }
Identyfikator projektu: 801286

Informację o projekcie

1 oferta
Zdalny projekt
Aktywny 14 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
1 freelancer is bidding on average $50 USD for this job
Awatar Użytkownika
Hi, Willing to do this task right now. Having 5+ years of experience in RIA(Flash, Flex and AIR)
$50 USD w 2 dni
5,0 (1 opinia)
3,1
3,1

O kliencie

Flaga UNITED STATES
Anchorage, United States
5,0
37
Zweryfikowana metoda płatności
Członek od gru 10, 2004

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.