A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] fade in actionscript for a button

Hybrid View

  1. #1
    Member
    Join Date
    May 2007
    Posts
    80

    [F8] fade in actionscript for a button

    I have a few buttons that i want actionscript on for fading in when the scene starts, does any1 know if theres some actionscript code for this? thanks x

  2. #2
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    I don't have access to flash right now, so I'm writing from memory, but I think this code should work:

    Code:
    if(myButton.alpha<100){
    	myButton.alpha +=1;
    }
    try it...tell me if it doesn't work.
    Z¡µµ¥ D££

    Soup In A Box

  3. #3
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    oops...I think those should be _alpha

    also, set the alpha of the button to 0 beforehand, or else the code won't do anything.
    Z¡µµ¥ D££

    Soup In A Box

  4. #4
    Member
    Join Date
    May 2007
    Posts
    80
    thanks for the help zippy, but it didn't work sob sob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center