Hello,

The first thing I wanted to mention is that everything that can be
done in mxml can also be done in actionscript.  To see how, add the
compiler option " -keep-generated-actionscript" and look at the
"generated" folder.

That said, there are plenty of ways to create, play, and add an effect
in actionscript.  Here's how to create one:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=behaviors_068_09.html

After doing that, it's just a matter of calling effect.play() at the
right time.

While there are legitimate reasons for doing this, I have a suspicion
that you're making this more complicated than it needs to be.  Would
you mind posting some source code so we could suggest a solution?

-Nick Matelli
Amentra, Inc

--- In [email protected], learner <[EMAIL PROTECTED]> wrote:
>
> hi all,
> what would I do if I have to set a resize effect to my custom
component...
> My component is in as file and is getting added to a mxml using addChild
> method.
> So I can not do something like this :
> <MyComp resizeEffect="Resize"/>
> 
> Is there any way to achieve same thing in as components ?
> 
> Any help is greatly appreciated.
> 
> Regards
> PS
>


Reply via email to