Scrollpane doesn't scroll dynamic (mc) content

Hi,
I’ve been trying to get this thing working for a day or two but I can’t seem to get it to work right.
My setup consists of a mc “itemClip” with in it some textfields.
On frame one of the main timeline the actionscript loads an external xml file and duplicates “itemClip” for each menuItem node into the container mc “sDummy”. Then on the mainstage I have the scrollpane “scroller” that points to “sDummy”.
I test the movie and the dynamic content is visible BUT…
[list=1]
[]the scrollpane doesn’t scroll
[
]the content seems to be above the scrollpane (overlap)
[/list]
Anyone who can help me out on this?
I attached the .fla/.swf and .xml files in a zip here.
Thanks in advance

Okay, since I haven’t received any response I’ve searched all over this forum and http://www.actionscript.org/forums/ and tried and tried and finally got it working.
I changed my source around a bit, like dynamically attaching an empty itemContainer mc that is populated with instances of the itemClip mc that is in my library for each node in the external XML file.
I attach the altered source here so maybe other newbies won’t have such a hard time and to have somebody answer the question that arises now:
why is it that the itemClip instances only show up after the previous almost disappeared out of sight? How can I have them scroll all in a more linear way?
Hopefully somebody can hint me on this one.
Cheers

Hey

I’ve had a similar problem, and no response so I’ll give this a whack :slight_smile:

Cheers

Hey

I modified what you wrote to fit my movie and it worked. Cheers :slight_smile:
One question though, how did you get it to scroll your dynamic text box?

Oh yer, I’ve figured out a way of padding scrollpanes if you’re interested… :slight_smile:

Thanks
Luke =]

Hi Lukus,
Nice to know my movie has been of any help to you.
I don’t fully understand your question about scrolling the text box though. Maybe you can be more specific.
The goal of this example was to read out a XML file and put content (here the name attribute of the menuItem node) into a textfield of an instance of a movieclip (itemClip mc) from the library. Then put all these instances in a dynamically generated movieclip (itemContainer) that is the target of the scrollpane component that allready is on the mainstage.
Now the trouble is that the instances don’t line up vertically in a linear way as tables in HTML but only show up after the previous one is allmost out of sight. Maybe someone please can give me a hint to what is wrong here?
About your solution to padding scrollpanes, yeah sure, let me know.
Cheers

Hey

Um…I’m doing exactly the same as you, but without XML…I have dynamically created instances of “Product” within an empty clip “dummyClip”. Within “Product” is a dynamic text box. Whenever I try the movie with the textbox it doesn’t scroll properly at all.

For your problem, if I understand correctly, you could just make the scrollpane larger on the stage?

Padding scrollpanes = http://www.kirupaforum.com/forums/showthread.php?t=66095

Cheers
Luke =]

Hi Lukus,

Did you try to see what happens if you put it outside the scrollpane? Does it show all the instances of the mc in the “container” mc? If not then there must be something wrong at that level.
In my case I get all instances perfectly in one linear list from top to bottom but when using the scrollpane this listing is not visible and only one instance at a time shows up. Strange. Hope somebody out here can tell me why…

Allthough you might expect of a scrollpane that it scrolls everything that is greater than its own size I’ve tried that as well but without luck, thanks.
About your padding scrollpanes: that might be of help to anyone but isn’t there an easier way of doing that? I can’t imagine this is the only way of doing it but on the other hand it might be so…

Testing in FlashPlayer only doesn’t show all it seems. Test it embedded in HTML and all works like it should: Actionscript.com to the rescue again :snooze: