Comunidad de diseño web y desarrollo en internet online

Instancia que se arrastra e interactua

Citar            
MensajeEscrito el 19 May 2005 03:08 pm
quiero aprovechar el siguiente codigo...
hitter = function () { this.onPress = function() {this.startDrag("");};this.onRelease = function() {this.stopDrag();};this.onReleaseOutside = function() {this.stopDrag();};this.onEnterFrame = function() {this.coll = "";if (this.hitTest("_root.hitarea")) {this.coll = "hit";}};};
hitter.apply(circle01);

...pero de forma que cuando "hitter" haga contacto con "hitarea", en vez de visualizar el txt "HIT", haga un GOTOANDPLAY (25).
es factible?

cenkiu.

Por bobjoP

83 de clabLevel



 

msie
Citar            
MensajeEscrito el 20 May 2005 08:18 am
¿Podrías colocar el código para que sea legible?

Por Elecash

Claber

8126 de clabLevel

37 tutoriales
19 articulos
13 ejemplos

  Bastard Operators From Hell Desarrollador de GAIA Premio_Secretos Héroes

BarnaCity

clabbrowser
Citar            
MensajeEscrito el 20 May 2005 07:23 pm
no entiendo, elecash.
éste es el codigo que venia en el tutorial de origen.

#unsaludo

Por bobjoP

83 de clabLevel



 

msie
Citar            
MensajeEscrito el 25 May 2005 07:42 am
thanks, prozac.

Por bobjoP

83 de clabLevel



 

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.