guarda che le action script per caricare un swf di FlashPaper sono ben precise e le trovi sul sito della macromedia
codice:mask._visible=0 function carica(nomefile){ trace(nomefile) function loadFlashPaper(path_s,dest_mc,width_i,height_i,loaded_o){ /* 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.setMask(MASK) dest_mc._visible = true; clearInterval(intervalID); loaded_o.onLoaded(fp); } intervalID = setInterval(loadFunc, 100); dest_mc.loadMovie(path_s); } //Il seguente codice mostra come utilizzare la funzione loadFlashPaper() dopo avere incorporato //un file FlashPaper SWF: function onLoaded(fp){ fp.setCurrentPage(50); // change magnification to 33% fp.setCurrentZoom(133); } _level0.createEmptyMovieClip(nomefile,102) _level0[nomefile]._x=0 _level0[nomefile]._y=0 loadFlashPaper("documento.swf", _level0[nomefile] , 300, 390,this); } carica()

Rispondi quotando