1 Reply Latest reply on Aug 14, 2008 6:21 AM by RossRitchey

    Actionscript

      Ok, so i have a video that plays when the page loads, then at the end of the video a menu is supposed to appear.
      My problem is how to make the menu move in. I figured out to make the menu, but not how to make it enter.

      I am using AS3

      Also if anyone can help, I have learned how to make the right-click menu have some of my own text in it, but I was wondering if it is possible to make it link to a website.
        • 1. Re: Actionscript
          RossRitchey Level 4
          I am going to assume that the menu is already added to the child list of the root, and is sitting off of the stage, needing to move in horizontally.

          import fl.transitions.Tween;
          import fl.transitions.easing.*;
          var myTween:Tween = new Tween(myMenu, "x", Elastic.easeOut, myMenu.x, endXPosition , 3 , true);


          This will take the menu (instance name myMenu) and move it on the x axis from its current position to the end position (endXPosition) over the course of 3 seconds, with an elastic type bounce transition.

          As taken almost verbatim from the Help tab AS3 Tween class.