Foros del Web » Creando para Internet » Flash y Actionscript »

como dejar de mostrar Mc o swf

Estas en el tema de como dejar de mostrar Mc o swf en el foro de Flash y Actionscript en Foros del Web. Hola, miren les explico tengo una pelicula en flash que es para una web completa, ahora quiero que al pinchar en una pelicula me cargue ...
  #1 (permalink)  
Antiguo 12/04/2004, 03:53
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
como dejar de mostrar Mc o swf

Hola, miren les explico tengo una pelicula en flash que es para una web completa, ahora quiero que al pinchar en una pelicula me cargue una galeria fotográfica

(slider photo load + preload) de www.flashkit.com

Bueno yo para mostrar textos con scroll y demás habia creado un Mc donde el primer frame estaba vacio y con un Stop.

con lo cual con el boton correspondiente le ponia:

Código:
on (press) {
	tellTarget (_root) {
                bio.gotoAndPlay(2);
        }

}
y para el resto de botones

Código:
bio.gotoAndStop(1);
así cuando apretaban en otro boton desaparecia y aparecia lo correspondiente a ese boton.

Pero con la galeria esta no desaparece, no se muy bien porque.

Así que queria saber como hacer para hacer desaparecer un Mc.

y ya de paso, saber si es mejor cargarlo desde un swf externo lo que quiero hacer?
Lo que ocurre que el fondo de ese MC es semitransparente para dejar ver el fondo de la principal, con un swf externo se puede hacer así también???


un saludo y gracias

Xema Perez
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
  #2 (permalink)  
Antiguo 12/04/2004, 11:00
Avatar de ¬...  
Fecha de Ingreso: noviembre-2003
Ubicación: Guatemala
Mensajes: 742
Antigüedad: 20 años, 5 meses
Puntos: 4
los .swf externos para que no tengan fondo transparente, editalos, y en la layer de abajo hacele un cuadro blanco o del color que tengas de fondo para que no te queden sin fondo, para
desaparecer un movieClip, por ejemplo desaparecer bio:
Código:
on(release){
bio._visible=0;
}
y para re-aparecerlo:
Código:
on(release){
bio._visible=1;
}
podes cargarlo tambien desde un .swf externo, tenes que ver si te conviene, la ventaja de tenerlo externo es que quien visite la pagina puede accesar al menu ppal y tener el contenido de entrada mas rapido, al darle click a un boton de x area pues ya le sale un 'cargando...' para el contenido, podes cargar los .swf externos dentro de un movieClip vacio al que le asignas un nombre de instancia, y la accion:
Código:
loadMovie("elarchivo.swf",clipvacio);
__________________
'_'

...
  #3 (permalink)  
Antiguo 12/04/2004, 17:24
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
Muchas gracias, me funciona con todos los Mc menos con el de la galería no se porqué, la galería es algo especial ya que funciona todo con código y no sé si eso tiene algo que ver.

y hay una cosa que no entendí, el fondo de mi flash es una fotografía, y yo cuando cargo los MC el fonde de estos es con un 30% de opacidad, para que se vea solo como una sombra encima de la foto.

si cargo un swf externo se puede hacer lo mismo??? q se vea la fotografía del fondo del flash???
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
  #4 (permalink)  
Antiguo 13/04/2004, 12:23
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
bueno e probado con el swf externo y si que se ve transparente.

ahora me falta que aunque lo ponga como swf externo, aparece, pero no consigo q desaparezca, el resto de las cosas si, pero esa galeria no.

alguien sabe porque?????
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
  #5 (permalink)  
