hey there guys....i am trying to add a preloader to an MC that I am loading into another MC, but having a little bit of problems. If i use this script just normally and have it just on a single MC, it works fine, but when i am trying to preload into an MC on the stage, nothing happens, it just skips to 100% and then moves on.
Here is the code that I have
ActionScript Code:
total_bytes = _root.portfolioMC.getBytesTotal();
loaded_bytes = _root.portfolioMC.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("content", 1) {
gotoAndPlay ("content", 1);
}
seems simple enough...i have movies loading into "portfolioMC" that is on the _root timeline. This script above is in its own scene of the loaded movie.
Any idea why this is not working?
thanks for anyone who can help out.