# Call a function every time on Movie load

**URL:** https://forum.kirupa.com/t/call-a-function-every-time-on-movie-load/168549
**Category:** flash
**Created:** [November 8, 2005, 3:21am UTC](https://forum.kirupa.com/t/call-a-function-every-time-on-movie-load/168549 "2005-11-08T03:21:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)
#### Post date: [November 8, 2005, 3:21am UTC](https://forum.kirupa.com/t/call-a-function-every-time-on-movie-load/168549/1 "2005-11-08T03:21:10Z")

</div>

Hi everyone  
I have a movieclip by name popup1. When I click on a button I am calling this movielcip using  
popup1.\_visible=true;  
I want that whenever I am calling this popup1, a function refresh should always be called. How can I do that?  
Thanks
