0 Replies Latest reply on Aug 22, 2006 12:46 PM by Newsgroup_User

    Problem with Window Component

    Level 7
      Im programatically creating a Window component with a close button using
      the Tween class as animation.

      When not using the Tween class all is fine but when I use the Tween
      clase window appears without the close button?

      Any ideas why?

      This is the code":

      interactividad.onRelease = function(){
      import mx.managers.PopUpManager;
      import mx.containers.Window;
      pop.start();
      var intera:MovieClip = PopUpManager.createPopUp(this, Window, true,
      {contentPath:"",closeButton:true, title:"Interactividad A"});
      mx.transitions.TransitionManager.start(intera,
      {type:mx.transitions.Zoom, direction:0, duration:1,
      easing:mx.transitions.easing.Bounce.easeOut, param1:empty, param2:empty});
      intera.setSize(750,500);
      intera._x = 25;
      intera._y = 75;

      var twListener:Object = new Object();
      twListener.click = function(evt:Object){
      pop.start();
      evt.target.deletePopUp();
      }
      intera.addEventListener("click", twListener);
      }