# Flashpaper Unloading

**URL:** <https://forum.kirupa.com/t/flashpaper-unloading/136351>\
**Category:** Uncategorized\
**Created:** [February 3, 2005, 11:29pm UTC](https://forum.kirupa.com/t/flashpaper-unloading/136351 "2005-02-03T23:29:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigiDave](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@DigiDave](https://forum.kirupa.com/u/DigiDave)\
**Post date:** [February 3, 2005, 11:29pm UTC](https://forum.kirupa.com/t/flashpaper-unloading/136351/1 "2005-02-03T23:29:43Z")

</div>

Hello,

I am loading an E-Book in Flashpaper (swf) file over another flash document using the loadmovie command. I have the sizing and layout just right, have figured out how to add and remove the buttons I want on FP, but I just don’t know how to set it so the close button appears when its open. You can’t go back to the flash behind it and have to restart it.

Could someone help a begginer, self taught person?

Here is the loading command in the main flash document:

on (release) {  
loader.loadMovie(“fpviewer.swf”,1);  
}

fpviewer is has the following action script in it:

function loadFlashPaper(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);  
var pages\_i = fp.getNumberOfPages();  
ctrlHolder\_mc.swapDepths(\_root.control\_mc);  
dest\_mc.\_visible = true; // Now show the document  
\_root.control\_mc.\_visible = true; // Now show the controller  
loaded\_o.onLoaded(fp);  
}  
}  
intervalID = setInterval(loadFunc, 100);  
dest\_mc.loadMovie(path\_s);  
}

fp.showUIElement(“PrevNext”, true);  
fp.showUIElement(“Print”, true);  
fp.showUIElement(“Find”, true);  
fp.showUIElement(“Tool”, true);  
fp.showUIElement(“Pop”, true);  
fp.showUIElement(“Zoom”, true);  
fp.showUIElement(“Page”, true);  
fp.showUIElement(“Overflow”,true);  
fp.enableScrolling(true);  
myFlashPaper.showUIElement(close, true)  
}  
\_root.control\_mc.\_visible = true;  
var theDocMC\_mc = this.createEmptyMovieClip(“theDocMC”,100);  
var ctrlHolder\_mc = this.createEmptyMovieClip(“ctrlHolder”,200);  
theDocMC\_mc.\_x = 16;  
theDocMC\_mc.\_y = 10;  
loadFlashPaper(“spec.swf”, theDocMC\_mc, 875, 1000, 2);

I thank you in advance for your response.

David
