Error #1009: Cannot access a property or method of a null object reference. at FtScrollBar/checkSize() at FtScrollBar/LwJIyBI91212G2rSD7M351()

Posted on 2008-11-03
Last Modified: 2013-11-11
I need to figure this out I am not that nw to flash but fairly new in action script, I basically got this code from a forum so is not that I actually understand it that much. Hopefully is in the code and not in the scroll bar component am using.

I am attaching my files.
1. Pelicula_page.sfw is the file I need to fix, problem seems to be on scene 3, soon it can also be on scene 2 I just have not added the scroll bar component there yet.
2. The other folder is for you to install the component on your machine other wise you wont be able to see my scroll bar. Note: Change the following files extension from FtScrollBarAS3.txt to FtScrollBarAS3.mxp and install, pelicula_page.txt to pelicula_page.fla, ScrollBarAssets_1.txt to ScrollBarAssets_1.fla, ScrollBarAssets_2.txt to ScrollBarAssets_2.fla, sample.txt to sample.swf and sample.jpg to sample.fla.

You probably need just these 2 files only FtScrollBarAS3.txt to FtScrollBarAS3.mxp and install, pelicula_page.txt to pelicula_page.fla, the rest are scroll bar samples.

Problem happens once you click on the sub buttons called Edmundo Rodriguez ect.. and try to go back to example Luis H. Collazo, scroll bar stops working. It works the first time clicked but not the second time clicked.

The rest of the content is not finish yet but all buttons under the equipo de produccion ( production team bios) will have small bios that will required bios.

I use this component because I did not know how to do a scroll bar that will scroll a movie clip like the one I did that used many fonts and a picture at the same time.

This is a movie website am working on, and is due Friday for first try.
Any Help will be appreciated.
sinopsis_btn1.addEventListener(MouseEvent.MOUSE_DOWN, sinopsis_2Handler);

function sinopsis_2Handler(event:MouseEvent):void {


gotoAndPlay(1, Scene 13);




elenco_btn.addEventListener(MouseEvent.MOUSE_DOWN, elenco_2Handler);

function elenco_2Handler(event:MouseEvent):void {


gotoAndPlay(1, Scene 23);




edmundo_btn.addEventListener(MouseEvent.MOUSE_DOWN, edmundo_1Handler);

function edmundo_1Handler(event:MouseEvent):void {


gotoAndPlay(3, Scene 33);




luis_btn.addEventListener(MouseEvent.MOUSE_DOWN, luis_1Handler);

function luis_1Handler(event:MouseEvent):void {


gotoAndPlay(1, Scene 33);




mayra_btn.addEventListener(MouseEvent.MOUSE_DOWN, mayra_1Handler);

function mayra_1Handler(event:MouseEvent):void {


gotoAndPlay(4, Scene 33);




eric_btn.addEventListener(MouseEvent.MOUSE_DOWN, eric_1Handler);

function eric_1Handler(event:MouseEvent):void {


gotoAndPlay(5, Scene 33);




ivan_btn.addEventListener(MouseEvent.MOUSE_DOWN, ivan_1Handler);

function ivan_1Handler(event:MouseEvent):void {


gotoAndPlay(6, Scene 33);




jadit_btn.addEventListener(MouseEvent.MOUSE_DOWN, jadit_1Handler);

function jadit_1Handler(event:MouseEvent):void {


gotoAndPlay(7, Scene 33);




agustin_btn.addEventListener(MouseEvent.MOUSE_DOWN, agustin_1Handler);

function agustin_1Handler(event:MouseEvent):void {


gotoAndPlay(8, Scene 33);




sophie_btn.addEventListener(MouseEvent.MOUSE_DOWN, sophie_1Handler);

function sophie_1Handler(event:MouseEvent):void {


gotoAndPlay(9, Scene 33);




carola_btn.addEventListener(MouseEvent.MOUSE_DOWN, carola_1Handler);

function carola_1Handler(event:MouseEvent):void {


gotoAndPlay(10, Scene 33);



Open in new window

Question by:Mlo-Designs
    LVL 39

    Expert Comment

    can i make a suggestion. before you even start delving into AS3. change your file.
    dont' use scenes.
    scenes more often than not result in odd things happening.

    Accepted Solution

    Problem solved! Scroll Bar plus text field need it to be in their own movie clip.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now