issue: i have an mc called mcTextEffects attached to the stage:
attachMovie(“mcTextEffects”, “mcTextEffects”, getNextHighestDepth());
inside this mc, there is function which accepts following parameters:
function displayText(sText:String, nEff:Number){
…
}
this function animates string-input “sText” in some way according to “nEff”…
(1) mcTextEffects is attached in _root timeline
(2) function displayText is contained within mcTextEffects.
I want to call this funcion from _root timeline after mcTextEffects has been attached. I tried this way:
mcTextEffects.displayText(“hallooo”, 2);
doesnt work.
I found out that this way it works:
var nIntervall:Number=setInterval(animate, 0); // delay can be zero!!
function animate():Void{
clearInterval(nIntervall);
mcTextEffects.displayText(“hallooo”, 2);
};
I would like to understand what is going on, and why i cant access the function through simply calling _root.mc.function() as mentioned above.
Any help apprecciated