Hi All,
So I’ve been having some trouble building a prealoder for an external swf and was hoping someone more advanced would be kind enough to help me out. The code is below:
loadMovieNum(“wickedcow.swf”, 1);
_root.onEnterFrame = function() {
preloaderBar._y = outline._y-(_level1.getBytesLoaded()/_level1.getBytesTotal())*100;
loaded.text = _level1.getBytesLoaded();
total.text = _level1.getBytesTotal();
};
Pretty simple right? The problem is that the movie is 5 meg (getBytesTotal() returns 5 meg), but it opens the external swf at 2 meg. I noticed that the first scene in the movie is 2 meg, and am wondering if the external swf is opening when only the first scene is loaded? Is there any way for me to ensure the external swf will open only when the entire movie is loaded?
Any help is much appreciated!