Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Printing Transparent PNGs With PrintJob



Hello,I'm using Flash 8 for Windows. I'm trying to print a frame which contains a number of transparent PNG graphics. However when I print it, these graphics appear with a white bounding box around them. Do you know how I can get them to print without the bounding box?This is the script I'm using:on (release){ var pjOutput:PrintJob = new PrintJob(); if(pjOutput.start()){ pjOutput.addPage(_root,true); pjOutput.send(); } delete pjOutput;}Thanks.CPG



Adobe > ActionScript 1 and 2
Posted on: 12/18/2007 08:23:36 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Printing PNGs With Transparencies
Hello,

I am having a few problems using flash.printing.PrintJobOptions and flash.printing.PrintJob.

I am successfully printing jpgs, transparent and non-transparent gifs, and non-transparent pngs, however I have having trouble printing transparent pngs. The area of the png which is transparent is becoming a solid colour when printed which is not what I would like.

Does anyone know how I could fix this? I have set PrintJobOptions to print as a Bitmap as choosing the bitmap option maintains transparencies, whereas the print as vector option does not maintain transparencies (according to the Actionscript 3.0 Bible by Wiley).

Could someone please help...

Many thanks in advance

Lee

Importing Transparent PNGs...
Hi there..

I've designed a png logo with transparency, but for some reason, I'm unable of importing it to the project... Flash MX 2004 doesn't give any warning, but it simply doesn't display it neither on the stage nor in the Library...

Any idea???


Thanks

Trouble With Transparent PNGs
Im having a real hard time with transparent Png-24s.

I'll make a image in photoshop or illustartor and save it for web as a png-24 , then I will import it into flash and when I put it on the stage it still has a visible background. The best way to describe it is, if my stage in flash is dark blue then the area that surrounds my png will be a couple shades lighter than dark blue.

What am I doing wrong? Is there some sort of setting that I am overlooking? I've tried and tried to figure this out, but to no avail. Any help is very very appreciated.

Trouble With Transparent PNGs
Im having a real hard time with transparent Png-24s.

I'll make a image in photoshop or illustartor and save it for web as a png-24 , then I will import it into flash and when I put it on the stage it still has a visible background. The best way to describe it is, if my stage in flash is dark blue then the area that surrounds my png will be a couple shades lighter than dark blue.

What am I doing wrong? Is there some sort of setting that I am overlooking? I've tried and tried to figure this out, but to no avail. Any help is very very appreciated.

I Can't Click Through Transparent Pngs...
In AS2, you could layer transparent pngs, and movieclips with them, over your buttons and retain their functionality even though they were underneath a bitmap: a sort of window pane effect... Can't seem to do that in AS3, it recognizes the transparent png as fully opaque for mouse events. Is there a way to override the 'visibility' of the transparent png to mouse events?

Thx

PNGs Not Rendering As Transparent
Has anyone ever encountered this weird, unique error I am getting

When I export my program to a SWF all the imported PNGs with alpha transparency (ie; soft edges) render totally wrong - no transparency, very blocky and pixelated. See the attached image for an example;

http://skitch.com/madmac66/w6cx/bitmap-properties



Any ideas, this is out of the blue. Has exported fine recently.

cheers
mm66

Importing PSD Or PNGS? (Transparent)
Since Flash CS3 imports PSDs, should I continue importing PNGS and JPEGS?
I am importing Transparent PSDs and find the published file swf size is a little smatter than when I import transparent PNGs.
What is the rule of thumb with Flash CS3 and importing?

Thanks for your help.

SWF With Transparent PNGs Undesirably Mask Underlying Image?
Hi,

I have an application that positions a partly transparent PNG image from the library. It then loads an external swf which contains a number of transparent PNG files on its timeline to fake an animation. First the script places it beneath, later above the first image with addChildAt.

When above, these PNG files now partly mask or 'erase' the underlying first image while they are on the stage. Its boundaries are clearly stamping away pixels of the first image right until the point where I remove this external asset.

Seems to me like I'd need to manually refresh stage rendering or something. Anyone an idea? Thanks for any suggestions

Printing With PrintJob
Hello, i'm developing an application for standalon self attending multimedia kiosks, and I wish to print some stuff without going thru the OS Print Dialog Box... It seems PrintJob does not work without calling the .start() method (which opens the Dialog Box) is there any way to workaround this problem?

