In AS2/AS1, you used to be able to hack the prototype so all
instances used a different method at runtime.
mx.containers.Container.scrollChildren = mx.containers.Container.old;
mx.containers.Container.scrollChildren = function()
{
// your stuff here
};
Unfortunately, I think prototype is read-only in AS3.
Can't you just replace the Container class that is in the frameworks
directory with your own modified copy, compile a new SWC, and use
that one instead of the main one?
On Jan 29, 2007, at 2:29 AM, Paul Solomon wrote:
I have created a smooth scroll component that extends a Container
class where I have overridden the scrollChildren() method. I came into
a project late and the code base is rather large at this point. There
are many many places in the code that needs this new component
shoe-horned in.
I have been asked to see if I can provide a site-wide adjustment to
the scrolling functionality that will apply the smooth scrolling style
without manually replacing every instance of the code that needs to be
touched. I am pretty sure that there is not a way after investigating
the framework and common sense, but I thought that I would ask this
board anyway, is it possible? Is there a compiler setting?