# Tweener with flash MX?

**URL:** <https://forum.kirupa.com/t/tweener-with-flash-mx/284879>\
**Category:** Uncategorized\
**Created:** [March 24, 2009, 5:23pm UTC](https://forum.kirupa.com/t/tweener-with-flash-mx/284879 "2009-03-24T17:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![php\_beginner](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@php\_beginner](https://forum.kirupa.com/u/php_beginner)\
**Post date:** [March 24, 2009, 5:23pm UTC](https://forum.kirupa.com/t/tweener-with-flash-mx/284879/1 "2009-03-24T17:23:07Z")

</div>

Hi, I’m new to flash actionscript and trying to create a smooth scrollbar in flash mx. Since 2 days I’m trying it without any luck. I’ve followed the tutorials from  
[[COLOR=#810081]http://tutorialvid.com/viewVideo.php?vi … lash\_Part1[/COLOR]](http://tutorialvid.com/viewVideo.php?video_id=740&title=Create_Smoth_Scrolling_Scrollbar_in_Flash_Part1)

import caurina.transitions.\*;

var yOffset:Number;  
var yMin:Number = 0;  
var yMax:Number = sb.track.height - sb.thumb.height;

sb.thumb.addEventListener(MouseEvent.MOUSE\_DOWN, thumbDown);  
stage.addEventListener(MouseEvent.MOUSE\_UP, thumbUp) ;

function thumbDown(e:MouseEvent):void  
{  
stage.addEventListener(MouseEvent.MOUSE\_MOVE, thumbMove);  
yOffset = mouseY - sb.thumb.y;  
}

function thumbUp(e:mouseUp):void  
{  
stage.removeEventListener(MouseEvent.MOUSE\_MOVE, thumbMove);  
}

function thumbMove(e:MouseEvent):void  
{  
sb.thumb.y = mouseY - yOffset;  
if(sb.thumb.y \<= yMin)  
sb.thumb.y = yMin;  
if(sb.thumb.y \>= yMax)  
sb.thumb.y = yMax;  
var sp:Number = sb.thumb.y / yMax;  
Tweener.addTween(content, {y:(-sp\*(content.height-masker.height)),  
time:1});  
e.updateAfterEvent();  
}

and I’ve uploaded the caurina folder also

but when i try to publish the movie it shows errors:

Symbol=scrollbox, Layer=actions, Frame=1: Line 1: ;’ expected  
import caurina.transitions.\*;

Symbol=scrollbox, Layer=actions, Frame=1: Line 10: {’ expected  
function thumbDown(e:MouseEvent):void

Symbol=scrollbox, Layer=actions, Frame=1: Line 16: {’ expected  
function thumbUp(e:mouseUp):void

Symbol=scrollbox, Layer=actions, Frame=1: Line 21: {’ expected  
function thumbMove(e:MouseEvent):void

Please, Can anybody help me on this ??

I’m using flash mx version 6.0

Thank you
