Comunidad de diseño web y desarrollo en internet online

Ayuda! borrar mc del mapa

Citar            
MensajeEscrito el 10 Nov 2007 05:36 am
Encontre el siguiente codigo en la web el cual dibuja un punto al hacer click
la duda es.
¿Como puedo borrar el punto dibujado al hacer click en el?


function dibuja (){
i++;
attachMovie("punto","punto"+i,i);
x=_root._xmouse;
y=_root._ymouse;
_root["punto"+i]._x = x;
_root["punto"+i]._y = y;

}

_root.onMouseDown = function(){
dibuja();

}

:D

Por elpollo

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Nov 2007 09:01 pm
si saben como hacerlo o tienen una idea, les estaria muy agradecido[/flash]

Por elpollo

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Nov 2007 10:21 pm

Código :

function borrarlospuntitos(){
for(ii=0;ii<i;ii++){
removeMovieClip(_root["punto"+ii]);
}

Por bryanisimo

664 de clabLevel



Genero:Masculino  

Geek

firefox

 

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