Sorry for the repost, but I really need an answer for this:
Macromedia
[url]http://www.macromedia.com/support/documentation/en/flashpaper/2/flashpaper_api/f[/url]
lashpaper_api6.html gives the code below to affect to size of a Flash Paper
..swf, but I do not understand exactly what's going on. I've tried to adapt it
with no success. How is this script called? Why do I automatically get errors
when I insert my own files?

Thanks for the help!



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);
}