Comunidad de diseño web y desarrollo en internet online

ayuda swfadress

Citar            
MensajeEscrito el 02 Jun 2008 10:14 am
Hola a todos,necesito ayuda.Estoy utilizando Swfadress en principio todo parece sencillo, pero no consigo que cambie la direccion url del navegador.el codigo q tengo es este.

Código :

#include \\\"includes/SWFAddress.as\\\"
import flash.external.*;
seccion1_btn.onPress=function(){
    SWFAddress.setValue(\"/seccion1\"); 
}
seccion2_btn.onPress=function(){
    SWFAddress.setValue(\"/seccion2\");
}
seccion3_btn.onPress=function(){
    SWFAddress.setValue(\"/seccion3\"); 
}
seccion4_btn.onPress=function(){
    SWFAddress.setValue(\"/seccion4\");
}
  
SWFAddress.onChange = function() { 
       var seccion=SWFAddress.getValue();
      texto_txt.text=seccion;
         _root.gotoAndPlay(seccion); 
      SWFAddress.setTitle(seccion);
   }
stop();   

Parece q todo funciona bien pero no consigo q cambie la direccion del navegador con la seccion en q estoy.
Muchas gracias a todos por su tiempo.

Por marvin

29 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Jun 2008 06:40 pm
Agrega estas funciones:

Código :

function replace(str, find, replace) {
   return str.split(find).join(replace);
}
function toTitleCase(str) {
   return str.substr(0,1).toUpperCase() + str.substr(1);
}
function formatTitle(title) {
   return '..::Aquí el título::..' + (title != '/' ? ' / ' + toTitleCase(replace(title.substr(1, title.length - 2), '/', ' / ')) : '');
}



salute

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox

 

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