# Adding function to SWFS

**URL:** <https://forum.kirupa.com/t/adding-function-to-swfs/257534>\
**Category:** flash\
**Created:** [April 15, 2008, 2:56am UTC](https://forum.kirupa.com/t/adding-function-to-swfs/257534 "2008-04-15T02:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoWeb](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@NeoWeb](https://forum.kirupa.com/u/NeoWeb)\
**Post date:** [April 15, 2008, 2:56am UTC](https://forum.kirupa.com/t/adding-function-to-swfs/257534/1 "2008-04-15T02:56:39Z")

</div>

Hi all,  
I am trying to get the free version of FlashPageFlip from the website [www.FlashPageFlip.com](http://www.FlashPageFlip.com) to work. The problem is I don’t understand the instructions that came with the package I downloaded. Please explain to me what the following instruction is telling me to do, as you can tell I am very new to Flash. Thank you in advance for your help.

## PAGE ONVISIBLE

Place functions called onVisible and onInvisible in your page SWFs.

function onVisible() {  
trace(“Just turned to this page!”);  
}

function onInvisible() {  
trace(“Just left this page!”);  
}
