Scrollpane with a dynamically growing movie clip
I have attached a movie clip of a certain size (say width = 300, height = 200) to a Scrollpane (width = 300 + scrollbar's width, height = 200, horizontal scroll disabled, vertical scroll auto) so that the movie clip perfectly fits into the Scrollpane. I would like this movie clip to dynamically grow in size at a later time; that is, sometime after the movie clip has been attached to the scrollpane, I increase the height of the movie clip to 300 through ActionScript. I was thinking that this would trigger the scrollbar to adjust accordingly, but nothing of the sort happens. Is ScrollPane unfit to handle dynamically growing movie clips, or is there something I'm missing here? Below are the things I do just in case one is interested if I missed a key action:
1. create the movie clip and define its instance name and linkage name
2. bring the scrollpane to the stage and attach the movie clip using the linkage name
3. change the height of the movie clip using ActionScript (by referring to it using its instance name)
4. I added some trace statements to see if the height was indeed changed, and they seem to be changing.
I would greatly appreciate it someone could point out what I could do to achieve this effect. Thanks.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Buttons within a movie clip within a scrollpane within a movieclip...||jkam||ActionScript 3.0||0||11-12-2009 10:04 AM|
|Scrollpane movie clip||Cera2001||ActionScript 3.0||8||11-04-2009 09:58 AM|
|Goto + movie clip in a movie clip||mongolian||Newbies||2||11-20-2007 07:07 AM|
|What is the best way to do this?||rolento||Newbies||29||12-09-2005 10:12 PM|
|can i create a scrollpane inside the movie clip?||kazuma||Flash MX||0||08-13-2004 03:46 PM|