Tema: Flash Paper
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/02/2006, 16:46
gabo_ben07
 
Fecha de Ingreso: julio-2005
Mensajes: 7
Antigüedad: 18 años, 9 meses
Puntos: 0
Nop...

Cita:
Iniciado por Prince
El mismo código con el que cargas un swf externo, ya que si te fijas un documento en Flash Paper es un swf y lo puedes cargar exactamente igual que cualquier otro swf.
Al parecer no. pues tengo este codigo y no me funciona:

function loadFlashPaper(
path_s, // path of SWF to load
dest_mc, // MC which we should replace with the SWF
width_i, // new size of the dest MC
height_i, // new size of the dest MC
loaded_o) // optional: object to be notified that loading is complete
{

var intervalID = 0;
var loadFunc = function()
{
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp)
return;
if (fp.setSize(width_i, height_i) == false)
return;
dest_mc._visible = true;
clearInterval(intervalID);
loaded_o.onLoaded(fp);
}
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}
//El siguiente código muestra cómo utilizar la función loadFlashPaper() después de incrustar un archivo SWF de FlashPaper:

function onLoaded(fp)
{
// loading is complete, so we can now adjust the current page, zoom, etc.
// go to page 50.
fp.setCurrentPage(50);
// change magnification to 33%
fp.setCurrentZoom(33);
}
loadFlashPaper("FlashPaper.swf", theDocMC, theDocMC._width, theDocMC._height, this);

Todo bien pero lo señalado en rojo me da problema. por mas que lo rellene con lo que indica el comentario. pueden probarlo si pueden.
Gracias