?
Solved

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

Posted on 2008-11-03
3
Medium Priority
?
354 Views
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);
 
}
stop();
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

0
Comment
Question by:Mlo-Designs
2 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22873823
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.
0
 

Accepted Solution

by:
Mlo-Designs earned 0 total points
ID: 22881664
Problem solved! Scroll Bar plus text field need it to be in their own movie clip.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

750 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