Groups | Blog | Home
all groups > flash actionscript > february 2005 >

flash actionscript : XML and SCROLLPANE COMPONENT


Dan-C
2/20/2005 7:45:00 PM
Hello. I'm trying to load some data from an XML file into the scrollpane
component. Here's the snippet of code I'm using to attach the movie clip to
the scrollpane: item = _root.myContent.attachMovie('eventList',
'eventList' + i, i); myContent is the name of my scrollpane, and eventList is
the movie clip that gets attached. This works, however when there are several
items, rather than keeping them inside the scrollpane to scroll, they just run
over the entire page. Can anyone help me out with this? Thanks a lot.
grover970
2/22/2005 9:55:06 PM
If you are using MX, I had a similar problem, when I was importing XML data.

The problem, I found was that I had all of my code on the _root timeline, and
once I put the function that controlled what got imported into the scrollPane
into its own movie it worked fine.

So if if that didn't make sense here is what I did.

the scrollPane would be on the main timeline, and was linked to what I would
consider my housing movie. Within this movie clip I put all the code needed to
attach, duplicate, whatever.

Until I did that, the scrollPane wouldn't mask like it was supposed to, and
it seemed like everthing sat on top of it.

hope it helps.
AddThis Social Bookmark Button