Error #1009 - Help me

Hey guys, I have a button that calls the following code which sends the playhead to the next frame and tells the scrollbars to work properly. However, I keep getting this Error #1009 saying its a null object im trying to call…I know the object is there, it works on the first frame (before you click the button below to go to the next frame), it just does not register before flash sends off all these commands.

I tried putting all of the code on the frame that it jumps to, but I cant get the code to work there because it calls things from the package that it cant reach.

Im so lost, please, any ideas would be so great. thanks!

[LEFT]protected [COLOR=#993300]function[/COLOR] rightClick[COLOR=#000000]([/COLOR][COLOR=#993300]e[/COLOR]:MouseEvent[COLOR=#000000])[/COLOR]:[COLOR=#993300]void[/COLOR] 
        [COLOR=#000000]{[/COLOR]
            
            holder_mc.[COLOR=#993300]gotoAndStop[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000])[/COLOR];
            
            holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver1_mc[/COLOR].[COLOR=#993300]visible[/COLOR] = [COLOR=#993300]false[/COLOR];
            holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver2_mc[/COLOR].[COLOR=#993300]visible[/COLOR] = [COLOR=#993300]false[/COLOR];
            holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#993300]visible[/COLOR] = [COLOR=#993300]false[/COLOR];
_scrollbar2 = [COLOR=#993300]new[/COLOR] CustomScrollBar[COLOR=#000000]([/COLOR]holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]alpha_mc[/COLOR].[COLOR=#000000]txt1_mc[/COLOR], holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]alpha_mc[/COLOR].[COLOR=#000000]mask_mc[/COLOR], holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]scrub_mc[/COLOR][COLOR=#000000])[/COLOR];
            _scrollbar2.[COLOR=#000000]scrubBounds[/COLOR] = [COLOR=#993300]new[/COLOR] Rectangle[COLOR=#000000]([/COLOR]holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]scrub_mc[/COLOR].[COLOR=#000000]x[/COLOR], holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]scrub_mc[/COLOR].[COLOR=#000000]y[/COLOR], [COLOR=#000000]0[/COLOR], holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]down_btn[/COLOR].[COLOR=#000000]y[/COLOR] - holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]scrub_mc[/COLOR].[COLOR=#000000]y[/COLOR] - holder_mc.[COLOR=#000000]links_mc[/COLOR].[COLOR=#000000]rollOver3_mc[/COLOR].[COLOR=#000000]scrub_mc[/COLOR].[COLOR=#993300]height[/COLOR] - [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR];
            _scrollbar2.[COLOR=#000000]showGear[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
                 [COLOR=#000000]}

[/COLOR] [/LEFT]