Problem using "img src" with Claudio's scrollbar

Hello,

I have a dynamic textbox that is using Claudio’s scrollbar. It works well, so I thought I would update the dynamic textfile to accept pictures using the “img src” tag. When I published the file using Flash Player 7, it caused a huge amount of space to be added to the bottom of the textbox in swf preview. This doesn’t happen normally.

Is this an easy fix? This is my first time using pictures with dynamic text… can you let me know what I’m doing wrong? I’ll attach my files to this post.

Notepad doc:

kirupatext=Too much blank space under the image!!
<img src="test.jpg"><BR><BR><BR><BR><BR><BR>
I've added this picture to show that there is so much blank space following the last line of text? Why does this happen when you add a image code to the dynamic text? If you remove the picture, you'll notice that the spacing is normal. Add the picture again, and you'll see the huge amount of space the picture puts in!!

Code:

loadVarsText = new LoadVars();
loadVarsText.load("kirupa.txt");
loadVarsText.onLoad = function(success) {
	if (success) {
		trace ("done loading");
		main.scroller.htmlText = this.kirupatext;
		main.scroller.autoSize = "left";
		//trace("Text height: "+main.scroller._height);
		//trace(mask_mc._height);
		if(main.scroller._height <= mask_mc._height){
			up_btn._visible = false;
			dragger._visible = false;
			bar._visible = false;
			down_btn._visible = false;
		}
		trace("TEXTFIELD HEIGHT: "+main.scroller._height);
		trace("CLIP HEIGHT: "+main._height);
		offset = main._height - main.scroller._height;
		trace("OFFSET: "+_level0.offset);
		bottom = (main._y+mask_mc._height-main._height-space)+offset;
	} else {
		trace ("not loaded");
	}
};

stop();

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 1; 
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
	drag = true;
	this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
	dragger.scrollEase();
};
dragger.onMouseUp = function() {
	this.stopDrag();
	drag = false;
};
bar.onPress = function() {
	drag = true;
	if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
		this._parent.dragger._y = this._parent._ymouse;
		this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
	} else {
		this._parent.dragger._y = this._parent._ymouse;
	}
	dragger.scrollEase();
};
bar.onMouseUp = function() {
	drag = false;
};
moveDragger = function (d) {
	if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
		clearInterval(myInterval);
	} else {
		dragger._y += d;
		dragger.scrollEase();
		updateAfterEvent();
	}
};
up_btn.onPress = function() {
        myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function() {
        myInterval = setInterval(moveDragger, 20, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
        clearInterval(myInterval);
};
up_btn.onPress = function() {
        myInterval = setInterval(moveDragger, 20, -1);
};
down_btn.onPress = function() {
        myInterval = setInterval(moveDragger, 20, 1);
};
MovieClip.prototype.scrollEase = function() {
	this.onEnterFrame = function() {
		if (Math.abs(dy) == 0 && drag == false) {
			delete this.onEnterFrame;
		}
		r = (this._y-y)/(bar._height-this._height);
		dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
		main._y += dy;
	    trace(main._y);
	};
};