Thanks in advance
Wilson

Printing With PrintJob
I am trying to have a movie clip load alternate content, move it out of the user's view, and send it to the printer. The script seems to work except what it sends to the printer only contains the background. Just looking at the code does anyone see anything wrong?

The function which attaches the print_mc and initiates the print command:

Code:
prep_print = function(loc:String) {
_parent.attachMovie(loc, "print_mc", 99);
_parent.print_mc._x = Stage.width;
_parent.print_mc._y = Stage.height;
_parent.print_mc.field.htmlText = "<b>"+_global.secTitle+"</b><br><br>";
_parent.print_mc.field.htmlText += _global.bodyTxt;

//Usage:
//print_item(movie_to_print, allow_scale);
//print_item(MovieClip , Boolean );
_global.print_item(_parent.print_mc, false);
_parent.print_mc.removeMovieClip();
};
Print function:


Code:
//------------------------------------------------------------------------------------
//target_mc ->The movieclip you want to be printed.|
//allowScale ->Allow the movieclip to scale down to fit on a single page. Page |
//size is determined at runtime by the PrintJob object. If scalling|
//------------------------------------------------------------------------------------
_global.print_item = function(target_mc:MovieClip, allowScale:Boolean) {
var pgCount:Number = 0;
var myPj:PrintJob = new PrintJob();
if(myPj.start()) {
//Fix orientation to force portrait
var iniH:Number = target_mc._height;
var iniW:Number = target_mc._width;
if(myPj.orientation == "landscape") {
target_mc._rotation = -90;
var height_:Number = target_mc._width;
var width_:Number = target_mc._height;
if(allowScale) {
var hRatio:Number = 1;
//---
while((height_ < myPj.pageHeight)||(width_ < myPj.pageWidth)) {
if(height_ < myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ < myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
while((height_ > myPj.pageHeight)||(width_ > myPj.pageWidth)) {
if(height_ > myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ > myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
target_mc._width = height_;
target_mc._height = width_;
}
} else {
//---
var height_:Number = target_mc._height;
var width_:Number = target_mc._width;
if(allowScale) {
var hRatio:Number = 1;
//---
while((height_ < myPj.pageHeight)||(width_ < myPj.pageWidth)) {
if(height_ < myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ < myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
while((height_ > myPj.pageHeight)||(width_ > myPj.pageWidth)) {
if(height_ > myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ > myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
target_mc._height = height_;
target_mc._width = width_;
}
}
//---
//Set print region
var iniX:Number = target_mc._x;
var iniY:Number = target_mc._y;
//---
var xmin_:Number = Stage.width;
var xmax_:Number = Stage.width + myPj.pageWidth;
var ymin_:Number = Stage.height;
var ymax_:Number = Stage.height + myPj.pageHeight;
//---
if(myPj.orientation == "landscape") {
target_mc._x = xmin_ + ((myPj.pageWidth - height_) / 2);
target_mc._y = ymin_ + ((myPj.pageHeight + width_) / 2);
} else {
target_mc._x = xmin_ + ((myPj.pageWidth - width_) / 2);
target_mc._y = ymin_ + ((myPj.pageHeight - height_) / 2);
}
//---
var printMC:String = String(target_mc);
trace("+++printMC: " + printMC);
if(myPj.addPage(printMC, {xMin:xmin_, xMax:xmax_, yMin:ymin_, yMax:ymax_}, null, 1)) {
pgCount++;
}
}
if(pgCount > 0) {
myPj.send();
}
trace("+++location: " + target_mc._x + ", " + target_mc._y);
trace("+++printing: " + xmin_ + ", " + ymin_);

target_mc._rotation = 0;
target_mc._height = iniH;
target_mc._width = iniW;
target_mc._x = iniX;
target_mc._y = iniY;
delete myPj;
};

Please Help Printjob Not Printing .jpg
Hello,
I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't. Please tell me someone else has had this problem and knows how to fix it!
Thanks!

[CS3, AS2] PrintJob Printing Purple
Greetings, I'm using PrintJob to print some assets within the Flash, but it always prints out purple-ish. I've even tried making a new file, bringing in a new image, & yet - it prints purple!
Anyone know why, &/or how to fix it?

Here's the code I'm using:
Code:
printBtn.onRelease = function() {
var pj = new PrintJob();
var success = pj.start();
if(success) {
pj.addPage (_root.myMC, {xMin : 0, xMax: 222, yMin: 0, yMax: 223},{printAsBitmap:false});
pj.send();
}
delete pj;
}
(I've tried printAsBitmap both true & false, & have removed it completely - no change)
Here's an image of the issue, on the left is the actual colors, on the right is the purple color-eater...

Printing Problems (printJob)
I've having some sporatic printing problems. I'm using two documents I created in Flash. One has a good deal of text and a few vector lines making a boxed area over the text. The other (this is the one that always works) has much less text and two parts of it are dynamic. The first one was created from a copy of the second, I simply replaced all the text and added the graphic box.

They both use the same actionscript to print, just changed target for the printJob function. The strange thing is, sometimes the first one will print. So it's intermittent and I haven't found any particular reason to focus on.

Any ideas would be most welcome.

Mike

Please Help Printjob Not Printing Jpgs
Hello,
I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't. Please tell me someone else has had this problem and knows how to fix it!
Thanks!

Printing Resolution With PrintJob
Hello-
Is Flash 8 restricted to printing at 72 dpi? I have authored a Flash viewer that displays scanned documents. It seems I can only print bitmaps at 72dbi which is not very practical for my project. Any ideas on workarounds or other methods?

Thanks!

Problems With Printing With PrintJob
Everything prints great localy but when I upload files on server it either won't display Print window or it gives message "Spooling" and prints nothing. I am printing bitmaps. Any idea?

Printing Problems With Printjob.addPage()
I have a movie called "MyMovie.swf" that uses printjob.addPage() to allow the user to print a printable version of the Flash.

This works fine when the movie is rendered by itself, as shown in the code below:

Example:


Code:
var pj:PrintJob = new PrintJob();
if (result) {
pj.addPage("print43", {xMin:5, xMax:308, yMin:5, yMax:850}, {printAsBitmap:true}, 44);
pj.send();
delete pj;
} else {
}
stop();
But, if I load "MyMovie.swf" into a Popup Window component as shown below, it no longer can find the "print43" labeled movie and prints a blank page instead:


Code:
on (release)
{
var sPopUp = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {title:"Title Goes Here",closeButton:true, contentPath:"MyMovie.swf"});
sPopUp.setSize( 800, 600 );

var sPopUpListener:Object = new Object();
sPopUpListener.click = function(evt:Object){
evt.target.deletePopUp();
}
sPopUp.addEventListener("click", sPopUpListener);

}
I'm assuming this is a pathing issue, but I've tried replacing pj.addPage("print43") with pj.addPage(this.print43) and it still doesn't work when the movie is loading inside a window popup component.

Any ideas?

Printjob Printing Blank Pages
i'm building a printing class.
it worked fine before i optimised the code with the for loop.
now, i get the desired output in the swf window but the printouts are blank.
i believe it has something to do with scope/children and what belongs where in the z order but i'm just guessing really.

any help is much appreciated.
thanks.

fla:-

<code>
import printing.PrintExample;
var gameData:Array = new Array("df","alice","10","5","8");
var Print:PrintExample = new printing.PrintExample(gameData);
addChild (Print);
</code>

as:-

<code>
package printing
{
import flash.display.*;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.events.*;
import flash.printing.*;

public class PrintExample extends Sprite
{
private var _printableContent:Sprite = new Sprite();
private var _textField:TextField = new TextField();
private var _nameField:TextField = new TextField();
private var _ageField:TextField = new TextField();
private var _gameField:TextField = new TextField();
private var _scoreField:TextField = new TextField();
private var printJob:PrintJob;
private var gameData:Array;
public var finished:Boolean = false;
private var fields:Array = new Array("_textField","_nameField","_ageField","_game Field","_scoreField");
public function PrintExample (_data)
{
gameData = _data;

for (var i:int = 0; i< gameData.length; i++)
{
addChild (_printableContent);
_printableContent.addChild (this[fields[i]]);
(this[fields[i]]).width = 400;
(this[fields[i]]).autoSize = TextFieldAutoSize.LEFT;
(this[fields[i]]).x = 20;
(this[fields[i]]).y = (i*20)+20;
(this[fields[i]]).text = gameData[i];
if (i==4)
{
finished = true;
}
}

printJob = new PrintJob();
printJob.start ();
if (finished == true)
{
trace ("finished");
printJob.addPage (_printableContent);
printJob.send ();
}
else
{
trace ("not finished");

}
}
}
}
</code>

PrintJob - Not Printing Multiple Pages
When I say "Not printing multiple pages", I mean that sometimes on slower computers or printers, it would appear that the spooling ends prematurely, while on other faster computers/printers, everything gets printed fine.

Any solution to this, cause honestly, I can't see it. I don't think it's the code, because it does print ok from my computer, but others can only print 10 of 30 pages, sometimes more, but rarely all. Appreciate any help!

Script Timeout While Printing With PrintJob
Hi everyone,

I'm trying to print a movieclip using PrintJob. The printing itself works, the problem is if the movieclip is too large. A loop splits the movieclip into pages. If this takes too long (more than 60 seconds) I get the script timeout error "... code causes Flash to run slowly .. Cancel script? Yes / No".

I've tried using scriptLimits, setting the timout to very high (65000 seconds). This works with Flash Player 7 like a charm but not with Flash Player 8. Splitting the loop into smaller loops doesn't work either, because I loose the PrintJob, meaning I can no longer add pages with PrintJob.addPage().

The application is for a client, so I have to get this to work on a P3 800 MHz.

Can anyone please help me?

Thanks in advance

Orion

PrintJob Class - Printing Black From PC
If anyone can help me, or has seen this problem before I would be a very happy person! I built a custom print feature for an interactive map that prints the current area of the map you are viewing. The feature works perfectly on a Mac, and everything prints out great. Yet when I try and print on a PC the main area of the map I am printing prints out black.

I have literally tried everything, swapping the MC to the highest possible depth before it prints and swapping it back after. I tried removing all masking to see if it would print. I tried printing the clips embedded within _level0 that contain the map, and even the MC's inside of those. All of this to no avail though. Which leads me here to see if anyone has run into a similar problem and found a potential solution.

Here's the URL for you to check out is here:
http://www.universitycircle.org/map/...dv_print2.html

The code I used for printing is below (thisLevel is set to the _root of the movie for preloader purposes, so just think of that as _root):


Code:
printCurrent = function(){
var mapPrint:PrintJob = new PrintJob();
var myPrintSuccess:Boolean = mapPrint.start();
if(myPrintSuccess{
if(mapPrint.orientation == "landscape"){
trace("landscape");
mapPrint.addPage(thisLevel,{xMin:11,xMax:739,yMin:63,yMax:523});
mapPrint.send();
}
else if(mapPrint.orientation == "portrait"){
trace("portrait");
thisLevel._rotation = 90; //rotates map to print properly in portrait
mapPrint.addPage(thisLevel,{xMin:11,xMax:739,yMin:63,yMax:523});
mapPrint.send();
thisLevel._rotation = 0;
}
}
delete mapPrint;
}

PrintJob Class; Printing Selective Layers
I have a picture gallery that i want to allow users to print off specific pictures from. Right now it prints off exactly what they see in the gallery which includes the next button, the print button and the menu. How do I tell my PrintJob to only print a certain layer? I just want the picture itself to print.

Flash Player 9 (printjob) Printing Blank
Hi, first post.

i am having a problem with the printjob class. i developed an application which dynamically created pages and sent to print fed from xml. all worked fine in flash player 8.



now with the update to flash player 9 the pages print blank.



the right amount of pages are spooled just nothing is printed (ie 4 blank sheets)



the printing still works fine in flash development, or in standalone flash player...its only the browser plugin (ie, firefox, opera - all PC) that all fail to print anything at all.



anyone know any reasons why this could be happening?



regards

J

Problem Printing Multiple Pages With PrintJob
Can I have some help please?

I have a flash file that prints labels, this all works fine for single pages; however I would like to print multiple pages of the same movie clip (sticker_mc) which content changes when my function autoSet() is run. (autoSet() changes content of dynamic text fields of sub movie clips and also shows/hides some sub movie clip when required).

The code below prints multiple pages as I expected (2 pages, 3 pages, 4 pages etc as required), but the dynamic text fields data stay the same for each page as it is when initial print request is called.

The function autoSet() works perfectly (I run it manually without the print request), and when the print has completed the sticker_mc movie clip is displaying the data as it is intended.

Sticker_mc has four sub movie clips; in my testing I sent two pages to the printer, the first page has all four sub movies visible (as intended) and the second page prints with only two sub movies visible (as intended) but the dynamic text files which should of change remains the same as the first page. However the movie clip which is displayed on the screen once the print request has completed, has the correct data in the dynamic text fields. ??????????????

I hope this is understandable, I’ve spent a whole day playing with the code trying to sort it out and would dearly like some help before I start to cry!!!

Thanks

Russell









Attach Code

printLabel = function () {
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
var pagesToPrint:Number = 0;
if (my_pj.orientation == "portrait") {
// portrait page.
sticker_mc._rotation -= 90;
// This checks to see if variable “files” is bigger than 0, if it is it will loop addPage until complete (the function autoSet() reduces the
// variable “files” and changes the content of “sticker_mc”.
if (files>0) {
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:600, yMin:0, yMax:700})) {
pagesToPrint++;
}
for (j=files j>0; j=files) {
autoSet();
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:pWidth, yMin:0, yMax:pHeight})) {
pagesToPrint++;
}
}
} else {
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:700, yMin:0, yMax:600})) {
pagesToPrint++;
}
}
sticker_mc._rotation += 90;
} else {
// my_pj.orientation is "landscape".
// landscape page.
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:pWidth, yMin:0, yMax:pHeight})) {
pagesToPrint++;
}
}
if (pagesToPrint>0) {
my_pj.send();
}
}
delete my_pj;
};