Antiguo 15/04/2004, 08:10
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
a ver si con el código me podeis ayudar....
Código:
MovieClip.prototype.photoGallery = function(path, trgt, seed, maxSeed, format, fIn, thumbX, thumbY, thumbOutline, maskHeight, arrowSize, scrollSpeed, w, h, lbH, dist, jpgLoadTxt, txtXPos, txtYPos, txtStyle, fontName, txtSize, txtClr, html, bold, Italic, boxWidth, boxHeight, imageX, imageY, boxCentred, imageCentred, trgtImage) {
	_global.maxSeed = maxSeed;
	_global.seed = seed;
	_global.path = path;
	_global.thumbX = thumbX;
	_global.thumbY = thumbY;
	_global.format = format;
	_global.trgtImage = trgtImage;
	_global.imageCentred = imageCentred;
	_global.dist = dist;
	_global.boxWidth = boxWidth;
	_global.imageX = imageX;
	_global.imageY = imageY;
	_global.fIn = fIn;
	_global.scrollSpeed = scrollSpeed;
	seedOrig = seed;
	path._x = thumbX;
	path._y = thumbY;
	imageBox(boxHeight, imageY, boxCentred);
	thumbBox(thumbOutline, maskHeight);
	howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic);
	path.createEmptyMovieClip("thumbs", 1);
	path.thumbs._x = -dist;
	scrollMask(maskHeight, thumbX, thumbY);
	loadThumbnails(trgt, format, dist, prev_x, prev_w);
	drawBar(w, h, lbH, dist);
	onEnterFrame = function () {
		imageProgressBarRun();
		removeImageBar();
		imageSquash();
		imageCentre();
		loadIn(path.imageStuff.image);
		needArrows(arrowSize, dist, h);
		path.thumbs["thumb"+seed].onPress = Press;
		path.thumbs["thumb"+seed].onRelease = Release;
		path.thumbs["thumb"+seed].onEnterFrame = EnterFrame;
		if (allFadedIn != true) {
			loadingBarRun(txtStyle);
			if (seed<maxSeed) {
				prev_x = path.thumbs["thumb"+seed]._x;
				prev_w = path.thumbs["thumb"+seed]._width;
				if (path.thumbs["thumb"+seed]._width>0) {
				removeBars();
					if (path.thumbs["thumb"+seed]._alpha>=100) {
						_global.seed = seed += 1;
						drawBar(w, h, lbH, dist, prev_x, prev_w);
						loadThumbnails(trgt, format, dist, prev_x, prev_w);
					} else {
						loadIn(path.thumbs["thumb"+seed]);
					}
				}
			} else if (seed == maxSeed && path.thumbs["thumb"+seed]._width>0) {
				loadOut(path.totalLB);
				loadOut(path.totalLBB);
				path[jpgLoadTxt].removeTextField();
				removeBars();
				loadIn(path.thumbs["thumb"+maxSeed]);
				if (path.thumbs["thumb"+seed]._alpha>100) {
					allFadedIn = true;
				}
			}
		}
	};
};
//
// Fading functions
//
function loadIn(mc) {
	if (mc.getBytesLoaded() == mc.getBytesTotal() && mc._alpha<100 && mc._width>0) {
		if (mc._alpha<100) {
			mc._alpha += fIn;
		}
	}
}
function loadOut(mc) {
	mc._alpha -= fIn;
}
//
// Thumbnail loading, masking and scrolling functions
//
function thumbAlign() {
	if (alignThumbs == true) {
		_global.thumbX = thumbX=boxWidth-2*thumbX;
	}
}
function loadThumbnails(trgt, format, dist, prev_x, prev_w) {
	path.thumbs.createEmptyMovieClip("thumb"+seed, seed).loadMovie(trgt+seed+format+"?nocache="+getDate(), path.thumbs["thumb"+seed]);
	path.thumbs["thumb"+seed]._alpha = 0;
	path.thumbs["thumb"+seed]._x = prev_x+prev_w+dist;
}
function scrollMask(maskHeight, thumbX, thumbY) {
	path.createEmptyMovieClip("scrollMask", maxSeed+5);
	path.thumbs.setMask(path.scrollMask);
	path.scrollMask.lineStyle(.25, 0x999999, 100);
	path.scrollMask.beginFill(0xFF0000, 40);
	path.scrollMask.moveTo(0, 0);
	path.scrollMask.lineTo(Stage.width-2*thumbX, 0);
	path.scrollMask.lineTo(Stage.width-2*thumbX, maskHeight);
	path.scrollMask.lineTo(0, maskHeight);
	path.scrollMask.lineTo(0, 0);
	path.scrollMask.endFill();
}
function thumbBox(thumbOutline, maskHeight) {
	if (thumbOutline == true) {
		path.createEmptyMovieClip("thumbBox", 2);
		path.thumbBox.lineStyle(.25, 0x999999, 100);
		path.thumbBox.moveTo(-2, -2);
		path.thumbBox.lineTo(Stage.width-2*thumbX+2, -2);
		path.thumbBox.lineTo(Stage.width-2*thumbX+2, maskHeight+2);
		path.thumbBox.lineTo(-2, maskHeight+2);
		path.thumbBox.lineTo(-2, -2);
	}
}
function needArrows(arrowSize, dist, h) {
	if (path.scrollMask._width<path.thumbs._width) {
		if (runMeOnce != true) {
			drawArrows(arrowSize);
			placeArrows(arrowSize, dist, h);
			runMeOnce == true;
			path.arrows.arrowLeft._alpha = path.arrows.arrowRight._alpha=100;
		}
		path.arrows.arrowLeft.onPress = pAL;
		path.arrows.arrowRight.onPress = pAR;
		path.arrows.onMouseUp = rA;
		path.thumbs.onEnterFrame = scrollDirection;
	}
}
function drawArrows(arrowSize) {
	path.createEmptyMovieClip("arrows", 3);
	path.arrows.createEmptyMovieClip("arrowLeft", 1);
	path.arrows.arrowLeft.lineStyle(.25, 0x999999, 100);
	path.arrows.arrowLeft.beginFill(0x666666, 40);
	path.arrows.arrowLeft.moveTo(0, 0);
	path.arrows.arrowLeft.lineTo(0, 3*arrowSize/5);
	path.arrows.arrowLeft.lineTo(-arrowSize/2, 3*arrowSize/5);
	path.arrows.arrowLeft.lineTo(-arrowSize/2, 4*arrowSize/5);
	path.arrows.arrowLeft.lineTo(-arrowSize, 3*arrowSize/10);
	path.arrows.arrowLeft.lineTo(-arrowSize/2, -arrowSize/5);
	path.arrows.arrowLeft.lineTo(-arrowSize/2, 0);
	path.arrows.arrowLeft.lineTo(0, 0);
	path.arrows.arrowLeft.endFill();
	path.arrows.createEmptyMovieClip("arrowRight", 2);
	path.arrows.arrowRight.lineStyle(.25, 0x999999, 100);
	path.arrows.arrowRight.beginFill(0x666666, 40);
	path.arrows.arrowRight.moveTo(0, 0);
	path.arrows.arrowRight.lineTo(arrowSize/2, 0);
	path.arrows.arrowRight.lineTo(arrowSize/2, -arrowSize/5);
	path.arrows.arrowRight.lineTo(arrowSize, 3*arrowSize/10);
	path.arrows.arrowRight.lineTo(arrowSize/2, 4*arrowSize/5);
	path.arrows.arrowRight.lineTo(arrowSize/2, 3*arrowSize/5);
	path.arrows.arrowRight.lineTo(0, 3*arrowSize/5);
	path.arrows.arrowRight.lineTo(0, 0);
	path.arrows.arrowRight.endFill();
}
function placeArrows(arrowSize, dist, h) {
	if (thumbX+5>arrowSize) {
		path.arrows.arrowLeft._x = -1.2*dist-5;
		path.arrows.arrowRight._x = Stage.width-2*thumbX+dist+5;
		path.arrows.arrowRight._y = path.arrows.arrowLeft._y=arrowSize/5;
	} else {
		path.arrows.arrowLeft._x = arrowSize+5;
		path.arrows.arrowRight._x = 2*arrowSize;
		path.arrows.arrowRight._y = path.arrows.arrowLeft._y=-arrowSize-2*h;
	}
}
function pAL() {
	path.thumbs.thumbsMove = -1;
	path.thumbs.thumbsSlowDown=0;

}
function pAR() {
	path.thumbs.thumbsMove = 1;
	path.thumbs.thumbsSlowDown=0;

}
function rA() {
	path.thumbs.thumbsSlowDown=1;
}
function scrollDirection() {
	if (path.thumbs.thumbsMove == 1) {
		if(runOncei!=true){
			path.thumbs.scrollSpeed= scrollSpeed;
			runOncei=true;
		}	
		if(path.thumbs.thumbsSlowDown==0){
				runOncei=false;	
		}
		path.thumbs._x -= path.thumbs.scrollSpeed;
		if (path.thumbs._x<-(path.thumbs._width)+(Stage.width-(2*thumbX))){
			path.thumbs._x = -(path.thumbs._width)+(Stage.width-(2*thumbX));
		}
	} else if (path.thumbs.thumbsMove == -1) {
		if(runOncei!=true){
			path.thumbs.scrollSpeed= scrollSpeed;
			runOncei=true;
		}	
		if(path.thumbs.thumbsSlowDown==0){
			runOncei=false;	
		}
		path.thumbs._x += path.thumbs.scrollSpeed
		if (path.thumbs._x>-dist) {
 			path.thumbs._x = -dist;
		}
	} 
	if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == 1){
		path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
		if(path.thumbs.scrollSpeed<=0.05 ){
			path.thumbs.thumbsMove=0;
			path.thumbs.thumbsSlowDown=0;
			runOncei=false;
		}
	} else if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == -1){
		path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
		if(path.thumbs.scrollSpeed<=-0.05 ){
			path.thumbs.thumbsMove=0;
			path.thumbs.thumbsSlowDown=0;
			runOncei=false;
		}
	}
}
function drawBar(w, h, lbH, dist, prev_x, prev_w) {
	path.thumbs.createEmptyMovieClip("loadingBarBox"+seed, 2*maxSeed+seed);
	path.thumbs["loadingBarBox"+seed]._x = prev_x+prev_w+dist;
	path.thumbs["loadingBarBox"+seed].lineStyle(.25, 0x999999, 100);
	path.thumbs["loadingBarBox"+seed].moveTo(0, h);
	path.thumbs["loadingBarBox"+seed].lineTo(w, h);
	path.thumbs["loadingBarBox"+seed].lineTo(w, h-lbH);
	path.thumbs["loadingBarBox"+seed].lineTo(0, h-lbH);
	path.thumbs["loadingBarBox"+seed].lineTo(0, h);
	path.thumbs.createEmptyMovieClip("loadingBar"+seed, maxSeed+seed);
	path.thumbs["loadingBar"+seed]._xscale = 0;
	path.thumbs["loadingBar"+seed]._x = prev_x+prev_w+dist;
	path.thumbs["loadingBar"+seed].lineStyle(.25, 0x999999, 0);
	path.thumbs["loadingBar"+seed].beginFill(0x999999, 100);
	path.thumbs["loadingBar"+seed].moveTo(0, h);
	path.thumbs["loadingBar"+seed].lineTo(w, h);
	path.thumbs["loadingBar"+seed].lineTo(w, h-lbH);
	path.thumbs["loadingBar"+seed].lineTo(0, h-lbH);
	path.thumbs["loadingBar"+seed].lineTo(0, h);
	path.thumbs["loadingBar"+seed].endFill();
}
function loadingBarRun(txtStyle) {
	path.thumbs.byteL = path.thumbs["thumb"+seed].getBytesLoaded();
	path.thumbs["loadingBar"+seed]._xscale = (path.thumbs.byteL/path.thumbs["thumb"+seed].getBytesTotal())*100;
	loadingTxt(txtStyle);
	path.totalLB._xscale = (seed/maxSeed)*100;
}
function removeBars() {
	path.thumbs["loadingBar"+seed].removeMovieClip();
	path.thumbs["loadingBarBox"+seed].removeMovieClip();
	if (path.totalLB._alpha<0) {
		path.totalLB.removeMovieClip();
		path.totalLBB.removeMovieClip();
	}
}
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
  #6 (permalink)  
