Comunidad de diseño web y desarrollo en internet online

Ayuda. Por favor

Citar            
MensajeEscrito el 10 Nov 2009 08:56 pm
Hola les quiero agradecer a todos los que estan escrito en este foro la verdad he aprendido muchas cosas y gracias por ayudar tando... Ahora necesito de su apoyo... quiero que mi fotografias se ajusten al tamaño proporcionalmente en FLASH:
Esta es la toma de fotografias muesto como es la idea:

Toma 1: En esta toma se puede visualizar una franja blanca y las fotos organizadas arribas


Toma2: Al reducir el tamaño de mi pantalla se nota que la franja blanca no cambio de tamaño y las fotos se reducieron proporcionalmente


Toma3: Se reduce el tamaño de la pantalla a lo mas minimo y la franja blanca no cambio de tamaño y las fotos se reducieron proporcionalmente.


De todos modos aca les dejo el link de la pagina web [url=http://www.houseoforange.nl/site/#/Hair,%20makeup%20&%20styling/Hair%20&%20Makeup%20artists/Irena%20Ruben/][/url]

Sera posible que alguien me pueda ayudar ha lograr esto en Action Script, que se ajuste las fotos y el panel.

Gracias

Por kon3ras

7 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Nov 2009 09:21 pm
Bueno muchas gracias de todos modos aca les dejo el .FLA de lo que llevo
http://rapidshare.com/files/305168634/ajustable2.fla.html

Gracias

Por kon3ras

7 de clabLevel



 

msie8
Citar            
MensajeEscrito el 10 Nov 2009 10:56 pm
con diagramación líquida

la fórmula sería

alto_imagen = alto_escenario(Stage.height) - alto_franja_blanca;
porcentaje_ancho_imagen = porcentaje_alto_imagen;

Lo pongo así para que busques y aprendas... suerte

Por nasho

Claber

908 de clabLevel

1 tutorial

Genero:Masculino  

Web Developer

firefox
Citar            
MensajeEscrito el 11 Nov 2009 04:41 am
Hola Nacho..

Mira este es el codigo que estaba utilizando para hacer diagrama liquida.

Código ActionScript :

Stage.scaleMode = "noScale";
Stage.align = "TL";
ancho_minimo = 953;
alto_minimo = 566;
clips_ajustables = new Array();
myListener = new Object();
Stage.addListener(myListener);
myListener.onResize = rec;
function rec() {
   alto = Stage.height;
   if (alto<alto_minimo) {
      alto = alto_minimo;
   }
   ancho = Stage.width;
   if (ancho<ancho_minimo) {
      ancho = ancho_minimo;
   }
   for (var g = 0; clips_ajustables[g]; g++) {
      clips_ajustables[g].alinear();
   }
}
MovieClip.prototype.setAjuste = function(ajuste_x, ajuste_y, ajuste_width, ajuste_height) {
   this.ajuste_x = ajuste_x;
   this.ajuste_y = ajuste_y;
   this.ajuste_width = ajuste_width;
   this.ajuste_height = ajuste_height;
   this.x0 = this._x;
   this.y0 = this._y;
   this.w0 = this._width;
   this.h0 = this._height;
   this.ajustePersonalizado = false;
   clips_ajustables.push(this);
   this.alinear();
};
MovieClip.prototype.alinear = function() {
   if (this.ajuste_width) {
      if (this.ajuste_width.indexOf("%") != -1) {
         this._width = (_root.ancho*parseInt(this.ajuste_width))/100;
      } else {
         this._width = this.ajuste_width;
      }
   }
   if (this.ajuste_height) {
      if (this.ajuste_height.indexOf("%") != -1) {
         this._height = (_root.alto*parseInt(this.ajuste_height))/100;
      } else {
         this._height = this.ajuste_height;
      }
   }
   if (this.ajuste_x == "izquierda") {
      this._x = this.x0;
   }
   if (this.ajuste_x == "derecha") {
      this._x = Math.round(this.x0+(_root.ancho-_root.ancho_minimo));
   }
   if (this.ajuste_x == "centrar") {
      this._x = Math.round((_root.ancho-this._width)*0.5);
   }
   if (this.ajuste_y == "arriba") {
      this._y = this.y0;
   }
   if (this.ajuste_y == "abajo") {
      this._y = Math.round(this.y0+(_root.alto-_root.alto_minimo));
   }
   if (this.ajuste_y == "centrar") {
      this._y = Math.round((_root.alto-this._height)*0.5);
   }
   if (this.ajustePersonalizado) {
      this.ajustar();
   }
};


Para probar las funcion la utilizo en el objeto que quiero que no se scale.

Código ActionScript :

onClipEvent (load) {
   this.setAjuste("alto","arriba",false,false);
}


-----------------------------------------------------------------

Pero no me cuadra hacer que las fotos se escalen proporcionalmente al tamaño.

Por kon3ras

7 de clabLevel



 

firefox
Citar            
MensajeEscrito el 11 Nov 2009 01:26 pm
Listo ya lo pude solucionar aca dejo el code por si alguien lo necesita

onClipEvent (enterFrame){
this._width=Stage.width+230;
this._yscale=this._xscale;
}

Por kon3ras

7 de clabLevel



 

firefox

 

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