Flash Player 9 - Printing Blank (printjob)
Hi, first post.
i am having a problem with the printjob class. i developed an application which dynamically created pages and sent to print fed from xml. all worked fine in flash player 8.

now with the update to flash player 9 the pages print blank.

the right amount of pages are spooled just nothing is printed (ie 4 blank sheets)

the printing still works fine in flash development, or in standalone flash player...its only the browser plugin (ie, firefox, opera - all PC) that all fail to print anything at all.

anyone know any reasons why this could be happening?

regards
J

Problems W/ PrintJob Printing Movie Clips In Other Frames
Hello,

I have a little function that I'm calling from a button that prints the contents of a movie clip.

I would like to also print another frame that's not the current visible frame.


Here's my function:

function print_movie_contents( print_page )
{
var my_pjrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();

if( myResult)
{
my_pj.addPage( print_page );
my_pj.send();
}

delete my_pj;

}//__endFunc__

Is this possible in any way?

Thanks,
Clem C

Landscape Printing Of A Specific Subarea Of The Stage Using PrintJob
Hi all,

does anyone know how to set a specific area of a .swf (for instance, the top left 400 pixels) to print in landscape mode?

I need to allow users of my application the ability to select whether they want to print in landscape or portrait mode, and I need the area they elect to print to be sized to fit the page.

