1 Reply Latest reply on Jul 3, 2006 7:41 AM by NSurveyor

    Need quick Actionscript help

      I have a text instance called Btn1txt and I'm trying to make it fade in when the user clicks the button that this code is assigned to. It seems to lock my computer when I try this so does anyone know a solution?

      on (release) {
      while(Btn1txt._alpha <= 100){
      Btn1txt._alpha += 5;
        • 1. Re: Need quick Actionscript help
          NSurveyor Level 2
          AFAIK, there is no sleep function. A while loop will run and then the screen will refresh, so that's where your lock is coming from. Look up setInterval or onEnterFrame to make it work correctly. Also, you have to embed the font outlines for the textfield in order to fade it, if you have not done so already.