0 Replies Latest reply on Jan 9, 2008 11:04 AM by cws14

    Applying Multiple Effects to an object

    cws14
      Hi,

      I can find any information in the Flex documentation about this...

      Basically I am applying several effects to an object (such as Move, Resize, and Fade) all at once, but I haven't put them into a parallel effect object, I've just played each effect separately. I have started to get some odd error messages while the effect is playing and I'm wondering if this is the cause.

      So my question is: should I be putting these effects into a parallel effect object and just playing that - is that a required step for what I'm trying to do? And why doesn't the Flex documentation say that it is required (if it in fact is)?

      Btw, one of the error messages I am routinely getting is:

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::FlexShape@b91dd99 to mx.core.IUIComponent.
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::createContentPane()[C:\dev\flex_201_gmc\sdk\fr ameworks\mx\core\Container.as:4627
      at mx.core::Container/set http://www.adobe.com/2006/flex/mx/internal::forceClipping()[C:\dev\flex_201_gmc\sdk\framew orks\mx\core\Container.as:4740
      at mx.effects.effectClasses::MoveInstance/onTweenUpdate()[C:\dev\flex_201_gmc\sdk\frameworks \mx\effects\effectClasses\MoveInstance.as:361]
      at mx.effects::Tween/ http://www.adobe.com/2006/flex/mx/internal::doInterval()[C:\dev\flex_201_gmc\sdk\framework s\mx\effects\Tween.as:569
      at mx.effects::Tween$/mx.effects:Tween::timerHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx \effects\Tween.as:177]
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
      at flash.utils::Timer/flash.utils:Timer::tick()

      Thanks very much,

      Chloe