3 Replies Latest reply on Oct 26, 2010 1:47 PM by Ned Murphy

    Timeline Nav


      Hi everyone,


      I have an MC programmed to act like a button on the stage.  This is a navigation feature I want to implement.  The reason I am not using a button symbol directly is that it is animated. 


      So, when mcbtn1 is rolled over, alpha = 1. 

      When mcbtn1 is rolled out, alpha = .4 

      When timeline is on frame 10, mcbtn1 alpha = 1.


      What would be the last bit of code to get the alpha always = 1 when timeline is on frame 10?



      Current code:


      mcbtn1.buttonMode = true;

      mcbtn1.useHandCursor = true;

      mcbtn1.addEventListener(MouseEvent.ROLL_OVER, light1)

      function light1(event:MouseEvent):void {

      mcbtn1.alpha = 1;


      mcbtn1.addEventListener(MouseEvent.ROLL_OUT, unlight1)

      function unlight1(event:MouseEvent):void {

      mcbtn1.alpha = .4;



      If you need more info or I need to clarify let me know...


      Any help would be appreciated!

      Thank you!