Falsh // Containers
- Started
- Last post
- 5 Responses
- Robo
I am opening .swf in blabk movie containers inside my flash site - does anyone know how to preload these .swf's?
I have tried putting a preloader in the first frame of the new .swf which open in the cotianer but they do not work?!?
Please help .. I am stuck!
- unfittoprint0
problably you're using _root in the 'child' file. If so, it's going to trace total bytes or frames from the main movie instead of itself.
use this.getbytesTotal() or just getbytesTotal() (and getbytesLoaded...)
- unfittoprint0
or preload from the main movie...
- Robo0
bytes_loaded = Math.round(this.getBytesLoaded...
bytes_total = Math.round(this.getBytesTotal...
getPercent = bytes_loaded/bytes_total;
_root.loadBarmain._width = getPercent*205;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
- ********0
unfit has the answers ;)
- unfittoprint0
As I stated earlier, avoid using _root. Use it ONLY if you're playing with the main movie/ main timeline...
otherwise use this (or nothing) and _parent accordingly.