Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2006, 15:48
Avatar de sheshu
sheshu
 
Fecha de Ingreso: abril-2006
Ubicación: En too el medio
Mensajes: 160
Antigüedad: 18 años
Puntos: 0
Re: subString falla... me ayudas?

hola,

el problema es que tienes que usar substring en lugar de substr, ya verás como así te lo hace bien:
Código:
texto = "https://www.miwebsite.com/swf/archivo.swf";
desde = texto.indexOf(":");
hasta = texto.indexOf("/swf");
mySubstring = texto.substring(desde, hasta);
trace(mySubstring);
Esto es por que el método substr no cambia la cadena especificada, sino que devuelve una cadena nueva.

un saludo,

sheshu
__________________
sheshu ::: www.tutoriales-flash.com