Jump to content
Search Community

cursor problem

culter test
Moderator Tag

Recommended Posts

Hello, i need to create image transformation from one to another with mouse interaction. I used tweenlite to set columns of first image to alpha=0, and after few seconds turn it back to first image. The problem is with cursor. I need to turn that column where cursor remains back to first image after a while - I need to see complete image. Hope you understand my poor english. Thank you!


here is code for one column..


import com.greensock.*;
import com.greensock.easing.*;
import flash.events.Event;

btn.addEventListener(MouseEvent.MOUSE_OVER, btnRollOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, btnRollOut);

function btnRollOver(e:Event){TweenLite.to(btn, 0.2, {alpha:0});}
function btnRollOut(e:Event){TweenLite.to(btn, 1, {alpha:1, delay:4});}

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...