Thanks ;-)

PrintJob Printing Dynamically Loaded Jpgs As Blank
I am using the printJob class to print some dynamically loaded .jpgs. I am testing to make sure the .jpg is loaded using MovieClipLoader() with a listener. Then, after I send the clip to the printer I unLoad the movie clip.

The odd thing is that sometimes the images will print, but other times they come out as just a black square where the image should be. I can't figure this one out, so if anyone has had a similar experiance, please let me know.

Also, I am using {printAsBitmap:true} when I add the page. I tried this thinking it would help, but no dice.

Any input would be GREATLY appreciated! Thanks

Problems W/ PrintJob Printing Movie Clips In Other Frames
Hello,

I have a little function that I'm calling from a button that prints the contents of a movie clip.

I would like to also print another frame that's not the current visible frame.


Here's my function:

function print_movie_contents( print_page )
{
var my_pjrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();

if( myResult)
{
my_pj.addPage( print_page );
my_pj.send();
}

delete my_pj;

}//__endFunc__



Is this possible in any way?

Thanks,
Clem C

Problems W/ PrintJob Printing Movie Clips In Other Frames
Hello,

I have a little function that I'm calling from a button that prints the contents of a movie clip.

I would like to also print another frame that's not the current visible frame.


Here's my function:

function print_movie_contents( print_page )
{
var my_pj:PrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();

if( myResult)
{
my_pj.addPage( print_page );
my_pj.send();
}

delete my_pj;

}//__endFunc__



