I have a movieclip about 500frame long. at the end of the movie, I load external movie. My problem is since I load movie at the very end, it wont start right away. So I tried to load it at the very first frame and hide mc.
But the external movie will never be hidden but shown right after finished loading which is in the middle of container movie.
I also tried to put AS in different order like;
The reason why the _visible property is not being set is because you didn’t give Flash enough time to load external movie file… You have to fully load it to adjust any of the properties…
Try this… I think this should do the job…
You need a routine that checks if the external file is loaded or not…
_root.mc.loadMovie("external.swf");
_root.onEnterFrame = function ()
{
if (_root.mc._width > 0)
{
// This is the point where the external
// SWF file is fully loaded...
_root.mc._visible = false;
delete this.onEnterFrame;
}
}
Of course, kax’s script should work perfectly, but I thought I’d let you know the reason behind it…