简体   繁体   中英

Actionscript 3 hide overflow of a sprite

I am trying to create a sprite in Actionscript 3 using Flash Professional with fixed width and height that contains a list of TextFields that scrolls up and down. I want the highlighted textfield to be fixed focus with the text that goes out of the sprites bounds to be invisible. I am new to AS3 and tried to set the width and height of the sprite but it did not work. I would do this with CSS by having a with a fixed width and height and setting the overflow property to hidden. Thanks for any help!

为精灵添加一个遮罩以反对可见的内容, http://www.ilike2flash.com/2009/06/dynamic-masks-using-sprites-in.html

检查ScrollPane组件,因为您可以为内容设置固定的宽度和高度,并选择自动显示窗格的滚动条。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM