Показать сообщение отдельно
Старый 19.05.2014, 03:31
ZackMercury вне форума Посмотреть профиль Отправить личное сообщение для ZackMercury Найти все сообщения от ZackMercury
  № 16  
Ответить с цитированием
ZackMercury
 
Аватар для ZackMercury

блогер
Регистрация: Jul 2013
Адрес: Север
Сообщений: 1,921
Записей в блоге: 23
Отправить сообщение для ZackMercury с помощью ICQ Отправить сообщение для ZackMercury с помощью Skype™
Нашёл на одном форуме самый, кажется, простой код по работе со стандартным скроллбаром.

Код AS3:
//set scrollbar event
cmpntScrollBar.addEventListener(ScrollEvent.SCROLL , scrollArticle);
 
function scrollArticle(evt:ScrollEvent):void{
    // Get access to the current scroll rectangle.
    var rect:Rectangle = mcListing.scrollRect;
 
    rect.y = cmpntScrollBar.scrollPosition;
    // Reassign the rectangle to the TextField to "apply" the change.
    mcListing.scrollRect = rect;
}
__________________
There is no thing in this world that is not simple.