# Scroll content

**URL:** https://forum.kirupa.com/t/scroll-content/170919
**Category:** Uncategorized
**Created:** [November 30, 2005, 3:00pm UTC](https://forum.kirupa.com/t/scroll-content/170919 "2005-11-30T15:00:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rutin](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rutin](https://forum.kirupa.com/u/rutin)
#### Post date: [November 30, 2005, 3:00pm UTC](https://forum.kirupa.com/t/scroll-content/170919/1 "2005-11-30T15:00:47Z")

</div>

Hi guys,

I have text area with instance name “tekst”, on the right site of the text are i have a button with instane name “scroll\_btn”, behind this button i have move clip with instance name “scroll\_mc”.

In the action layer i have the folowing :

```auto
 
tekst.text = _parent.biotext;
if (tekst.maxscroll > 1)
{
	scroll_btn._visible = true;
	scroll_mc._visible = true;
}
else
{
	scroll_btn._visible = false;
	scroll_mc._visible = false;
} // end if
scroll_btn.useHandCursor = false;
scroll_btn.onRollOver = function ()
{
	this.nextFrame();
};
scroll_btn.onRollOut = function ()
{
	this.prevFrame();
};
scroll_btn.onPress = function ()
{
	this.startDrag(false, this._x, scroll_mc._y + 1, this._x, scroll_mc._y + scroll_mc._height - this._height - 1);
	this.onMouseMove = function ()
	{
		autput_y = tekst.maxscroll * (this._y - scroll_mc._y - 1) / (scroll_mc._height - this._height - 2);
		tekst.scroll = Math.floor(autput_y + 0.500000);
		updateAfterEvent();
	};
};
scroll_btn.onRelease = scroll_btn.onReleaseOutside = function ()
{
	scroll_block._y = Math.floor(scroll_block._y);
	this.stopDrag();
	this.onMouseMove = undefined;
};

 

```

This code works fine. The problem is i am having is that i want to rotate the complete text area 90 CW

If i choose command for rotation, my text isnt apearing. (Ctrl+Shift+9)  
Could any1 help me with this.

Regards,

Rutin
