Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 763797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:37:13+00:00 2026-05-14T16:37:13+00:00

Hey Guys…need help. Working on a project and get this error on the Output

  • 0

Hey Guys…need help. Working on a project and get this error on the Output Log

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FlashSite_fla::MainTimeline/frame16()

Here’s every frame that is on, begins, or crosses frame 16

Layer Name: Top Menu (4 Button named Home_btn, Works_btn, Tech_btn, Contact_btn)
Code attached to frame:
stop();
Home_btn.addEventListener(MouseEvent.CLICK, home);
function home(event:MouseEvent):void {
gotoAndStop(16);
}
Works_btn.addEventListener(MouseEvent.CLICK, works);
function works(event:MouseEvent):void {
gotoAndStop(17);
}
Tech_btn.addEventListener(MouseEvent.CLICK, tech);
function tech(event:MouseEvent):void {
gotoAndStop(18);
}
Contacts_btn.addEventListener(MouseEvent.CLICK, contact);
function contact(event:MouseEvent):void {
gotoAndStop(19);
}
Layer Name: Investment Opp (button named Invest_btn)
Code attached to frame:
Invest_btn.addEventListener(MouseEvent.CLICK, invest);
function invest(event:MouseEvent):void {
var link:URLRequest = new URLRequest(‘#’);
navigateToURL(link);
}
Layer Name: MfgOpp (Button named Mfg_btn)
Code attached to frame:
Mfg_btn.addEventListener(MouseEvent.CLICK, mfg);
function mfg(event:MouseEvent):void {
var link:URLRequest = new URLRequest(‘#’);
navigateToURL(link);
}
Layer Name: MarketResearch (button name Own_btn)
Code attached to frame:
Own_btn.addEventListener(MouseEvent.CLICK, own);
function own(event:MouseEvent):void {
var link:URLRequest = new URLRequest(‘#’);
navigateToURL(link);
}
Layer Name: ActionScript
Code attached to frame:
import flash.events.MouseEvent;

What am I doing wrong?!?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:37:14+00:00Added an answer on May 14, 2026 at 4:37 pm

    not familiar to fash cs4 but as for prevois version
    imports where done in the same layer:
    move import flash.events.MouseEvent; to where Mfg_btn.addEventListener(MouseEvent.CLICK, mfg); is
    or just try all code in one layer, with 'import flash.events.MouseEvent;' beeing first

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey guys, i'm getting an exception on the following inner exception: {Value cannot be
Hey guys, I'm trying to get my head around LINQ and FP, so forgive
hey guys can you please help me again, i want my restaurant system to
Hey guys. I'm not much of a programmer, but still need to do some
Hey guys, first time using stackoverflow. can you guys help me debug? Heres the
Hey guys. I am trying to get the selected option in an each loop.
Hey guys, I've been bashing my head around for hours now, over this login
Hey guys i wrote a quick test. I want delete to call deleteMe which
Hey everyone, I'm using Virtual PC and working with a virtual hard disk (*.vhd)
Hey, I'm using Levenshteins algorithm to get distance between source and target string. also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.