# Flash Eval and Callback Function

**URL:** <https://forum.kirupa.com/t/flash-eval-and-callback-function/255241>\
**Category:** flash\
**Created:** [March 20, 2008, 11:32am UTC](https://forum.kirupa.com/t/flash-eval-and-callback-function/255241 "2008-03-20T11:32:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex2party](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@alex2party](https://forum.kirupa.com/u/alex2party)\
**Post date:** [March 20, 2008, 11:32am UTC](https://forum.kirupa.com/t/flash-eval-and-callback-function/255241/1 "2008-03-20T11:32:09Z")

</div>

Hello friends,  
I’m quite new in flash and I’m finding it very stressful to write as codes.  
I’ve written a flash interface class for loading movies, but I’m stuck with callback and eval functions, so If anyone can help me, I’d be much appreciated.

Basically, I’m calling a class member function like this:

**this.call** ({  
name : “window”,  
pos : [x,y,w,h],  
target : \_root.frame,  
\*\* onComplete: function(p1,p2){  
trace(‘hello’ + p1);  
}  
\*\*});

… somewhere in timeline when movie loaded…

mcl.onLoadComplete=function(mc){  
eval (caller. **onComplete** )  
}

I just want to ask if I can evaluate the onComplete function in that way?  
Thank you in advance for any comments,  
Alex
