avm1: CallFunction can resolve variable paths
This commit is contained in:
parent
29dc88ec01
commit
35a4c05923
|
@ -1233,13 +1233,9 @@ impl<'gc> Avm1<'gc> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let target_fn = self
|
let target_fn = self
|
||||||
.stack_frames
|
.get_variable(context, &fn_name.as_string()?)?
|
||||||
.last()
|
|
||||||
.unwrap()
|
|
||||||
.clone()
|
|
||||||
.read()
|
|
||||||
.resolve(fn_name.as_string()?, self, context)?
|
|
||||||
.resolve(self, context)?;
|
.resolve(self, context)?;
|
||||||
|
|
||||||
let this = self.target_clip_or_root().object().as_object()?;
|
let this = self.target_clip_or_root().object().as_object()?;
|
||||||
let result = target_fn.call(self, context, this, None, &args)?;
|
let result = target_fn.call(self, context, this, None, &args)?;
|
||||||
self.push(result);
|
self.push(result);
|
||||||
|
|
Loading…
Reference in New Issue