Retroceder   Foros del Web > Diseño de Sitios web > Flash y Actionscript > Recursos

Respuesta
 
Herramientas Desplegado
Antiguo 25-abr-2007, 19:02   #1 (permalink)
dolphiny ha deshabilitado el karma
 
Fecha de Ingreso: abril-2007
Mensajes: 18
resize en imagen de fondo sin alterar escala

Hola que tal..

tengo un sitio, al cual le apliqué este código:

Código:
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
// -- modificar tamaño
stageResize = function ():Void {
	holder._width = Stage.width;
	holder._height = Stage.height;
};
stageListener = new Object();
stageListener.onResize = stageResize;
Stage.addListener(stageListener);
// -- porcentaje de carga
this.createTextField("my_txt", 1, 0, 0, 300, 100);
my_txt.autoSize = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x000000;
my_fmt.font = 'Arial';
my_fmt.size = 10;
my_txt.setNewTextFormat(my_fmt);
// -- cargar imagen de fondo
var my_listener:Object = new Object();
my_listener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
	my_txt.text = 'Cargando ...  ' + Math.round(bytesLoaded / bytesTotal * 100) + ' %';
};
// --
my_listener.onLoadInit = function(target_mc:MovieClip) {
	my_txt.removeTextField();
	mcLoader.removeListener(my_listener);
	stageResize();
};
var holder:MovieClip = this.createEmptyMovieClip('holder_mc', this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(my_listener);
mcLoader.loadClip('img/fondo1.jpg', holder);

loadMovie("img/menu.swf",5);
funciona perfecto, pero deforma la imagen...

me gustaría que fuera como en este sitio:

zara.com

muchas gracias!!!!
dolphiny está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 21:27.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93