I have followed this tutorial http://www.kirupa.com/developer/mx/preloader_transition.htmand completed it
However I can not implement my “bar” preloader into the tutorial. I am able to make it say “loading” as the movie loads but just cant find where to put the AS for the bar preloader.
This is the code I am using for the bar preloader
“setProperty(“bar”, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);
trace (_root._totalframes)”
This is where I tried to put my code but it doesnt seem to work
In the “content” MC (which loads the external swf)
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay(“opening”);
}
}
}
If anyone would be able to take a quick look at the tutorial and help me out that would be awesome
btw you can download the source code here http://www.kirupa.com/developer/mx/code/complete.zip
Thankyou so much