Comunidad de diseño web y desarrollo en internet online

necesito ayuda para insertar imagenes con las etiquetas html

Citar            
MensajeEscrito el 17 Feb 2006 05:53 pm
Hola a todos inserto un texto en un cuadro de texto dinamico con mediante loadVars, me vendria bien ponerle unas imagenes a este texto pero no consigo hacerlo.Lo mas cerca que llego es q la imagen aparezca parpadeando cuando hago scroll.esa es otra podra ser el scroll text que utilizo?

Gracias por vuestro tiempo

Por marvin

29 de clabLevel



 

firefox
Citar            
MensajeEscrito el 17 Feb 2006 05:59 pm
es igual que un html <img src='tuImagen.jpg'> o si quieres insertar un mClip vincula en tu libreria ese clip y lo traes al texto <img src='clipVinculado'>

Suerte °°

Por comicSans

Claber

151 de clabLevel



 

msie
Citar            
MensajeEscrito el 17 Feb 2006 06:23 pm
Nada pasa de mi como de la mierda hay va mi codigo:

Código :

var colabora:LoadVars =new LoadVars();
colabora.onLoad =function(exito:Boolean ){
   if (exito==true){
   titulo.htmlText="<p align=\"center\">"+this.titulo+"</p>"
   texto.htmlText="<p align=\"center\">"+this.texto+"</p><img src=\"jueces.jpg\" with=\"100\" heigth=\"120\">";
   }else{
      texto.htmlText="<p align=\"center\">error de carga</p>"
   }
}
_root.onEnterFrame =function(){
   colabora.load ("colabora.txt");
}
arriba.onPress=function(){
   texto.scroll=texto.scroll-1;
}
abajo.onPress=function(){
   texto.scroll=texto.scroll+1;
}
stop();

Gracias a ver si se os ocurre algo

Por marvin

29 de clabLevel



 

firefox
Citar            
MensajeEscrito el 17 Feb 2006 09:58 pm
has usado estilos CSS para formatear tu texto ?? crea un archivo CSS donde guardes <byline> como estilo, lo guardas: html_styles.css

en tu archivo txt puedes usar etiquetas para estios, p.ej:
&titulo=Tu ::TEMA::&
&texto=<byline><b>Este es</b> el corrido, del caballo ballo : <img src='jueces.jpg' width='80' height='120'/></byline>&

despues en tu codigo as usa esto:

Código :

var colabora:LoadVars = new LoadVars();
colabora.onLoad = function(exito:Boolean) {
   if (exito == true) {
      titulo.htmlText = "<p align=\"center\">"+this.titulo+"</p>";
      texto.htmlText = "<p align=\"center\">"+this.texto+"</p>"// tu img esta en el txt
   } else {
      texto.htmlText = "<p align=\"center\">error de carga</p>";
   }
   trace (exito)
};
colabora.load("colabora.txt");
//
var style_sheet = new TextField.StyleSheet();
// Crear objeto de hoja de estilos 
var css_url = "html_styles.css";
// Ubicación del archivo CSS que define los estilos
// Cargar archivo CSS y definir controlador onLoad:
style_sheet.load(css_url);
style_sheet.onLoad = function(ok) {
   if (ok) {
      // Hoja de estilos ha cargado sin errores,
      texto.styleSheet = style_sheet;
      texto.htmlText = colabora.texto;//cadenaGral;
   }
};
//
arriba.onPress = function() {
   texto.scroll = texto.scroll-1;
};
abajo.onPress = function() {
   texto.scroll = texto.scroll+1;
};
stop();

Por comicSans

Claber

151 de clabLevel



 

msie
Citar            
MensajeEscrito el 17 Feb 2006 11:54 pm
OK muchas gracias comicSans

Por marvin

29 de clabLevel



 

firefox

 

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