Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
use trace(clip) to see if you're targeting the correct object and if your code is executing..
Find more inspiration, events, and resources on the new Adobe Community
Explore Now