Is this possible in any way?

Thanks,
Clem C

White "ghosting" With My Transparent PNGS And GIFS
This is really bugging me. How can you import transparent images (e.g. raster graphics, say a picture of someone whose background is transparent) without having that somwhat alpha'd white discoloration for the area that supposed to be transparent. I notice that this seems to be more noticeable with "medium" colors such as a light blue.

I know how to export PNG's and GIF's with transparency from both Fireworks and Photoshop 7, so it's not that I'm exporting them wrong. Both formats exhibit this glitch. I think this is a glitch in Flash and I'm wondering if anyone knows how to make the transparency look the way it did, meaning TRANSPARENT and not visible other than that "milky" off color that's VERY noticeable!!! lol

HELP HELP HELP...

Printing Transparent Gif Or Png
I'm trying to print 2 movie clips superimposed on each other. The top one uses transparent PNGs (8bit). When I try printing it using printJob the PNG (also tried Gif) looses it's transparency.

Anyone have any ideas how to solve this problem?

Printing Transparent Png's
Hi Everyone!

I've got an swf with transparent png's in it. In flash it looks perfect, put when I print it, I get black areas wherever the transparency is supposed to be. I see all kinds of articles about importing with transparency into flash, and i can see that it works, it's just the printing that isn't. Can someone point me in the right direction? I've used the property tab on the library asset to change it to gif/png lossless, and that's not helping. I'm finding it frustrating that I can see what I want on the screen, but i'm not able to print what i see. I'm using Flash 8.

