Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 310603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:50:55+00:00 2026-05-12T07:50:55+00:00

I’m trying to add a filter in AS3/Flex SDK. I can add a filter

  • 0

I’m trying to add a filter in AS3/Flex SDK. I can add a filter just fine to any one single object – but I want to apply the filter to everything that is a child of a certain object.

Think a pause window pops up, and everything below the pause window goes blurry.

Applying a filter to each individual object (eg: iterating through a list) doesn’t work, as the filters from each object can then overlap and look pretty ugly.

Does anyone know how to go about doing this? Is there a way to apply a filter to everything?

Here’s a simplified version of the code:

myCanvas.graphics.beginFill(0x00FF00,0.5);
myCanvas.graphics.drawRect(0,0,100,100);
myCanvas.addChild(new vectorImage());
myCanvas.addChild(new vectorImage2());
var blur:BlurFilter = new BlurFilter();
myCanvas.filters = [blur];

Neither the directly-drawn graphics nor the children get the blur effect applied. I’ve tried altering the defaults and tried other filters:

var colors:Array = [0xEDEDED, 0xCCCCCC, 0x211b28, 0x211b28, 0x211b28];
var alphas:Array = [0, 1, .35, .5, 1];
var ratios:Array = [0, 50, 100, 115, 155];              
myCanvas.filters = [new GradientGlowFilter(0, 0, colors, alphas, ratios, 50, 50, 1, 3, "full", false)];

With identical effects (that is to say: none). What DOES work, is:

var vi:MovieClip = new vectorImage();
myCanvas.addChild(vi);
vi.filters = [blur];

but produces the above mentioned problems with multiple filters not aligning properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:50:55+00:00Added an answer on May 12, 2026 at 7:50 am

    As I see it, you have two possible approaches:

    • put everthing you want to blur in a separate container as the rest and apply the filters to that container.

    • create a BitmapData of the size of the stage (or the part you want to blur), draw the stage, applyFilter, add it to the the display list (on top of everything) and on top of that add all sprites that shouldn’t be blurred (I imagine an alert box or similar). Note that you should update the BitmapData on resize.

    UPDATE:
    Your code seems correct, but I’m not familiar with Flex, so maybe you can’t add filters to Canvas (is it a DisplayObject?)… maybe setting his cacheAsBitmap to false works (it’s quite buggy sometimes)… anyway, something like this should do the trick:

    var container=new Sprite();
    myCanvas.addChild(container);
    container.addChild(new vectorImage());
    container.addChild(new vectorImage2());
    container.filters=[blur];
    

    or maybe Canvas has a container property already…

    Cheers…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 240k
  • Answers 240k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer VSTraceLog.exe under "Microsoft Visual Studio 10.0\Team Tools\TraceDebugger Tools" could be… May 13, 2026 at 7:09 am
  • Editorial Team
    Editorial Team added an answer There wouldn't seem to be if you generate faster then… May 13, 2026 at 7:09 am
  • Editorial Team
    Editorial Team added an answer By load, I assume you mean write the contents of… May 13, 2026 at 7:09 am

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.