Antiguo 15/04/2004, 08:12
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
Código:
//
// Thumbnail loading progress functions
//
function howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic) {
	path.createTextField(jpgLoadTxt, maxSeed, txtXPos, txtYPos, 200, 10);
	path[jpgLoadTxt].autosize = true;
	path[jpgLoadTxt].html = html;
	path[jpgLoadTxt].type = "dynamic";
	path[jpgLoadTxt].wordWrap = true;
	path[jpgLoadTxt].selectable = false;
	textFormat = new TextFormat();
	textFormat.font = fontName;
	textFormat.size = txtSize;
	textFormat.color = "0x"+txtClr;
	textFormat.bold = bold;
	textFormat.italic = italic;
	path[jpgLoadTxt].setNewTextFormat(textFormat);
	loadingTxt(txtStyle);
	xWidth = path[jpgLoadTxt].textWidth+10;
	yHeight = path[jpgLoadTxt].textHeight/2;
	path.createEmptyMovieClip("totalLBB", maxSeed+4);
	path.totalLBB._x = xWidth;
	path.totalLBB._y = txtYPos;
	path.totalLBB.lineStyle(.25, 0x999999, 100);
	path.totalLBB.moveTo(0, yHeight);
	path.totalLBB.lineTo(60, yHeight);
	path.totalLBB.lineTo(60, yHeight+(yHeight/2));
	path.totalLBB.lineTo(0, yHeight+(yHeight/2));
	path.totalLBB.lineTo(0, yHeight);
	path.createEmptyMovieClip("totalLB", maxSeed+3);
	path.totalLB._x = xWidth;
	path.totalLB._y = txtYPos;
	path.totalLB.lineStyle(.25, 0x999999, 0);
	path.totalLB.beginFill(0x999999, 100);
	path.totalLB.moveTo(0, yHeight);
	path.totalLB.lineTo(60, yHeight);
	path.totalLB.lineTo(60, yHeight+(yHeight/2));
	path.totalLB.lineTo(0, yHeight+(yHeight/2));
	path.totalLB.lineTo(0, yHeight);
	path.totalLB.endFill();
	path.totalLB._xscale = 0;
}
function loadingTxt(txtStyle) {
	if (txtStyle == 1) {
		path[jpgLoadTxt].text = maxSeed-seed-1+" thumbnails left to load. ";
	} else if (txtStyle == 2) {
		path[jpgLoadTxt].text = seed-1+" de "+maxSeed+" imágenes han sido cargadas. ";
	} else if (txtStyle == 3) {
		if (maxSeed<10) {
			addSpace = "  ";
		} else if (maxSeed<100) {
			addSpace = "     ";
		} else if (maxSeed<1000) {
			addSpace = "          ";
		}
		path[jpgLoadTxt].text = " "+seed-1+" / "+maxSeed+addSpace;
	} else if (txtStyle == 4) {
		path[jpgLoadTxt].text = "Hay "+(maxSeed-seed-1)+" imágenes que cargar. ";
	}
}
//
// Main image box, loading, progress, positioning and size control functions
//
function imageBox(boxHeight, imageY, boxCentred) {
	path.createEmptyMovieClip("imageStuff", -10);
	if (boxCentred == true) {
		_global.imageX = imageX=((Stage.width/2)-(boxWidth/2));
	}
	path.imageStuff.createEmptyMovieClip("imageBox", -10);
	path.imageStuff.imageBox._x = -thumbX;
	path.imageStuff.imageBox._y = -thumbY;
	path.imageStuff.imageBox.lineStyle(.25, 0x999999, 100);
	path.imageStuff.imageBox.beginFill(0x000000, 30);
	path.imageStuff.imageBox.moveTo(imageX, imageY);
	path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY);
	path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY+boxHeight);
	path.imageStuff.imageBox.lineTo(imageX, imageY+boxHeight);
	path.imageStuff.imageBox.lineTo(imageX, imageY);
	path.imageStuff.imageBox.endFill();
	path.imageStuff.createEmptyMovieClip("image", -9);
	path.imageStuff.image._x = -thumbX+imageX;
	path.imageStuff.image._y = -thumbY+imageY;
}
function imageLoad() {
	path.imageStuff.image._alpha = 0;
	path.imageStuff.image.loadMovie(trgtImage+path.iLoadNumber+format+"?nocache="+getDate(), 1);
	}