Thanks a million,

-Dave

Problems When Printing Transparent PNG From Flash MX
I create a green box, and position a transparent PNG over it.

Then I publish to swf, and open it -- all is OK.

Then I right-klick and choose print, and print to either a printer or PDF-Writer.

The PNG is not transparent on the print/PDF (there is a white box covering the area of the PNG where the transparency should be). Is this normal?


mvh
yvind Bollingmo
Graphical Engineer / Pinnacle Graphics

Printing Transparent Image Backgrounds
Using: Flash MX 2004 and Photoshop CS2 (but also have Fireworks 8)

What I am trying to do is use GIF images with a transparent background in my animations and they work fine when viewing on a PC. However, when I try to print from the .exe or .swf they show a white background, and when printing from the HTML file, they show a black background.

Is there anyway to print a flash document without a background on transparencies? The only way I have gotten this to work is to use a mask on the image, but it's a pain in the arse and it seems there should be an easier solution. I'm even willing to upgrade (or downgrade) to another version of Flash if neccessary.

Thank you!

Printing Transparent Movies In Flash
I have got the printing function to work fine, but am having trouble with the fact transparency of the top movie just appears white.

any suggestions??

Transparent Flash Movie Printing Black
I have a transparent flash movie that expands to a larger size, the part that expands is transparent until the movie increases in size.

When the page prints I get a black block where the transparent movie resides.

Is there a way around this? Or is this a known problem?

Thanks in advance.

Five Digs

Jagged Pngs...anyone?
i have a few pngs in an mc. they look great in the staging environment, but the second i publish the movie and have a mask move over top...the pngs become all jagged and crappy lookin. does anyone have a fix for this? thanks a ton in advance.
charles

Imported PNGs
hello all--
i imported some png's (text) into flash, and they (forgive me, i can't think of a better term) are really unclear around the edges. i wanted to turn off the anti-alias on the text, and i couldn't find a way to do that in flash. so i just imported from fireworks. any fixes on this?
josh

Can't Import PNGs
Since loading Swift3D into my system I can no longer import transparent PNGs in FlashMX. FlashMX will still allow me to import all other image formats. It appears that the Swift3D software reconfigured something in my system to cause this to occur. I believe FlashMX now interprets the PNGs for fireworks but I can't say for sure. I removed Swift3D from my system and reinstalled FlashMX several times but to no avail. How can I get FlashMX to import transperant PNGs again without having to resort to reformatting my hard drive?
My email is: BOBWestPalmBeach@aol.com

Pngs Resizing In Swf
i'm having a problem where certain pngs are "squished" in the swf. its like pixels are overlapping. it appears fine in the fla file. is this a bug?

help? asap. thanks!

[F8] Loader With Pngs
hi. firstly, i wasn't sure if i should post this in this section or in another one, but i'll post it here because it's my first post.

anyway, i've been using flash for a little while, and i'm pretty certain i can build a regular flash loader/preloader using the in-built flash components (rectangles etc.). but what i cannot figure out how to do is to build one using two images instead. it's a bit confusing, so i prepared a few images to help explain it a bit better:

