//Tengo un problema en la llamada a diferentes pdfs que después de convertirlos en Flashpaper son swf
//Lo que pretendo es llamar desde diferentes botones a diferentes docs de flashpaper pero personalizando el tamaño y las utilidades que en la cabecera siempre aparecen.
//Encontré estas funciones y una llamada al swf al cargarse la película:

// function: llamarFLASHPAPER
// ------------------------
// Parameters:
// path_s: path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest movie clip
// height_i: New size of the dest movie clip
// loaded_o: (optional) Object to be notified that loading is complete
function llamarFLASHPAPER (path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
dest_mc._visible = true; // Now show the document
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}


function onLoaded(fp) { // Function called once the FlashPaper SWF is embedded:
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", true);
fp.showUIElement("Print", true);
fp.showUIElement("Find", true);
fp.showUIElement("Tool", false); // la mano
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", false);
fp.showUIElement("Page", true);
fp.showUIElement("Overflow", true);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Create the destination movie clip to hold the SWF:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
theDocMC_mc._x = 100; // antes 16
theDocMC_mc._y = 2; // antes 10
llamarFLASHPAPER ("midocumento1.swf", theDocMC_mc, 700, 915, this);

// el problema reside en que si realizo esta llamada desde uno o varios botones no funciona.

boton1.onRelease = function () {
llamarFLASHPAPER ("midocumento1.swf", theDocMC_mc, 700, 915, this);
}
boton2.onRelease = function () {
llamarFLASHPAPER ("midocumento2.swf", theDocMC_mc, 700, 915, this);
}

// Al hacer esto el documento swf si se carga pero sólo se manteniene el tamaño que decido, pero no así las propiedades de la cabecera
// ¿ Alguien puede ayudarme ?
// Gracias anticipdas