function imageProgressBar() {
	barWidth = boxWidth/2;
	barHeight = barWidth/30;
	if (barHeight<5) {
		barHeight = 5;
	}
	path.imageStuff.createEmptyMovieClip("imageLoadingBarBox", maxSeed+2);
	path.imageStuff.imageLoadingBarBox.lineStyle(.25, 0x999999, 100);
	path.imageStuff.imageLoadingBarBox.moveTo(0, 0);
	path.imageStuff.imageLoadingBarBox.lineTo(barWidth, 0);
	path.imageStuff.imageLoadingBarBox.lineTo(barWidth, barHeight);
	path.imageStuff.imageLoadingBarBox.lineTo(0, barHeight);
	path.imageStuff.imageLoadingBarBox.lineTo(0, 0);
	path.imageStuff.createEmptyMovieClip("imageLoadingBar", maxSeed+1);
	path.imageStuff.imageLoadingBar.lineStyle(.25, 0x999999, 0);
	path.imageStuff.imageLoadingBar.beginFill(0x666666, 100);
	path.imageStuff.imageLoadingBar.moveTo(0, 0);
	path.imageStuff.imageLoadingBar.lineTo(barWidth, 0);
	path.imageStuff.imageLoadingBar.lineTo(barWidth, barHeight);
	path.imageStuff.imageLoadingBar.lineTo(0, barHeight);
	path.imageStuff.imageLoadingBar.lineTo(0, 0);
	path.imageStuff.imageLoadingBar.endFill();
	path.imageStuff.imageLoadingBar._xscale = 0;
	path.imageStuff.imageLoadingBarBox._x = path.imageStuff.imageLoadingBar._x=-thumbX+imageX+boxWidth/4;
	path.imageStuff.imageLoadingBarBox._y = path.imageStuff.imageLoadingBar._y=-thumbY+imageY+(2*path.imageStuff.imageBox._height/3);
}
function imageProgressBarRun() {
	path.imageStuff.imageLoadingBar._xscale = (path.imageStuff.image.getBytesLoaded()/path.imageStuff.image.getBytesTotal())*100;
}
function removeImageBar() {
	if (path.imageStuff.imageLoadingBar._xscale>=100) {
		path.imageStuff.imageLoadingBar.removeMovieClip();
		path.imageStuff.imageLoadingBarBox.removeMovieClip();
	}
}
function imageCentre() {
	if (imageCentred == true && path.imageStuff.image._width>0) {
		if (r1 != true) {
			pIX = path.imageStuff.image._x;
			pIY = path.imageStuff.image._y;
			r1 = true;
		}
		path.imageStuff.image._x = pIX+(path.imageStuff.imageBox._width-path.imageStuff.image._width)/2;
		path.imageStuff.image._y = pIY+(path.imageStuff.imageBox._height-path.imageStuff.image._height)/2;
	}
}
function imageSquash() {
	if (path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._height<path.imageStuff.imageBox._height && path.imageStuff.image._width>0) {
		path.imageStuff.image._xscale = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
		path.imageStuff.image._yscale = path.imageStuff.image._xscale;
	} else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width<path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
		path.imageStuff.image._yscale = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
		path.imageStuff.image._xscale = path.imageStuff.image._yscale;
	} else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
		xS = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
		yS = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
		if (xS<yS) {
			path.imageStuff.image._xscale = path.imageStuff.image._yscale=xS;
		} else if (xS>yS) {
			path.imageStuff.image._xscale = path.imageStuff.image._yscale=yS;
		}
	}
}
function squashReset() {
	path.imageStuff.image._xscale = path.imageStuff.image._yscale=100;
}
//
// Image selection functions
//
function Release() {
	if (path.iLoadNumber != this.iNumber) {
		this.b = true;
		path.iLoadNumber = this.iNumber;
		squashReset();
		imageLoad();
		imageProgressBar();
	}
}
function ReleaseOutside() {
	this.b = false;
}
function EnterFrame() {
	if (this.runOnce != true) {
		this.iNumber = seed;
		this.runOnce = true;
	}
	if (this.b == true) {
		this.blink();
	}
}
MovieClip.prototype.blink = function() {
	(this.blinkTimer == null) ? this.blinkTimer=getTimer()+40 : null;
	if (getTimer()>=this.blinkTimer) {
		this.times += 0.5;
		if (this.times == .5 || this.times == 1.5) {
			this._alpha = 30;
		} else if (this.times == 1 || this.times == 2) {
			this._alpha = 100;
		}
		this.blinkTimer = null;
	}
	if (this.times>=2) {
		this._alpha = 100;
		this.blinkTimer = null;
		this.b = false;
		this.times = 0;
	}
};
//
//
//usage
//
//
_root.createEmptyMovieClip("empty", 1);
photoGallery(_root.empty/*path*/, "thumbnails/DCP_"/*target*/, 1/*seed*/, 13/*maxSeed*/, ".jpg"/*format*/, 10/*fIn*/, 254/*thumbX*/, Stage.height-60/*thumbY*/, false/*thumbOutline*/, 80/*maskHeight*/, 15/*arrowSize*/, 10/*scrollSpeed*/, 50/*w*/, 10/*h*/, 3/*lBh*/, 5/*dist*/, jpgCount/*jpgLoadTxt*/, 0/*txtXPos*/, -20/*txtYPos*/, 2/*txtStyle*/, "Arial"/*fontName*/, 11/*txtSize*/, 999999/*txtClr*/, false/*html*/, false/*bold*/, false/*italic*/, 410/*boxWidth*/, 300/*boxHeight*/, 200/*imageX*/, 210/*imageY*/, true/*boxCentred*/, true/*imageCentred*/, "images/DCP_"/*trgtImage*/);
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
  #7 (permalink)  
Antiguo 16/04/2004, 03:25
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 22 años, 2 meses
Puntos: 0
por favor e probado todas las maneras que pone en el foro, por niveles, con moviclips vacios, y llamando al moviclip con el loadmovie, puedo mostrar los swf pero no se como ocultarlo, e poblado a cargar un swf en un nivel = pero que esté en blanco.

la primera vez me lo hace correcto, es decir aparece la galeria, le doy al otro boton que carga el swf vacio al mismo nivel, y desaparece la galeria. pero vuelvo a pulsar en galeria y ya no carga.


denme una solución que funcione que ya me sale humo de la cabeza, y no lo e conseguido.
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:15.