Integrating Media List with Component: Scroll Bar
Updated: Apr 22, 2008
Views: 1994
Description: In this tutorial we will be adding a scroll bar to view other content in media list.
Components Used in this Tutorial: Media List and the UIScrollBar Component that is included with Flash
The Completed Project:
Setting up the XML Document
Before you begin make sure that you have successfully installed the component inspector have been able to load content into the Media List component using XML. Also since we will be using ActionScript make sure that you give your Media List an instance name of myList.
Adding Scroll Bar component to the Stage
You will need to open the Components Window (Window>Components or Cntrl F7). Under User Interface Section drag the UIScrollBar component to stage. Please set the instance name of scroll bar to myScrollBar.
Attaching Scrollbar to Media List
You will need to set the scroll bar to the media list using ActionScript. On In the actions panel you will need to set the Media List's scroll bar to myScrollBar.
The Completed Project:
Setting up the XML Document
Before you begin make sure that you have successfully installed the component inspector have been able to load content into the Media List component using XML. Also since we will be using ActionScript make sure that you give your Media List an instance name of myList.
Adding Scroll Bar component to the Stage
You will need to open the Components Window (Window>Components or Cntrl F7). Under User Interface Section drag the UIScrollBar component to stage. Please set the instance name of scroll bar to myScrollBar.
Attaching Scrollbar to Media List
You will need to set the scroll bar to the media list using ActionScript. On In the actions panel you will need to set the Media List's scroll bar to myScrollBar.
myList.UIScrollBar = myScrollBar;
