When you defined an effect in mxml, it becomes a style retrievalbe with
getStyle().

Also check out effectBegin() and effectEnd() for UIComponent.

Peace, Mik

On 6/17/07, reflexactions <[EMAIL PROTECTED]> wrote:

  I will try and explain myself a bit clearer this time (I hope) :-)

I have a component which has an effect triggered by an event.

This is defined using the Effects Metadata tag in the AS file.
i.e. [Effect(name="wowEffect", event="whistle")]

However in this case I need to be able to handle the Effect property
setter as I need to add listeners to the effect (and remove them from
the old effect) so I know when it start and stops.

Secondly I need to trigger the effect playing rather than have it
happen automatically, becuase I need to stop the effect (if it is
currently playing) change some properties (which must happen when the
effect is stopped) and then start the effect.

If I define the effect as a normal property as well as in the metadata
(so it gets documented) is there going to be some conflict.

tks




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to