Topic: Game Programming /
Application stalling on load
Well, it doesn’t hardly load anything, so I guess I’ll start5 from the top two (at least partial) procedures;
this.onLoad = function(){
root.gotcoin = 0;
_root.Menu1.x = 0;
root.CurrentVolume = true;
_root.Menu1.y = 0;
root.End1.x = 0;
root.End1.y = 0;
root.Next1.x = 0;
root.Next1.y = 0;
root.LoadBoard(1);
_root.Paused1.x = 0;
root.Paused1.y = 0;
root.Start1.x = 0;
root.Start1.y = 0;
_root.Speed = 0;
_root.Ballup = 0;
_root.Boardno = 1;
_root.Direction = 0;
_root.Paused = 1;
};
LoadBoard = function (toLoad) {
root.Boardno = toLoad;
_root.gotcoin = 0;
for (i=1; i<=30; i++) {
var iMcName:String = "Map"+i;
_root[iMcName].x = 35;
root[iMcName].y = 150;
root[iMcName].alpha = 0;
}
root.Map11a.x = 35;
root.Map11a.y = 150;
root.Map11a.alpha = 0;
if (toLoad == 1) {
root.Minutes = 0;
_root.Seconds = 30;
_root.Map1.x = 35;
root.Map1.y = 50;
root.Map1.Coin1.gotoAndPlay(1);
_root.Map1.WallGlass1.gotoAndPlay(1);
root.maxSolidWalls = 2;
_root.maxLowWalls = 1;
_root.maxGlassWalls = 1;
_root.Map1.alpha = 100;
|