4 Replies Latest reply on Oct 22, 2013 8:35 AM by oliverS

    delete after animate

    oliverS Level 1

      Hi all,

       

      I create a child symbol on the stage animate it and store the varible in the window

       

      var infoscreen = sym.createChildSymbol("_01", "stage");

      window.infoscreen = infoscreen;

       

      I put a Btn_inside the symbol and want to delete it.

       

      But first -  I want to fade out the symbol. 

       

      I dont know how to do this.

       

      So the animation has to be complete before delete, but how?

       

       

      infoscreen.getSymbolElement()

                .animate

                                    (

                          {

                               delay: 1200,

                                                   opacity: 0,

                                                   left: "0px"

                          },

                                                   1500,

                                                   "easeOutExpo"

                                              );

       

      infoscreen.deleteSymbol();

       

      Any help wolud be great

       

      THX