Bunas :shock: otra vez por aqui :shock: :lol:


tengo un problemilla, haber si me podeis hechar una mano.

CODIGO escribió:


images_xml1 = new XML();
images_xml1.onLoad = startImageViewer1;
images_xml1.load("xmls/aromaterapia.xml");
images_xml1.ignoreWhite = true;
//
// Show the first image and intialize variables
function startImageViewer1(success) {
if (success == true) {
rootNode1 = images_xml1.firstChild;
// 'totalImages' is the variable name set to correspond with the the dynamic text instance of 'totalImages'
totalImages1 = rootNode1.childNodes.length;
// [ totalImages = rootNode.childNodes.length; ] gets the total number of childNodes (total number of image and text files) in your .xml document
firstImageNode1 = rootNode1.firstChild;
currentImageNode1 = firstImageNode1;
// 'currentIndex' is the variable name set to correspond with the dynamic text instance of 'currentIndex'
currentIndex1 = 1;
// [ currentIndex = 1; ] sets the viewer to play the first childNode (first image and text file) in your .xml document
updateImage1(firstImageNode1);
}
}
//
// Updates the current image with new image and text
function updateImage1(newImageNode) {
// 'imagePath' is the variable name set to correspond with the .jpeg file name located in your .xml document
imagePath1 = newImageNode.attributes.jpegURL;
// 'imageTitulo' is the variable name set to correspond with the .jpeg file name located in your .xml document
imageTitulo1 = newImageNode.attributes.nom;
// 'imagePreu' is the variable name set to correspond with the name located in your .xml document
imagePreu1 = newImageNode.attributes.preu;
// 'imageID' is the variable name set to correspond with the ID located in your .xml document
imageId1 = newImageNode.attributes.id;
imageText1 = newImageNode.firstChild.nodeValue;

// 'targetClip' is the instance name for the movie clip 'imageArea', this is where all your image files from your .xml document are loaded
targetClip1.loadMovie(imagePath1);
// IMPORTANT : RESCALING THE SIZE OF THE 'imageArea' MOVIE CLIP WILL AFFECT THE ORIGNAL SIZE OF WHATEVER IMAGE YOU HAVE IN YOUR IMAGES FOLDER
}



con este codigo leo de un xml una serie de imagenes, el problema me biene ahora, el cliente redimensionar las imagenes :evil: y cuelga verdaderas animaladas :evil:

Puedo, almenos, desde el flash, redimensionar las imagenes para qu etengan una medida de terminada ^^ no hace falta que baje de peso, pero si que almenos este encuadrada ^^

he probado poner

targetClip1.loadMovie(imagePath1);
targetClip1._width = 146;
targetClip1._height = 111;


pero mas o menos, salen mas pequeñas :shock: pero casi trasnparentes :? o no salen¿?¿?¿? que coñe pasa!!!! help please


L's

p.d. el codigo se repite para imagen dos, etc.....