Search code examples
flashflash-cs5flash-cs4flashdevelop

How to create a layer/movieclip with scrollbar in flash?


I am creating a game in flash. It needs a scroll bar. So I want to know how to create a layer with scrollbar? . I know how to link a textfield with scroll bar. Similarly is it possible to link a movieclip/layer with scrollbar.


Solution

  • you can use ScrollPane component. (press ctrl+f7 to see components window)
    then set a movieclip as its source:

    your_scrollPane.source=your_movieclip;
    //customize other properties such as ScrollPolicy & ... 
    

    edit: if you don't want use actionscript:
    1-set AS Linkage for your movieclip (in library panel) enter image description here
    2- set source property for your ScrollPane
    enter image description here