Cyp1329
02-28-2007, 01:43 AM
I currently added a loader to my project, I have a seporate swf file which loads, everything works fine except when I load the game in that way the game doesn't register any mouse clicks. Anyone know what is causing this problem?
Here is the code for my loader:
siteLoader.loadMovie("http://www.blah.com/Blah.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
}
}
thanks guys,
cyp
Here is the code for my loader:
siteLoader.loadMovie("http://www.blah.com/Blah.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
}
}
thanks guys,
cyp