Can't get what to work? Flashpaper works with other apps, like Word, or Excell. Open those, then you see a Flashpaper menu at the top. Click that, then pick what you want to make. If it's a swf, it just makes a swf. You just insert the swf on a html page to use it.
Once it's made, you can just use loadMovie to load it into another swf, or in your case, an EXE. Everything is contained in the flashpaper swf. Just load it into an empty clip inside the main movie.
is it possible that it is becasue the document is wider then my presentation becauyse if i drag a scrollbar component into my presentation i can put it in but it looks terrible
OK, no, you didn't do the code right. The first line, function loadFlashPaper is just setting up the function parameters. You set them later, when you call the function, which is down in the bottom part, that you didn't include, the bery last line, loadFlashPaper. You also left out some other parts. Here's the whole block of code you need.
Code:
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);
}
function onLoaded(fp)
{
// loading is complete, so we can now adjust the current page, zoom, etc.
// go to page 1.
fp.setCurrentPage(1);
// change magnification to 60%
fp.setCurrentZoom(60);
}
loadFlashPaper("Basic_Setup_Directions1.swf", _root.mtClip, 550, 650, this);
I'll attach my example. But, using this code, I had to put it on a server to see it when testing outside flash. Flashpaper is some kind of component. I think your going to have to use a simple loadMovie on your CD to make this work.
mtClip is the Instance name. The library names of objects means nothing. If you want to target anything with actionscript it has to have an instance name, or Linkage Identifier once it's onstage.
so do i click on the movieclip and in properties just change it. thats what i thought but when i looked at your attatched file i couldn't find where you wrote mtClip
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);
}
function onLoaded(fp)
{
// loading is complete, so we can now adjust the current page, zoom, etc.
// go to page 50.
fp.setCurrentPage(1);
// change magnification to 33%
fp.setCurrentZoom(60);
}
loadFlashPaper("R01-2006.swf", _root.intro.mtClip, 550, 650, this);
stop();
No, you can't use any of that code if your going to load it into an empty clip. You just have to accept the defaults of the flashpaper component if you want to load it to an empty movie clip inside the main movie. Just use;
_root.intro.mtClip.loadMovie("R01-2006.swf");
You give any object an instance name by selecting the object on stage, then look in the left end of the properties panel for a window that says <Instance Name>. Just click in there and type the new name.
Are you trying this on a CD? I haven't done that, and I'm not sure it will even work. And it doesn't work if you try and load it to another swf, unless it's on a server. I don't know why.
Here's a link that loads a flashpaper swf into an empty clip;