tags:

views:

86

answers:

2

I created a custom component that is a s:SkinnableContainer. I want the background and other items to fade out when this component is visible. Something similar to what happens when calling Alert.show(..) so the Alert box is in focus and everything else is faded out.

+1  A: 

set alpha of container of the background to less than 1.

alternatively use custom component as a popup using PopupManager

Nishu
The same thing I'm having with as I explained in the comment in the answer by @Robusto. What do you suggest doing?
Tam
I used something similar I just made another Canvas part of the component that extends all around the screen and put the background Alpha for it less than 1
Tam
+1  A: 

If you want to blur everything in a container, use something like:

<mx:BlurFilter id="myBlur" blurX="3" blurY="3" quality="3" />

or in AS3

private function blurObj(cont:Container) : void {
  var filters:Array = cont.filters;
  var bf:BlurFilter = new BlurFilter(3,3,3);
  filters.push(bf);
  cont.filters = filters;
}

Change the values of the BlurFilter properties (or constructor args) to values that suit you.

Robusto
Thanks. You idea worked. The issue I'm having is that I have multiple objects and I want to blur everything except the one being in focus. You idea seem to blur everything. Any suggestions?
Tam