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!
2 Answers
1
votes
Check out the ScrollPane component as you can set a fixed width and height for the content and choose to automatically show scroll bars for the pane.
1
votes
Add a mask to the sprite to contrain what is visible, http://www.ilike2flash.com/2009/06/dynamic-masks-using-sprites-in.html