var frame = new Frame();
frame.startFrame();
function start(){
	var div1 = new FrameElement('div1');
	div1.setX(0);
	div1.setY(0);
	div1.onEnterFrame = function(){
		this.setX(this.getX() + 5);
		this.setY(this.getY() + 5);
		if(this.getX() >= 200){
			this.onEnterFrame = null;
		}
	}

	var div2 = new FrameElement('div2');
	div2.setX(200);
	div2.setY(200);
	div2.onEnterFrame = function(){
		this.setX(this.getX() - 5);
		this.setY(this.getY() - 5);
		if(this.getX() <= 0){
			this.onEnterFrame = null;
		}
	}
	frame.setObject(div1);
	frame.setObject(div2);
}