Skip to main content
Known Participant
April 16, 2013
Question

Problem with onRelease listener

  • April 16, 2013
  • 1 reply
  • 325 views

Hello guys, how are you?

Once again, I come here to ask for your help on ActionScript 2.0.

I'm building a simple card game. There is a process in the game, where you can buy a card from the mount, and this card starts to move til it reach to your hand. At this point, I've tried to say to Flash: card.enabled = false, but it had not stopped the onRelease listener function to work. I've tried to do this:

clip.endAnimation = function () {

this.enabled = true;

}

if (ANIMATION_TIME! = 0) {

clip.enabled = false;

_global.setTimeout (clip "endAnimation" ANIMATION_TIME);

}

Why, ain´t it working properly?  I just want to stop onReleaseListener to stop work a little bit. Please, help me guys.

Sorry for my bad English

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 16, 2013

use trace(clip) to see if you're targeting the correct object and if your code is executing..