Thanks for the info guys.

-Paul

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>  
>  
>  
> For what it's worth, you don't have to compile a new SWC...if MXMLC sees
> a source file version and a SWC version of a component, it will prefer
> the source file version.
>  
> Ely.
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of JesterXL
> Sent: Sunday, January 28, 2007 11:46 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] site-wide adjustments - is it even possible?
> 
> 
> 
> 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
> < SPAN class="Apple-style-span" style="font-family: Georgia;font-size:
> 13px;">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?
>


Reply via email to