here is the outline of the loader:

and here is the finished loader:

what i want to achieve with this is to get from the first image/frame to the last image/frame as the page loads (using actionscript code). i am aiming for something like this:

as you can see, the shape is being filled in constantly as the page loads. of course, i would have it a lot smoother, but i just made a quick animated gif to explain how i wanted it to look.

i tried doing this myself, using a mask and a few other things, but i couldnt figure out how to make it display properly -- ie. how i explained it above. hopefully someone can help me out!

thanks in advance.

[CS3] PLEASE Help With Importing PNGs
First of all, thanks in advance for any help.

I recently finished working through Lynda.com's Flash CS3 Essential Training course. I learned there that PNGs could be imported, and if there's just a white background, other backgrounds could be seen, through anti-aliasing. That worked fine for the example they gave me. I imported their supplied PNG and changed the background color, and it worked fine.

I am now working on a project where I have drawn a image of a beach, and want to put my family on it. I took a picture of all of us, and then went into Paint. I erased all surrounding areas, so that there was just my family and a white background. I saved that file as a PNG. I then went into Flash, and imported that video onto the stage. However, it showed the white background around my family, and did not do correct anti-aliasing (is that the right term? I;m pretty sure it is). Does anybody know how to fix this issue? Please respond quickly, as I am eager to finish this project!

Feathered PNGs
Is it not possible to feather and soften the edges of an image on a transparent background in PS3, and then import it to Flash as it looks? I have done this with PNG24 and Flash still kills the edge to where it is hardened with no feather. Please advise.
Thanks

Importing .pngs
Hey Ppl

-Interesting problem Im going through.

Ive made some 24bit png's in PS. They import gorgeously into flash. They animate well in the movie I create. However, when I test the movie or when I export it the png gets a strange distortion like its being resized by a pixel in one direction or another.

Ive checked:
-the size of the original, the size of the graphic, the size of the movie and the size of the movie on the stage.
-I removed all elements except for the png in question(it does this to them all)
- the properties of the original graphic and changed the compression to png lossless.
- turned off the jpg compression

...and still it looks great until I test the movie- Im completely stumped now- Any ideas?

cheers,
Adam

Empty MCs And PNGs
I promised I searched before asking this question.

I'm putting together the ol' XML Slideshow but I want to use pngs instead of jpgs. My understanding was that Flash 8 allowed this. When I try and run it with pngs it outputs "undefined". When I change the xml to load a jpg it works. I'm loading the images into empty movie clips if that helps.

Here is a snippet of actionscript:


Quote:




bigshirt_mc.loadMovie(bigshirt[p], 1);




And the corresponding XML:


Code:
<bigshirt>landscape/assets/shirt1.png</bigshirt>
Like I said, when I change the xml to shirt1.jpg it works. Any suggestions?

Thanks!

Importing .pngs
Hey Ppl

-Interesting problem Im going through.

Ive made some 24bit png's in PS. They import gorgeously into flash. They animate well in the movie I create. However, when I test the movie or when I export it the png gets a strange distortion like its being resized by a pixel in one direction or another.

Ive checked:
-the size of the original, the size of the graphic, the size of the movie and the size of the movie on the stage.
-I removed all elements except for the png in question(it does this to them all)
- the properties of the original graphic and changed the compression to png lossless.
- turned off the jpg compression

...and still it looks great until I test the movie- Im completely stumped now- Any ideas?

cheers,
Adam

PNGs Vs JPEGs
Hi there,

You may have some expertise that could help me... I am building a flash movie and would like to know the difference between PNGs and JPEGs.

I have saved all my files as a JPEGs, should I resave them as PNGs?

I also have some questions posted in another topic that have gone unanswered in the title "Flash Movie Questions". Would you consider these questions if you have time.

Thank you for your help!
Billy

Importing Pngs, No Options...
In Flash 5, when you imported a PNG image, you were given the prompt to choose whether or not to flatten the image or import with editable objects (the latter is what I want to do).

In MX, when I import a PNG, I don't get the prompt. Is there a way I can either turn this feature on or locate this dialog box to initiate on my own?

Any help much appreciated, because I think, by default, that PNG's are flattened. Again, I don't want to do this, I want to have editable objects.

Thanks in advance for any help or advice!

Copyright 2005-08 www.BigResource.com, All rights reserved