# Help needed for "onLoadInit"

**URL:** <https://forum.kirupa.com/t/help-needed-for-onloadinit/178414>\
**Category:** flash\
**Created:** [February 10, 2006, 11:14am UTC](https://forum.kirupa.com/t/help-needed-for-onloadinit/178414 "2006-02-10T11:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Mohit](https://forum.kirupa.com/u/Mohit)\
**Post date:** [February 10, 2006, 11:14am UTC](https://forum.kirupa.com/t/help-needed-for-onloadinit/178414/1 "2006-02-10T11:14:22Z")

</div>

Hye,

Actually I need help regarding the following code:

[FONT=Courier New]this.createEmptyMovieClip(“image\_mc”, 1);  
var mclListener:Object = new Object();  
mclListener. **onLoadInit** = function(target\_mc:MovieClip)  
{  
**target\_mc**.onPress = function()  
{  
this.startDrag();  
};  
**target\_mc**.onRelease = function()  
{  
this.stopDrag();  
};  
};  
[FONT=Verdana]I am not able to understand whether “[FONT=Courier New] **target\_mc** [/FONT]” is a button or a movieclip and what is the purpose of “[FONT=Courier New] **onLoadInit** [/FONT]” here.[/FONT]\*\*[FONT=Verdana]

Please help me out.[/FONT]

[FONT=Verdana]Regards[/FONT]\*\*[/FONT]
