How to get showEffect working first time

Today I got problem with showEffect in my project, when I added my component via PopUpManager.addPopUp I notice that showEffect doesn’t run.
To get it working you need add creationComplete handled inside component and dispatch FlexEvent.SHOW event in created handler.

happy coding ;)

One Response

  1. George Says:

    Thank you! I ran into this issue and found that your tip fixed it! On a side note, I kept playing with it and noticed that if you use the creationCompleteEffect instead of the showEffect, then sending the SHOW event is not necessary. The other ‘gotcha’ I found was that I needed to declare the effect in the scope of the parent and not in the pop-up component.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.