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

contar número de veces que se presiono un boton

New Here ,
Oct 24, 2017 Oct 24, 2017

Copy link to clipboard

Copied

hola buenas tardes quisiera saber si me pueden decir como puedo hacer que en una capa me diga cuantas veces se presiona un boton en animate cc

Views

2.9K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Oct 24, 2017 Oct 24, 2017

var button1_pressed:int = 0;

button1.addEventListener(MouseEvent.CLICK,button1F);

function button1F(e:MouseEvent):void{

// whatever you want button1 to do

button1_pressed++;

}

Votes

Translate

Translate
Community Expert ,
Oct 24, 2017 Oct 24, 2017

Copy link to clipboard

Copied

actionscript 3 or html5/canvas/easeljs?

Votes

Translate

Translate

Report

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
New Here ,
Oct 24, 2017 Oct 24, 2017

Copy link to clipboard

Copied

actionscript 3 please

Votes

Translate

Translate

Report

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 ,
Oct 24, 2017 Oct 24, 2017

Copy link to clipboard

Copied

LATEST

var button1_pressed:int = 0;

button1.addEventListener(MouseEvent.CLICK,button1F);

function button1F(e:MouseEvent):void{

// whatever you want button1 to do

button1_pressed++;

}

Votes

Translate

Translate

Report

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