Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem with onRelease listener

New Here ,
Apr 16, 2013 Apr 16, 2013

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

TOPICS
ActionScript
312
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2013 Apr 16, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines