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.

1 comment:

  1. Hi There,

    I am a bit new to Flex and would like to apply a 'zoom' (scale) effect to a Flex 4 Spark TitleWindow when I open it. Your posting seems to imply that this can be done. I am not sure how to 'apply' the effect to the title window. For instance, in my 'outer' mxml, I have defined (in FX declarations) the s:scale effect, as you instructed. However, after I use the PopUpManager to createPopUp, I am unclear as to how to apply the effect to the 'showing' of the pop up. Any help or examples would be appreciated.

    Thanks,

    -David Baron
    Centennial, CO

    ReplyDelete