Controlling properties dynamically of scrollpane stored as a shared library

controlling properties dynamically of scrollpane stored as a shared library


Hi all…

I am having some difficulty figuring out how to control a component’s properties in actionscript in an external swf.

Is this possible (ie. in movie A could i load a movie B with a scrollpane, say named “component_mc” , and in Movie A use actionscript to specify setSize or setScrollContent) ???

Specifically i am using the MultiOutlet component (a component that allows you to store multiple resources such as graphics etc. like a shared library, but also with components so you don;t have to reload them each time but share them)

The multioutlet component works fine (get it at http://www.flashcomponents.net)
loading the scrollpane, but i cannot figure out the syntax or where i should put the actionscript in the movie containing the multioutlet component (not the scrollbar movie/library which the component loads) to dynamically change the component’s properties…

I have attached a zip file for ppl to take a look at.
2 .flas
multi.fla - which contains a movie clip on the stage with the multioutlet component inside.

and sharedLib.fla - which contains only the scrollpane component in it. (but could contain other resources which could be accessed with the multioutlet)

Take a look and you will see what i am up to… also once this is figured out, it is very useful so u don’t have to keep loading components like scrollpane over and over across your movies.

Please help! Thanks

-aleks