Why don't you perform the fade in in the childrenCreated method of the popUp
itself?

On Mon, Feb 25, 2008 at 1:18 PM, Greg <[EMAIL PROTECTED]> wrote:

>    Hi,
>
>
>
> I am thinking I may have to start counting event triggers too, hoping I am
> doing something wrong and don't have to do this…
>
>
>
> I have been applying fade effects on popup windows, fadeIn on display and
> fadeOut when popup is removed (or just before). Some sample code is below:
>
>
>
> *// Create and display the popup*
>
> imageWin = ImagePopup(PopUpManager.createPopUp(*this*.parent.parent,
> ImagePopup , *false*));
>
>
>
> *//Have the popup now fadein*
>
> fadeIn.target = imageWin;
>
> fadeIn.play();
>
>
>
> This code is from a parent component responsible for launching the popup.
> I know this is not great, but it is working. I feel I should be performing
> the fadeIn effect as a response to a PopUpManager event but could not find
> an appropriate event to listen and found adding an event listener to the
> TitleWindow 'creationComplete' was never fired actually fired likely before
> my listener has been added. Unfortunately, still trying to get fade out to
> work properly J.
>
>
>
> Thanks,
>
>
> Greg
>
>
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Syed Mazhar Hasan Qadri
> *Sent:* Saturday, February 23, 2008 9:55 AM
> *To:* [email protected]
> *Subject:* [flexcoders] Re: EFFECT_END handler called twice
>
>
>
> Hello! I encountered the same thing with Resize effects on some 42
> Children and had to apply a trick to count how many times the event is
> triggered, if that is equal to 42*2 times, then i triggered my code.
>
> @Greg: BTW, can you please tell me how you applied Effects on Popped
> Up components. Thanks
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Greg"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> >
> >
> > I have a fadeout effect that runs on a popup window. I am using an
> > EFFECT_END handler that calls the PopUpManager.removePopUp(). The
> handler is
> > being called twice. The repeat interval is default=1 and I have
> ensured this
> > is the only code calling the handler.
> >
> >
> >
> > What am I doing wrong?
> >
> >
> >
> > Any comments much appreciated,
> >
> >
> > Greg
> >
>
>   
>

Reply via email to