2011-12-22 70 views
0

我在Flash應用程序中有幾個場景;對於其中一些電影高度是正確的,而其他人的內容是非常長的,所以我需要有滾動條讓用戶向下滾動。 哪一個在這個舊版本的Flash中處理它的正確方法是?如何在Flash 8中滾動內容?

回答

0

將您的movieclip放在ScrollPane組件中。

var _sp:ScrollPane = new ScrollPane();  
this.addChild(_sp); 
_sp.setSize(400,400); 

var _container:Sprite = new Sprite(); 
this.addChild(_container); 

_sp.source=_container; 

http://www.tizag.com/flashTutorial/flashtextscroll.php
http://www.entheosweb.com/flash/scrolling_content.asp

+1

的addChild?雪碧?在Flash 8中?只有你的第二個網址是主題內容。 – AsTheWormTurns 2011-12-22 14:26:53

+0

謝謝,第二個鏈接真的很有用! – Cris 2011-12-23 17:53:27