Question

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.

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top