Parent.swf has a function called MyFunction(Holder:String)
The Parent.swf loads child.swf Using:
var Mychild:Loader = new Loader();
Mychild.name = "MyShowSlide";
Mychild.load(new URLRequest("child.swf"));
addChild(Mychild);
In Child.swf I want to do this:
parent.MyFunction("Test");
But when I try to publish the child it tells me that there is no
function called MyFunction().
How do I access a function (or anything for that matter) in the
Parent?
Thanks
The solution is to cast the parent at a movieclip
MovieClip(parent).function("bla");