try this:
1. create two movieclips in your library named "a" and "b" setup the linkage as well.
2. create a function within "b":
PHP Code:
function foo(){
trace("bar")
}
4. place an instance of "b", instance name "b_inst" inside "a".
5. call foo() from "a":
6.place an instance of of "a" on stage and run the swf.
Nothing Happens.
Now, remove the instance of "b" from "a", and change the script on "a" to the following to create the instance of "b" dynamically.
PHP Code:
var b_inst = attachMovie("b", "b_inst", getNextHighestDepth());
b_inst.foo();
Traces "bar". Am I missing something fundamental?