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

The Archive Base Latest Questions

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

I’ve been trying to reference a Library symbol that is introduced in Frame 2

  • 0

I’ve been trying to reference a Library symbol that is introduced in Frame 2 by using it’s instance name, using timeline scripting only.

I am trying to make a colour picker MC symbol for multiple re-use. Firstly I drew a small button on the stage and converted to MC, called textColourPicker of type CPicker (the class used to represent this MC in the Library). Inside this MC I have a button symbol called pickerButton

In the first frame of textColourPicker MC, I placed the code:

stop();
pickerButton.addEventListener(MouseEvent.CLICK, doShowPicker);

function doShowPicker(e:MouseEvent):void
{
    gotoAndPlay(2);

}

In Frame 2 of the textColourPicker instance, a new MC appears with instance name pickerBox of type pickerBMP. The pickerBox is then scale tweened until Frame 14 at which point I have the code:

stop();
pickerBox.addEventListener(MouseEvent.MOUSE_OVER, cursorToColour);

Except I always get the error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at CPicker/frame14()[CPicker::frame14:10]

Here CPicker is referring to the Linkage name of the textColourPicker MC.

So textColourPicker is Instance of: myPicker, linkage name: CPicker

and pickerBox is instance of: pickerBMP, linkage name: pickerBMP (residing inside the textColourPicker MC.

Why is not allowing me to reference the pickerBox MC on Frame 14 of the textColourPicker?

This graphic of the textColourPicker timeline may help illustrate all this (note the two timeline scripting icons, first in Frame 1 last in Frame 14:

Timeline screengrab

  • 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-23T22:14:14+00:00Added an answer on May 23, 2026 at 10:14 pm

    I wrote a post for InsideRIA about doing exactly what you are trying to do. It is archived here:

    http://www.developria.com/2010/04/combining-the-timeline-with-oo.html

    It seems to me that your best bet is the getter/setter method, since you have a keyframe at the end where a new value will be inserted into the variable’s value.

    Example code for both methods is available here http://flexdiary.blogspot.com/2010/04/sample-code-for-oop-timeline-insideria.html

    HTH;

    Amy

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

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.