# PLEASE HELP - How do I Intialize a movie clip when Onload doesn't work

**URL:** <https://forum.kirupa.com/t/please-help-how-do-i-intialize-a-movie-clip-when-onload-doesnt-work/187302>\
**Category:** flash\
**Created:** [April 28, 2006, 5:57am UTC](https://forum.kirupa.com/t/please-help-how-do-i-intialize-a-movie-clip-when-onload-doesnt-work/187302 "2006-04-28T05:57:48Z")\
**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 28, 2006, 5:57am UTC](https://forum.kirupa.com/t/please-help-how-do-i-intialize-a-movie-clip-when-onload-doesnt-work/187302/1 "2006-04-28T05:57:48Z")

</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 “dragged and dropped” several instances of MainButton onto my stage (from my library) . But when I call each instance’s Load\_Data(str:String) function from an onLoad event in the Actionscript in the 1st cell in scene1, it doesn’t work. Can anyone tell me what event will work? I have to initialize the buttons before the user views the page.

Thank you very much!
