I'm trying to create a CSS style property that expects an
mx:Effect object to be used in a custom AS class. I want to detect
changes being made to the style property and assign the specified
effect to an effect trigger belonging to a child of my custom
Unfortunately, the specified mx:Effect object seems to be
interpreted as a string instead of an mx:Effect object. Can anyone
tell me what I need to correct for this to work as expected?
You can see the compiled example
and review the source code below. It fails due to a
"TypeError: Error #1034: Type Coercion failed: cannot convert
"myTestEffect" to mx.effects.Effect.Style" in the custom
components styleChanged function at the bottom of this post.