This content has been marked as final. Show 4 replies
is 'thumbScroller' a Scrollpane Component or an MC? actually it must be a MC because other wise you would 'load' the contents.
so in that case then, create anther MC that is the size (or slightly less than) of the 'thumbScroller' MC, then use setMask() to mask the 'thumbContainer' MC.
thumbScoller is my instance name for the ScrollPane Component? Have i missed something vital?
well, maybe ;) I don't use the SP Component, but it seems that it operates more along the lines of a Loader Component, wherein the content needs to be 'loaded' into it from an external source, at least that's what the docs say, again I haven't done any testing on this, but therefore the attachment and creation of MCs to the instance should not really function that way. for instance, to use this method you may want to create a separate FLA that contains the above code for loading the XML, then 'load' the swf file into the scrollpane instance.
OR you could construct you own scrolling window.
But this is probably why the contents that you're trying to put in there isn't getting 'masked' by the scrollpane as it should.
ha ha. Well i have been going round in circles thinking that something must be wrong.
I have found a pre made example that i am trying to hack now. It does exactly what you say. Has an instance of the ScrollPane on the stage. It then has an MC in the library that contains all of the XML Load to be masked by the ScrollPane.
Thanks for the messages. Ill post up my final solution if i get one ;-)