# Why I cannot put filters in a group container?

**URL:** <https://forum.kirupa.com/t/why-i-cannot-put-filters-in-a-group-container/322375>\
**Category:** flash\
**Created:** [May 19, 2011, 1:19pm UTC](https://forum.kirupa.com/t/why-i-cannot-put-filters-in-a-group-container/322375 "2011-05-19T13:19:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpthk](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@cpthk](https://forum.kirupa.com/u/cpthk)\
**Post date:** [May 19, 2011, 1:19pm UTC](https://forum.kirupa.com/t/why-i-cannot-put-filters-in-a-group-container/322375/1 "2011-05-19T13:19:47Z")

</div>

I am trying to design a custom group container. This is my code below. I have a Group openning tag and a GlowFilter inside the declarations. When I run the code, it gives me error

```auto
ArgumentError: Error #2005: Parameter 0 is of the incorrect type. Should be type Filter.

```

I have no idea what went wrong. The code compiles fine, but not able to run. The workaround is change the Group to BorderContainer or remove the filters, but I just don’t see why Group has a problem with it. Can anyone help?  
I have attached my simplest project file.

Thanks.

```auto
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx">
     
     <fx:Script>
          <![CDATA[
               import spark.core.MaskType;
          ]]>
     </fx:Script>
     
     <fx:Declarations>
          <!-- Place non-visual elements (e.g., services, value objects) here -->
          <s:GlowFilter id="gF" blurX="12" blurY="12" color="#000000"/>
     </fx:Declarations>
     
     <s:Label text="test" filters="{[gF]}"/>
</s:Group>

```
