marc0047
August 9th, 2004, 10:14 AM
I haven't been able to find documentation on why loaded movies via
'loadMovie' into another movie clip don't seem to obey onEnterFrame
commands. The following code represents a movie clip, 'container',
which has a loaded external .swf file, 'box.swf'.
I have set the container to begin a decreasing alpha change. I've also
added a trace to see if the onEnterFrame is performing at all. What
happens is that the box does not appear to have an alpha change. There
is, however, a trace that returns an output of '100' only. But no
other numbers, suggesting that the command has stopped.
// Start
container.loadMovie("box.swf");
container.onEnterFrame = function () {
trace(container._alpha);
container._alpha -= 1;
}
// End
'loadMovie' into another movie clip don't seem to obey onEnterFrame
commands. The following code represents a movie clip, 'container',
which has a loaded external .swf file, 'box.swf'.
I have set the container to begin a decreasing alpha change. I've also
added a trace to see if the onEnterFrame is performing at all. What
happens is that the box does not appear to have an alpha change. There
is, however, a trace that returns an output of '100' only. But no
other numbers, suggesting that the command has stopped.
// Start
container.loadMovie("box.swf");
container.onEnterFrame = function () {
trace(container._alpha);
container._alpha -= 1;
}
// End