Ok i used a tutorial in this web design magazine to be fair but im having problems. I followed the tutorial (as i am new to this, really new) and so i dont know right from wrong, however im having some problems. Basically im mkaing this game where i have this paddle thing which you bounce a ball off which then hits some blocks which you have to get rid of. I hope you get the idea...if you dont ill try and upload it...however you wouldnt beable to see the whole point of the game, that is becuase the blocks arent showing up so heres the code:


Code:
Mouse.hide()


init()
stop()

function init()
{
	setup_wall();
	numbricks = 30
	
	score = 0;
	lives = 3;
	
	right = 500;
	left = 0;
	top = 0;
	bottom = 285;
	
	ball._x = paddle._x;
	ball._y = 275;
	
	ball.velx = 0;
	ball.vely = 0;
	
	ball.onEnterFrame = move;
	
}

function setup_wall()
{
	var rows = 0;
	var cols = 0;
	for(x = 0; x < 30; x++)
	{
		_root.brick.duplicateMovieClip("brick"+x, x);
		_root["brick"+x].y = 25 * rows;
		_root["brick"+x].x = 85 * cols;
		
		if(++cols > 5){
			cols= 0;
			rows++;
		}
	}
}

function move()
{
	this._x += this.velx;
	this._y += this.vely;
	
	if(_root._xmouse > 0 && _root._xmouse < 500)
	{
		paddle._x = _root._xmouse;
	}
	if(!bal.velx && !ball.vely)
	{
		ball._x = paddle._x;
		ball._y = 275;
	}
	
	hit_block();
	
	if(this._x>right-(this._width/2)){
		this.velx *= -1;
		this._x = right-(this._width/2);
	}
	if(this._x<left+(this._width/2)){
		this.velx *= -1;
		this._x = left+(this._width/2);
	}
		if(this._y<top+(this._width/2)){
		this.vely *= -1;
		this._y = top+(this._width/2);
	}
	
	if(this._y>bottom-(this._height/2)){
		player = paddle.getBounds(_root);
		pl = player.xMin - this._width/2;
		pr = player.xMax - this._width/2;
		
		if(this._x>pl && this._x<pr) {
			this.vely *= -1;
			
			this.velx += Math.random()*20-10;
			this._y = bottom-(this._height/2)
		}
		
		else {
			
			if(this._y > 310){
			
			if(--lives < 1)
			game_over();
			
			ball._x = paddle._x;
			ball._y = 275;
			ball.vely = 0;
			ball.velx = 0;
			}
		}
	}
}

function hit_block()
{
	for(x=0;x<30;x++)
	{
		if(ball.hitTest(_root["brick"+x]))
		{
			score+=10;
			_root["brick"+x].removeMovieClip();
			if(--numbricks < 1){
				level_complete();
			}
			ball.vely *=-1;
		}
	}
}
_root.onMouseDown = function()
{
	if(!_root.ball.velx && !_root.ball.vely)
	{
		ball.velx = Math.random()*20-10;
		ball.vely = -10;
	}
}
so i am totally igronant to all this so i would really appreciate your help thanks in advance, just ask for more informaiton :S lol

Skyrail.