I am loading an external .swf file onto my stage. This is the script I am using:
createEmptyMovieClip(“village_holder”, 1);
village_holder.loadMovie(url, 0);
onEnterFrame = function() {
var bytes_loaded = village_holder.getBytesLoaded();
var bytes_total = village_holder.getBytesTotal();
if(bytes_loaded > 0) {
var percent_loaded = bytes_loaded/bytes_total;
if(percent_loaded == 1) {
nextFrame();
}
}
}
It loads everything great, but it lags so bad when it plays!!! Am I loading everything prperly? The external .swf file is just under 200 kb, but that should be ok, right? I would appreciate any help if there is a way to prevent lagging. maybe a way to ask for more ram from the computer?
I really need any help/input on this problem, thanks.