Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regarding the events

Status
Not open for further replies.

maddymadhans

Programmer
May 9, 2003
13
KR
Hi
i have created a clip with some animation. i hav a button. by clicking it the clip has to be removed. so i hav written it on release event of the button. but whts the problem is the clip has to be removed only when its full animation is over till that we hav to wait in on release event. is there any function to delay the event handler such that the animation gets over by some time and then it is removed from the screen.

awaiting for reply,

Thank you
 
perhaps the easiest way is just to disable the button while the animation is playing as you dont want its on release function to kick in while the anim is going

so first frame on animation

my_btn.enabled = false;

last frame

my_btn.enabled = true;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top