Comunidad de diseño web y desarrollo en internet online

COMO HACER SCROLL DE UNA IMAGEN?

Citar            
MensajeEscrito el 30 May 2007 07:21 pm
Estoy llamando un jpg desde un textfield utilizando el sgte código:
loadVariables("foto_empre.txt", this);
createTextField("campo", 0, 0, 0, 400, 190);
campo.html = true;
campo.background=true;
campo.border = false;
campo.backgroundColor=0x667632;
campo.borderColor = 0xffffff;
campo.multiline = true;
campo.wordWrap=true;
campo.variable="miFoto";

Este jpg es mas largo que el textfield por lo tanot necesito hacer scroll con el para ello uso esta funcion que mientras utilizaba texto "puro" (campo.htmlText="bla bla") funcionaba barbaro y ahora, CUANDO HAY SOLO UNA IMG, no anda ni a palos

function sube() {
incf=1;
onEnterFrame = function () {
if (campo.scroll>1) {
campo.scroll-=incf;
}
};
}
function baja() {
onEnterFrame = function () {
if (campo.scroll<campo.maxscroll) {
campo.scroll++;
}
};
}
var estado:Number = 1;
Boton_btn.stop();
Boton_btn.gotoAndStop("play");

Boton_btn.onPress = function (){
if (estado == 1){
baja ();
estado = 0;
Boton_btn.gotoAndStop("pause");
}
else {
sube ();
estado = 1;
Boton_btn.gotoAndStop("play");

}
}

CUALQUIER AYUDA SE AGRADECE!!!!

Por hansi

3 de clabLevel



 

firefox
Citar            
MensajeEscrito el 30 May 2007 08:31 pm
mira aki tengo un scroll con imagen y texto kisa te sirva
http://www.worldperusac.com/scroll.html

Por useraul

Claber

131 de clabLevel



Genero:Masculino  

Huantalandia

msie
Citar            
MensajeEscrito el 31 May 2007 02:47 am
Gracias por la info aunque el problema que tengo es que necesito hacer scroll SOLO a una imagen es con eso que tengo problemas. Se te ocurre alguna otra cosa?

Por hansi

3 de clabLevel



 

firefox

 

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