Thursday, July 22, 2010

Show Effect on TitleWindow

I recently found an interesting fact about the show effect on Titlewindow and that is that the effects should be defined in the main mxml that is calling the title window, and cannot be placed the title window mxml (assuming that you have separate mxmls for main and title windows).

for eg:
Main.mxml, is trying to display a title window in the mxml TtlWindow.mxml.
the show effect (myEffect) that is defined in TtlWindow.mxml (showEffect="myEffect"), should be declared in Main.mxml and not TtlWindow.mxml.

If you declare the effect in TtlWindow.xml the effect will not take effect.

Hope this will help someone ....
Please let me know your thoughts.