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




Printing With Filters



quick question.I wrote a print job function for which i have parts of the script that use addPageexample:
Code:
pj.addPage(_root, {xMin:0,xMax:1024,yMin:0,yMax:768},{printAsBitmap:true},null);
i added the "{printAsBitmap;true} after realizing that my filters (aka shadows etc) were not showing up in the prints. after adding that it certainly took longer to add each page i designated but it still not showing the filters. i am assuming that the printAsBitmap just handles transparency and color effects and not movieclip filter parimiters.. is this true?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-22-2006, 06:19 PM


View Complete Forum Thread with Replies

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

Dynamically Applied Filters Not Printing - ColorMatrixFilter
hello people!

Ok, so I have these white shapes that I am "painting" using filters. (import flash.filters.ColorMatrixFilter).

I apply it to the shapes using:

ActionScript Code:
myRoot.shapesCreated[i].filters = [eval(this.currColour)];

The problem is this: It paints really nicely, but when I use print(), it just prints the shapes, without the applied color transformation.

I tried using printAsBitmap also, no luck.

Any help would be appreciated.
Cheers!

MovieClip Alpha / Filters Butchered When Printing...
I am trying to print an externally loaded SWF that has several filters and alpha transparent layers. Is there a way I can convert a movie clip to a static bitmap? If so I was thinking I could create a new movie clip, draw on a white background, add the swf I was to print, and then get the bitmap of the whole thing put together (then it wouldn't be alpha transparent or have filters)

Need An Explicit Printing Tutorial For Flash 5 Or An Expert On Printing...
Been trying to print for a couple of hours now.
It seems to work fine when I use simple objet on the main timeline, but I get weird result when trying to print nested object.

For example, it got a movie clip containing multiple duplicate mc, and a dynamic text field. This movie clip is out of the movie stage.

When I try to print it it using:

printAsBitmap(this.effective.printArea, "bMovie");

nothing get printed.

so I move the movie on the stage.

this.effective._x = 0;
this.effective._y = 0;
printAsBitmap(this.effective.printArea, "bMovie");

the frame gets printed, but the text is out of phase even if it looks fine on the screen.

I have define the label of the frame I want to print with #p and the printing area with #b.

Why can I print my movie if it's off the stage, and why does the dynamic text field is printed out of phase when I tried to print ?

----------------------------------

At least can someone direct me to a good flash 5 tutorial on printing...

Martin
martin.tremblay37@sympatico.ca

Flash Printing - Trouble Printing Bitmap
Hello,

I have a Flash MX (not 2004) project that generates dynamic printable coupons. Here's the lowdown of what happens:

1. The flash coupon is loaded - dynamically loads in text and an external jpeg. This data is displayed in one frame that the user sees on the screen, and in another frame that the user never sees but is sent to the printer.
2. User presses print.
3. The flash movie sends the 'print this' frame to the printer, and voila! Printed coupon!

Here's a sample link: http://givingcorps.com/gc_central/br...&CoId=2&ChId=4

All works well, but when it comes time to print the coupon, everything prints but the jpeg. In fact, after you hit the 'print' button and the print dialogue box comes up, and you begin to print, you can actually see the jpeg vanish from the flash movie, only to return when print dialog box is finished!

I've tried a variety of tests - printing just the current frame, incorporating a test to make sure the image is loaded before allowing printing, and trying all the different print functions. I'm aware that print() only prints vector while printAsBitmap() will print everything, although with less quality, and I'm currently using printAsBitmap().

Has anybody run into this? Is there any solution or anything I'm overlooking?

Thanks for your help.

Printing Flash Player 7 Printing
hi,
i want to set up a flash site with multiple levels and have all levels print. is this possible? i've printed before out of flash playere 7 but was only able to print out of one level. any insights would be appreciated.
muchas gracias,
lavadome

Printing In Flash. Problem With Printing Twice...
I have an all vector form that displays data within it. As soon as it opens, it prints. I am running this in the first frame of the root time line.

Code:
print(_level0, "bmax");
stop();
The timeline is 2 frames and I am wanting to print both pages. Everything works fine expect after the print dialog box pops up and you hit print, then it prints the 2 frames, it pops up again and wants to print the pages one more time. I only want it to print once. Any ideas?

[F8] Filters
Please help. I just installed Studio 8. I am trying to use flash filters. But the filters tab is missing. Is there a way to turn it on? Did I install wrong? I know it's supposed to be there.

ronhvb03

Box Around Filters?
Why do I see a transparent white box around filters in flash? I see it both in Flash 8 Professional, and in swfs embedded in web pages.
I attached a picture of what I see for a simple swf with a circle with a red glow filter.
Here's the swf:
http://img46.imageshack.us/my.php?im....swf&width=320

Does this happen to anyone else? This just started happening recently, before filters worked fine.

Filters
Hello everyone,
I have a movieclip with a glow filter added through the filters window, but I want to be able to simply decrease the strength and blur of it with actionscript without creating a completely new filter.
Thank you!

Filters Tab
I just loaded studio 8. I am trying to use filters in Flash 8 Pro. But the filters tab does not seem to be present. Can anybody help?

Filters
I draw for example a square and then convert it to symbol.
Then I apply a shadow filter and i don't know for which reason it get's like very defocused on the stage, but then when i play it, it looks good again.

Is this normal or am i doing anything wrong?


Thxs!

Colo(u)r Filters
For an image effect, I would like to screen out the primary light colo(u)rs individually.

I know that it is possible to do this in other programs, but that would leave me with four of the same picture (red, green, blue, normal)

Is is possible to screen out all but one colo(u)r in flash.

I tried with little success by using semi-transparent rectangles of the wanted colo(u)r over the picture.

-Z

Filters : Blur
Could anyone quickly give me a run down on how i would apply a blur filter to a movie clip in only the y direction? I've only found a few tutorials related to the bitmapdata class. With action script that is.

Effect Using AS Anf Filters
Hi can anybody help me out. i want to achieve a similar effect to ScreenVader. i'm using flash 8 and understand it has something to do with the new filters. can anyone help?
thanks,
Sam

Filters And Setmask
Hi,

i am loading movies into a container that is masked off using setMask(), however when i apply a filter (blur) the blur is visible outside the masked area.. anyone know a fix?

cheers,
Gareth

[F8] Delete Filters
Hi folks, I'm trying to remove the filters (in fact there is only one) that are applied to a Movieclip. I used the following coes but none of these worked. What would you suggest ?


PHP Code:



myMC.filters.shift();





PHP Code:



myMC.filters = [];





PHP Code:



myMC.filters = null;

Flash Filters
I can find the filters tab when I use flash. How can i make it appear? I just installed Studio 8. Before that I had the trial version. The trial version did not have the filters tab either.

Thanks
ronhvb03

Dynamic Filters
What are the conditions that need to be met for a MovieClip/Sprite to work with filters? I have some object that I am dynamically using the BlurFilter. Some object are blurring, and others are not.

Any ideas?

Thanks.

[CS3] I Can't Find The Filters Tab
I'm ****ing retarted. I know the filters tab should be in the property inspector, but I can't find it anywhere. This is driving me insane.ck I

Ah, ****. There's a newbies forum. **** I am so dumb

[CS3] I Can't Find The Filters Tab
In the properties inspector I see a parameters tab, I see a properties tab. I don't see a filters tab. What the **** am I doing?

Problem With Filters
Hi Guys!
I have an animation with explosion helicopters going around, and in the explosions i have applyed blurs etc... and after this the movie start to slow...
Why that?

[CS3] Buttons & Filters
I am definitely new to flash. I have some experience with a few of the other CS3 programs, like Photoshop, Fireworks, and Dreamweaver; but I am finding myself quite stuck on what seems to be a very simple operation.

I have designed a homepage layout with photoshop, and I have imported all of the layers into Flash.

The problem I am having is that when I select the layer, and object, that will eventually be one of the links on the home page, I cannot add a filter to it.
It gives me the "Filters are applicable to text, movie clips, and buttons only.

I have selected the object in question, converted to symbol - Button, double clicked to get into the button, and it still will not allow me to apply a filter.

I am currently in the process of going through all the "Lynda.com" tutorials, and I have already completed the "Getting Started Essentials," yet I cannot locate anything that addresses this problem.

Any help you can offer is greatly appreciated.

Extra Filters?
are there other filters available for flash cs4? thrid party or otherwise?

Importing Filters?
Im running through a tutorial on blurring effects, and it first says to use this:

import flash.filters.BlurFilter;


when I compile the actionscript it says something is wrong with that line of code. Im using Flash MX.


thanks

Tweening Filters
Hi all!
I found some time ago a very helpful extention for flash: tweening by Zigo.
It works fine but i canno understand the way to use theese libraries with the filters e.g. Dropshadow, blur etc.
Can anyone help me?

thx in advance

Flame With Filters
so I've got a flame effect using displacement and some feedback going on.. how does this run on your system? I know it's horrible on mac.

http://www.ututu.com/~magronbass/fla...placenoise.swf

ya know, these filter effects are cool but I'm just not too sure if they're practical because of the emmense overhead... I'm planning on downsampling the effect for this one to optimise, but still, I'm not too sure if it'll help much in a real life context..

Filters In AS2.0 Class
Hi, I have a ButtonClass linked to a MovieClip symbol in my library. I'm trying to add a blur effect to the onRollOver using filters. However when I roll over the clip the Blur gets applied for an instance and then gets reset. I think it has to do with the way I'm applying the filter (this.filters = [this.gf]. Any ideas?

Here's my class so far:


Code:

import flash.filters.*;

class ButtonClass extends MovieClip
{

private var gf:GlowFilter;

public function ButtonClass()
{
this.onRollOver = this.over;
this.onRollOut = this.onDragOut = this.out;
}

private function over():Void
{
this.gf = new GlowFilter(0xFFFFFF, 0, 10, 10, 3, 3, false, false);
this.filters = [this.gf];
this.onEnterFrame = function()
{
this.gf.alpha += (25 - this.gf.alpha) / 5;
this.gf.blurX += (100 - this.gf.blurX) / 5;
this.gf.blurY = this.gf.blurX;
this.filters = [this.gf];
if(this.gf.blurX >= 100)
{
delete this.onEnterFrame;
}
}
}
}

Dynamic Mc Filters
Hi! Iīve been reading all over the net looking for info about changing the movie clip filters dynamically but itīs really dificult to find.

What I need is to change the saturation of a Mc with AS. I heard that it has to be done with the Color Matrix Filter but I donīt understand the way I have to do it.
Besides, what I want isnīt too much, just tranform any image loaded into that mc into a grey scale picture, so the saturation must goes (in the flash menu at least) from 0 to -100.

Any extra hand from any flash wise?

Bye!

Filters And Zooming
When you right-click the stage, and click "Zoom-In" the filters get "de-applied" for certain instances of movieclips. Why is this?

Example: http://www.sheezyart.com/view/1710045/ (Zoom in during the menu, the both blue ovals will lose its blur when you zoom. But when you view the flash file one or none of the movieclips lose their blurs.)

Filters Assist
Hello, I wanted to share a tool on which I am working on my spare time.
The tool is aimed to assist the usage of filters in Actionscript 3 .

http://filters-assist.webklan.com/

With this tool you can compose the filters effects visually and get the source code to apply it in AS3.
I appreciate feedback and suggestions.

Mask + Filters
I don't know if there's a way to do this, but I have an image that is being masked so only a small portion of it is showing. I would like to add a drop shadow or bevel or some kind of filter to the visible part of the image, but since the edges of the original image are masked out, this doesn't seem to work. I've tried adding the filter to the image and to the mask and it didn't work either way. I have a feeling this isn't the last time I'll face this issue, so any help would be greatly appreciated.

Filters Panel
hey guys were can i make the filter panle show?

i have been looking for the filters for an 1hour now..lol
flash 8

thx

Text Cut Off If Filters Are Used
Please excuse me if this is old news...
I've run into a bug where text (static or dynamic) is cut off when filters are applied.
For example, I can create a static text object on the stage with a common font (Arial) and put some text into it, and it displays just fine. I'm putting a tween on it to gently fade it in from invisible (alpha=0%) to full (alpha=100%) and back to invisible. At this point, the text looks just fine.
The trouble starts when I add a filter, like drop shadow for example. Once the filter is applied, the last character is cut off. For example, if the last word ends with an 'e', the 'e' character is lopped off vertically so only the left two thirds of the 'e' displays and the rightmost remaining third is not visible.
I've tried quite a bit of adjusting things to fix this... adding multiple extra spaces at the end, increasing the size of the text box, several different fonts... nothing works except taking the filter back off.
This is on the Mac version of Flash, by the way.

Anyone have an idea of what's going on, or what to try?
Thanks in advance.

Download CS3 Filters
Hi, I have two questions. First, is it possible to download flash filters for cs3 besides the stock filters that come with the program? Second, if so, does anyone know of a good resource to download these filters? Thanks.

Leaking Filters?
Hi All,

Believe it or not, I got myself a leaking actionscripted filter, what ever next? ;)

Got a mc button, with drop shadow filter, on a completely different layer another mc takes on the properties of the button, onRollOver etc...

Need friends fast!

Kind Regards,

Boxing Boom

Filters Problem
Hey guys,

I have 12 figures that are loaded on the stage and they all have a drop shadow and a blur filter, now my problem is when I export my scene I get this error

Quote:




**Error** Scene=Scene 1, layer=actions, frame=3:Line 54: There is no property with the name 'filters'.
figures.filters = [dropShadow, blurry];




and here's the actionscript

ActionScript Code:
for (i=1; i<=12; i++){var figures:String = "figures" + i;attachObjects = vPlane.attachMovie("figure"+i, "figures"+i, i);function updateFilters() {        figures.filters = [dropShadow, blurry];    }    function blurTracker() {        prevbx = bx;        prevby = by;        bx = figures._x;        by = figures._y;        dx = Math.abs(Math.round(bx - prevbx)) * mult;        dy = Math.abs(Math.round(by - prevby)) * mult;        blurry.blurX = dx;        blurry.blurY = dy;        updateFilters();    }var dropShadow = new flash.filters.DropShadowFilter();dropShadow.blurX = 10;dropShadow.blurY = 10;dropShadow.distance = 6;dropShadow.angle = 35;dropShadow.quality = 2;dropShadow.alpha = 5.000000E-001;blurry = new flash.filters.BlurFilter();blurry.quality = 2;blurry.blurY = 0;blurry.blurX = 0;figures.filters = [blurry, dropShadow];mult = 1;setInterval(updateFilters, 33);}

Max Number Of Filters?
Does anyone know if there is a maximum number of objects you can apply filters to dynamically. i.e. using something like

var gf:GlowFilter = new GlowFilter(0x0203CA, 100, 3, 3, 5, 3, false, false);

I'm attempting to apply the same filter to all objects on my stage (5) when a certain event occurs, but only 4 of the filters animate, and the other object does not get a filter. Which leads me to ask if there is a maximum number of objects you can apply the filter to.

Animated Filters
Help!

Below, I have a script that fades in when whatever is loading into it reached 100%. The alpha fade scripts (commented out) works well, but I would like to have it unblur into focus instead. So instead of alpha of 0 into an alpha of 100, I would like to try to get a BlurFilter of 16, to a BlurFilter of 0.

Any ideas?

Thanks



onClipEvent (enterFrame) {
var percentcheck = (this.getBytesLoaded()/this.getBytesTotal())*100;
import flash.filters.BlurFilter;
var bf:BlurFilter = new BlurFilter(16, 16, 3);

if (percentcheck == 100) {
if (bf.blurX<16) {
bf.blurX--;
bf.blurY--;
}
// if(this._alpha < 100){
//this._alpha +=5;
//}
} else {
this.filters = [bf];
//this._alpha = 0;
}
}

Animating With Filters
Hello,
I've been working on a bouncing ball movie clip. It has within it the background and the stripes on separate layers. The ball then animates as a whole, going up and down.
Now, the problem begins when I programmatically apply different color filters (adjusting the hue) on the separate elements. I use one filter for the ball and another for the stripes. In order to preserve the filters throughout the anim, I reapply the onEnterFrame. When the ball bounces, the separate elements, even though on the same timeline, are out of sync. Also, the ball color flickers from time to time (exposing the original color).

I first thought that is was the filters that overwhelmed the processor. I then ran the same animation at an very slow and then fast frame rates: same problem. I now have reasons to believe that the Color Filter effect somehow rounds the values that are used to move the movie clips in the animation process. I have no guesses for the flickering.

If anyone has experienced a similar problem or has any information to provide, please share.

Filters Plus 9scaling
Well my first time using 9 scaling and I have to admit I'm a bit vexed. How do I make the filters stick when I resize the mc with 9 scaling? I tried applying the dropshadow with as aslo. I'm not aware if you can use filters on 9 scale items. Any help is apreciated!

Question About Filters
hi everybody i have a little question, lets say i have a movieclip and i want to aply several filters to it in order to get a effect, that same effect can be also obtained exactly the same in photoshop and imported into flash as png, jpg, whatever

if the filters i use in the flash clip are like 3 or more, will the swf suffer a bigger performance impact usint it rather than using the photoshop image?

i hope a made myself clear ^^

cheers

Filters And Setmask
Hi,

i am loading movies into a container that is masked off using setMask(), however when i apply a filter (blur) the blur is visible outside the masked area.. anyone know a fix?

cheers,
Gareth

Animating Filters With As?
oi oi kirupa,

got another question for the kirupa help-desk

i was wondering how to animate a given filter with as???
for example i've a button and a movieclip, and if i roll over the button
the movieclip should get a blur-filter slowly (animated)...

maybe there is a tween-class for filters or something similar?!?
that would be cool, i guess...

does anybody has an advice for me?

thx in advance,
roll4life

Tweening Filters
Has anyone had experience with tweening filters? I would like to be able to tween blur, bevel, dropshadow etc. through code with out using onEnterFrame.

Has anyone been able to do this possibly with the Tween class or maybe seen a class someone else built that provides this functionality?

Any info would be appreciated.

Thanks,

Easing Filters
I just got through the easing tutorial (http://www.kirupa.com/developer/flash8/easing.htm) and thought that a easing filter variation would be awesome. So I began my own easing blur function but I can't seem to get it to ease the blur, it just applies the blur without the ease...Maybe my brain is just much for the day....

Any ideas what i'm doing wrong?? ::


Code:
import flash.filters.*;
MovieClip.prototype.easeBlur = function(to:Number, speed:Number, endF:Function, endO, endP:Array) {
var blur:BlurFilter = new BlurFilter(to, to, 3);
var _this:MovieClip = this;
_this.filters = [blur];
var aux:MovieClip = _this.createEmptyMovieClip("easeBlur_aux", 1223);
var previousBlur:Number = this.blur;
if (isNaN(speed) || speed == undefined || speed == '' || speed <= 1) {
speed = 1.2;
}
if (_this.blur != to) {
aux.onEnterFrame = function() {
_this.blur = to - (to - _this.blur) / speed;
if (_this.blur == previousBlur) {
_this.blur = to;
this.removeMovieClip();
if (endF) {
endF.apply(endO, endP);
}
}
previousBlur = _this.blur;
};
} else {
if (endF) {
endF.apply(endO, endP);
}
}
};

Filters In Flash
i used some filters in my flash movie. but it causes my movie slowing down...is there any trick to overcome it? i want to get a blurr effect.

Filters And What They Effect
Hey, just a short question.
I have a container Sprite which holds a sprite in it with pictures that move. Without the added filter on the container the framfrate it 26-30 (fine ).
When adding a glow filter to the container it shows up fine visually and only appears to be effecting the container.graphics elements. However the framerate drops to 15-30 (bad ) and this leads me to conclud that it is infact effecting the images aswell (of course!), so I was wondering if there was a way of getting round this, other than adding the image holder outside of the container, and other than creating a shape instance inside to draw in. I think I will probably add a shape instance to sort the small problem, but I was wondering if I had missed somthing. I'm learning flash in all it's detail while Im making my site so forgive the many questions .
My progress can be seen on www.dan0.com if you want to check it out, bear in mind its a prototype still!

How Would I Do Filters Animation In AS3.0?
Hi!

I am trying to make a blur effect of a Movieclip goes away when users pass the mouse over it.

How would I do it in ActionScript 3.0?

How do I animate filters and how do I do MouseOver events in AS3.0?

Filters Effects
http://www.flash-filter.net/index.ph...ct_overview_en

This effect. It is awesome. However, it costs money. I find it sad that something like this should cost 10 bucks.

Anyway, is there a way to recreate this effect without using that filter, or have something else but still a bit the same? I'd be very thankful.

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