# Just about done

**URL:** https://forum.kirupa.com/t/just-about-done/332086
**Category:** Uncategorized
**Created:** [January 23, 2014, 2:07am UTC](https://forum.kirupa.com/t/just-about-done/332086 "2014-01-23T02:07:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scottiescotsman](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)
#### Post date: [January 23, 2014, 2:07am UTC](https://forum.kirupa.com/t/just-about-done/332086/1 "2014-01-23T02:07:44Z")

</div>

get 2 syntax errors grr …?

[AS]  
//----------- SCROLLBAR CODE -----------//  
stage.addEventListener (Event.ENTER\_FRAME, sethandle)  
function sethandle (e:Event):void{  
var pc:Number = barMC.height / info\_txt.height;  
}

barMC.handleMC.addEventListener (MouseEvent.MOUSE\_DOWN, startScroll);  
stage.addEventListener (MouseEvent.MOUSE\_UP, stopScroll);

var yOffset:Number;

function startScroll (e:MouseEvent):void {  
stage.addEventListener (MouseEvent.MOUSE\_MOVE, handlemove);  
yOffset = mouseY - barMC.handleMC.y;  
e.updateAfterEvent();  
}

function stopScroll (e:MouseEvent):void {  
stage.removeEventListener (MouseEvent.MOUSE\_MOVE, handlemove);  
}

function handlemove (e:MouseEvent):void {  
var yMin:Number = 0;  
var yMax:Number = barMC.trackMC.height - barMC.handleMC.height;  
info\_txt.maxScrollV. = (((barMC.handleMC.y - yMin)/yMax)\*info\_txt.maxScrollV);  
barMC.handleMC.y = mouseY - yOffset;  
if (barMC.handleMC.y \<= yMin){  
barMC.handleMC.y = yMin;}  
if (barMC.handleMC.y \>= yMax){  
barMC.handleMC.y = yMax;}  
e.updateAfterEvent();  
}  
[/AS]

please help  
Steven
