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