[Flashcoders] Garbage Collection on Scrollbar class

2009-09-04 Thread Zuriel
Here is a page of my GAIA framework code. I am loading a scrollbar var ffxscroller:AxisScroller; but I am trying to destroy it. The documentation for destroying the scrollbar is ffxscroller.destroy(); but if you look at my code below, ffxscroller is not available when I try and run it in

Re: [Flashcoders] Garbage Collection on Scrollbar class

2009-09-04 Thread Juan Pablo Califano
Hi, You're declaring the variable ffxscroller inside the function transitionIn. This makes the variable local, meaning it will only be available when the method is executing. When the method returns, you'll lose the reference to the scroller. If you want to access the object outside the function,