Questions tagged as 'actionscript'

0
answers

Count milliseconds in Actionscript 3

In ActionScript 3 I would like to count the milliseconds of the difference between pressing two buttons. Example: boton1.onClick{ $inicio = now (PHP); } boton2.onClick{ $fin = now (PHP); } $milisegundos = $fin - $inicio; To show...
asked by 26.04.2017 / 23:21
1
answer

Hide Adobe Animate objects by variable, from EaselJS

I'm starting with EaselJS, Animate and HTML5 and I can not find a way to hide a series of stage objects with names with sequential numbering: obj01, obj02, obj03 ... for (hhh = 1; hhh < 10; hhh++) { this["obj0"+hhh].visible = fal...
asked by 17.05.2017 / 14:24
1
answer

subtract values of 2 variables

How can I subtract the values obtained by pressing these 2 buttons ?, that is, subtract the "start" to the "end" and get the milliseconds. var inicio:int; var fin:int; var milisec1:int; var milisec2:int; btn1.addEventListener(MouseEvent.CLICK...
asked by 27.04.2017 / 18:58