Hi all,
I've got a problem in my Actionscript-Code(2.0).
I've got 2 layers. One contains a movieclip, which contains a function.
The other one contains a AS-Code which calls this function.
If I use this code the function is called correctly.
Code:
function loadXML(loaded){
if (loaded){
_root.test_mc.test_function("hello");
}
else{
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("test.xml");
but if I delete the XML-part the function wouldn't be called.
Code:
_root.test_mc.test_function("hello");
Does anyone have an answer?