Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing \ Stretching Problem

Status
Not open for further replies.
Dec 24, 2001
857
GB
I have an instance of the listbox component in my library and I use the following code to put it on the stage

Code:
_root.attachMovie("List","myList",1);
_root.myList._width = 325;
_root.myList._height = 500;
_root.myList._x = 100;
_root.myList._y = 50;

For some reason, its stretching the list box instead of just resizing it normally like if I drag it onto the stage and set its properties. Any idea why its doing this and is there any way to get round it? I plan to use several list boxes throughout the movie but they need to be dynamic so manually placing them on the stage isnt really an option...

thanks
 
ah well, found out myself about 10 minutes after posting...you have to use the setSize command instead:

Code:
_root.myList.setSize(325,500);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top