Jump to content
Search Community

button mode question

timaging test
Moderator Tag

Recommended Posts

ok, so I'm trying to make a button active only when alpha gets to 1. I know I can do this using visible, but that doesn't fade in nice.

 

I thought this would work, and it does partially, but not fully... basically the rollover stops when it's fading out, but the link is alwasy still active:

yourtimeline.append(new TweenLite(tdButton, 1, {buttonMode:true, useHandCursor:true, alpha:1, ease:Quad.easeInOut, blurFilter:{blurX:0, blurY:0}}), -1);

yourtimeline.append(new TweenLite(tdButton, 1, {buttonMode:false, useHandCursor:false, alpha:0, ease:Quad.easeInOut, blurFilter:{blurX:0, blurY:0}}), -1);

 

is there any trick to making buttons work only when alpha gets to 1?

 

thanks,

Dave

Link to comment
Share on other sites

I'm not sure if this helps, but this is the button code that's being used. I realize this isn't greensock stuff but maybe it's the culprit:

 

tdButton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2);

function fl_ClickToGoToWebPage_2(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://financial-risk-governance-community.socialgo.com/balance_sheet__management.html"), "_self");
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...