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 6816961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:59:21+00:00 2026-05-26T20:59:21+00:00

been a while since i used flash… the minor problem im having is that,

  • 0

been a while since i used flash…

the minor problem im having is that, i have a button called ” btninviz ”
when this button is clicked, i want it to play a movieclip called ” bannerRoll “.

the banner consists of a simple animation of images going back n forth etc…now,
for testing purposes, i want it so that on click, it goes and stops on the last frame (651)

ive created a function for it like so:

btninviz.addEventListener(MouseEvent.CLICK,playBnnr);
function playBnnr(e:Event):void{
    bannerRoll.gotoAndStop(651);
    trace("working");   
}

when i click the button, i get this error which i dont know how to interpret:
*TypeError: Error #1009: Cannot access a property or method of a null object reference.
at jaro_fla::wholesect_2/playBnnr()[jaro_fla.wholesect_2::frame159:4]*

to make sure my function is working, i took out the bannerRoll part and just did a simple

btninviz.addEventListener(MouseEvent.CLICK,playBnnr);
function playBnnr(e:Event):void{
    //bannerRoll.gotoAndStop(651);
    gotoAndPlay(1);
    trace("working");
}

and it works. so i know the function is working.
the MC DOES exist…matter of fact to make 100% sure, i took the button code and put it on the same frame where the MC exists and still nothing.

any ideas?

thanks in advance.

  • 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-26T20:59:22+00:00Added an answer on May 26, 2026 at 8:59 pm

    Your call to bannerRoll is failling which means it is ether at another location or under a different name.

    As you just typed it’s instance name make sure you are on the same frame as it. (Have you given it an instance name? Not just a movieclip name).

    try trace(bannerRoll) if it traces undefined, you aren’t accessing the movieclip correctly.

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

Sidebar

Related Questions

Been a while since I used VB. I am having a problem running an
It's been a while since I last used T4 and this is probably a
Been a while since I've used C++. Can I do something like this?: for
It's been a while since I used SQL, and I'm having trouble coming up
It has been a while since I have used regular expressions and I'm hoping
It's been a while since I last used Eclipse. I used to love this
It's been a while since I used GTK+, and the last time I did
It's been a while since I've used make , so bear with me... I've
It's been quite a while since I last used D Programming Language , and
Been a while since I've dealt with ASP.NET and this is the first time

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.