Code not working in AS2

Hi
I have this code from
http://www.negatyve.net/EE/FScrollPaneForm/FScrollPaneForm.zip

[AS]
pane_sp.setScrollContent(“form”);
h = pane_sp.getScrollContent()._height;
trace(pane_sp.getScrollContent()._height);
w = pane_sp.getScrollContent()._width;
//trace("hPosition = " + pane_sp.hPosition + ", vPosition = " + pane_sp.vPosition);
trace(h);
elementCount = 1;
morecheck_pb.setClickHandler(“addCheckBox”);
moreradio_pb.setClickHandler(“addRadioButton”);
moretext_pb.setClickHandler(“addTextArea”);
//myTimer=SetInterval(draw_chart,200);
//Call Draw Chart 50 times
for(p=1;p<50;p++)
{
draw_chart();
}
function addCheckBox()
{
var sp = pane_sp.getScrollContent();
var mc = sp.attachMovie(“FCheckBoxSymbol”, “item” + elementCount, elementCount, {label:“new checkbox”});

mc._y = (h += mc._height + 10);
mc._x = 10;

pane_sp.refreshPane();
elementCount++;
}
function addRadioButton()
{
var sp = pane_sp.getScrollContent();
var mc = sp.attachMovie(“FRadioButtonSymbol”, “item” + elementCount, elementCount, {label:“new radiobutton”});

mc._y = (h += mc._height + 10);
mc._x = 10;

pane_sp.refreshPane();
elementCount++;

}
function addTextArea()
{
var sp = pane_sp.getScrollContent();
var txt = [“item” + elementCount];
sp.createTextField(txt, elementCount, 10, h += 10, 200, 100);
h += 100;

sp[txt].border = true;
sp[txt].background = true;
sp[txt].text = “Some new Text”;
sp[txt].type = “input”;

pane_sp.refreshPane();
elementCount++;
}
function draw_chart()
{
w=w+40;
var sp = pane_sp.getScrollContent();
// pane_sp.hPageScrollSize = 2000;
// pane_sp.setScrollPosition(200+x,100+y)
// sp.createEmptyMovieClip(“lines”, 1000);
//var mc = sp.attachMovie(“FRadioButtonSymbol”, “item” + elementCount, elementCount, {label:“new radiobutton”});
//trace("hPosition = " + pane_sp.hPosition + ", vPosition = " + pane_sp.vPosition);
with(sp)
{
lineStyle(4, “0x000000”,100);
moveTo(x,350);
lineTo(x+20,350+30);
lineTo(x+40,350);
x=x+40;
// y=10+y;
}
pane_sp.refreshPane();
}
[/AS]
This code is in AS1 from the original source. It doesnt works in AS2
My application is in AS2
When I changed the settings to AS1, this code works but most of the buttons got their text vanished and other strange things happened.
Can anyone tell me what to do?