Slideshow fullscreen
Hola a todos. Me estoy renovando mi web. Soy fotógrafo, no diseñador, así que no me he complicado la vida y me he comprado un template de un slideshow que me encajaba en lo que necesitaba. Lo que quiero hacer es que el slideshow sea fullscreen. Si alguien me pudiese ayudar estaría la mar de agradecido. Os pego el AS
/*--------------------------------------
*
* May 2007
* Slideshow 2 - XML.
*
* Copyright © 2007 by Andrei Potorac
* All rights reserved.
*
*
* If you want to change the size of the stage, you also need to change these variables in the code:
*
* var sWidth:Number = 900;
* var sHeight:Number = 390;
*
* The output panel will tell you what should be the width of the images
* and the height should be the same as the stage height.
---------------------------------------*/
Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.showMenu = false;
this._lockroot = true;
/********************
General settings
********************/
var sWidth:Number = 900;
var sHeight:Number = 600;
var nrFrames:Number = 30;
var allImagesLoaded:Boolean = false;
w = sHeight*100/390;
mcButNext._width = mcButNext._width*w/100;
mcButBack._width = mcButBack._width*w/100;
var sizeHolder:Number = mcButNext._width;
var movePos:Number = Math.floor(sWidth-2*sizeHolder);
trace("This is the width the images should have: "+movePos+" (the stage width is "+sWidth+" pixels)");
mcButNext._height = sHeight;
mcButBack._height = sHeight;
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip)
{
mc._parent.mcBut._xscale = 100*mc._width;
mc._parent.mcBut._yscale = 100*mc._height;
mc._parent._x = int(sizeHolder);
sizeHolder += mc._width;
if (contor=Math.abs(currentImage)+1)
{
currentImage--;
mcButBack.mcBut.but.enabled = true;
mcButBack._alpha = alphaVal;
if (settingsArray[0].length-1>=Math.abs(currentImage)+1)
{
mcButBack._alpha = alphaVal;
}
else
{
mcButNext.mcBut.but.enabled = false;
mcButNext._alpha = alphaMin;
}
mcThumbsHorizontal.elastic({_x:movePos*currentImage}, 5);
}
else
{
if (loopMode == "true")
{
currentImage = 0;
mcButNext.mcBut.but.enabled = true;
mcButNext._alpha = alphaVal;
mcButBack.mcBut.but.enabled = true;
mcButBack._alpha = alphaVal;
if (settingsArray[0].length-1 >= Math.abs(currentImage)+1)
{
mcButBack._alpha = alphaVal;
}
mcThumbsHorizontal.elastic({_x:movePos*currentImage}, 5);
}
else
{
mcButNext.mcBut.but.enabled = false;
mcButNext._alpha = alphaMin;
}
}
c = 0;
}
};
}
//
//************************************************************//
// INIT
//************************************************************//
function createHorizontalThumbs():Void
{
for (i=0; i=Math.abs(currentImage)+1)
{
currentImage--;
if (allImagesLoaded == true)
{
mcButBack.mcBut.but.enabled = true;
}
mcButBack._alpha = alphaVal;
if (settingsArray[0].length-1>=Math.abs(currentImage)+1)
{
mcButBack._alpha = alphaVal;
}
else
{
mcButNext.mcBut.but.enabled = false;
mcButNext._alpha = alphaMin;
}
mcThumbsHorizontal.elastic({_x:movePos*currentImage}, 5);
}
else
{
mcButNext.mcBut.but.enabled = false;
mcButNext._alpha = alphaMin;
}
};
mcButNext.mcBut.but.onRollOver = function():Void
{
this._parent._parent.mcShape._alpha = 60;
};
mcButNext.mcBut.but.onRollOut = function():Void
{
this._parent._parent.mcShape._alpha = 100;
};
hecberto
Tienes razón, pero ese archivo lo que hace es mostrarte una imagen de la biblioteca, no cargar un XML.
Yo lo que necesito es poder insertar ese slideshow en un flash que se redimensiona cuando cambias el tamaño de la ventana
altheo Profesor Plus
Que va... no la deforma. La ajusta proporcionalmente a la pantalla... Lo puedes ver en el ejemplo.
hecberto
Pero el archivo en cuestión deforma la imagen
altheo Profesor Plus
Siguiendo en flashden... te recomendaría que te bajaras éste archivo... Que te adapta las imagenes al tamaño del navegador de una forma proporcionada ;)
Eso sí, deberán estar dentro de un MC y las imágenes deberán tener cierta calidad.
hecberto
No es este, os paso el link, ya que es de flashden y así os respondo a los dos de un golpe :) http://www.flashden.net/item/slideshow-2-xml/1922
matmac Profesor Plus
Hola Hecberto,
el sitio que tienes actualmente es el template del que hablas? si es así a mi me funciona bien el fullScreen.
yosoyraro
Hola, en flashden.net hay muchos módulos y templates que seguro, te pueden servir. Respecto al código, lo siento, no puedo ayudarte pero igual el link te sirve... :)