Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 4.5.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows 7
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Import the project file I attached
2. Run the application
3. You should see a error popup if you have the flash debug version
Actual Results:
Error popup, the error message is below:
ArgumentError: Error #2005: Parameter 0 is of the incorrect type. Should be type Filter.
at flash.display::DisplayObject/set filters()
at mx.core::UIComponent/set filters()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:3538]
at mx.binding::Binding/defaultDestFunc()[E:\dev\hero_private\frameworks\projects\framework\src\mx\binding\Binding.as:270]
at Function/http://adobe.com/AS3/2006/builtin::call()
at mx.binding::Binding/innerExecute()[E:\dev\hero_private\frameworks\projects\framework\src\mx\binding\Binding.as:475]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.binding::Binding/wrapFunctionCall()[E:\dev\hero_private\frameworks\projects\framework\src\mx\binding\Binding.as:385]
at mx.binding::Binding/execute()[E:\dev\hero_private\frameworks\projects\framework\src\mx\binding\Binding.as:321]
at mx.binding::BindingManager$/executeBindings()[E:\dev\hero_private\frameworks\projects\framework\src\mx\binding\BindingManager.as:153]
at Title/_Title_Label1_i()[C:\Users\xxxxx\Adobe Flash Builder 4\Test\src\Title.mxml:4]
at Title()[C:\Users\xxxxx\Adobe Flash Builder 4\Test\src\Title.mxml:4]
at Test/_Test_Title1_c()
at Test/_Test_Array1_c()
at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\DeferredInstanceFromFunction.as:108]
at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1049]
at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
at spark.components::SkinnableContainer/createChildren()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
at spark.components::Application/createChildren()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Application.as:1274]
at mx.core::UIComponent/initialize()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
at spark.components::Application/initialize()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Application.as:1259]
at Test/initialize()
at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:3063]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2849]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\preloaders\Preloader.as:542]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Expected Results:
The Glow filter should apply to the label correctly
Workaround (if any):
There are TWO workarounds.
1. If you change the component from Group tag to BorderContainer tag, it will run fine.
2. If you cut out the code from the component into the parent application(Test.xmxl), it will work fine. The code should look like this:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:components="*">
<fx:Declarations>
<s:GlowFilter id="gF" blurX="12" blurY="12" color="#000000"/>
</fx:Declarations>
<s:Group>
<s:Label text="test" filters="
"/>
</s:Group>
</s:Application>