# How do I Intialize a movie clip b4 its renedered?

**URL:** <https://forum.kirupa.com/t/how-do-i-intialize-a-movie-clip-b4-its-renedered/187244>\
**Category:** flash\
**Created:** [April 27, 2006, 6:48pm UTC](https://forum.kirupa.com/t/how-do-i-intialize-a-movie-clip-b4-its-renedered/187244 "2006-04-27T18:48:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DougS](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@DougS](https://forum.kirupa.com/u/DougS)\
**Post date:** [April 27, 2006, 6:48pm UTC](https://forum.kirupa.com/t/how-do-i-intialize-a-movie-clip-b4-its-renedered/187244/1 "2006-04-27T18:48:52Z")

</div>

Hi,  
I have movie clip (called MainButton) that I am using as a button and it has an ActionScript function (called Load\_Data(str:String) ). I have tested both and they work. Now in scene 1, I have several instances of MainButton. But when I call each instance’s Load\_Data(str:String) from the 1st cell in scene1, it doesn’t work. I tried using the onLoad event, but that doen’t work either. How can I initialize my instances MainButton before the page is rendered?

Thank you very much!  
Doug:hugegrin:
