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

  • SEARCH
  • Home
  • 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 4006840
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:33:44+00:00 2026-05-20T08:33:44+00:00

I am working in Flash CS4 with AS3. I have a TextPage.fla file that

  • 0

I am working in Flash CS4 with AS3.

I have a TextPage.fla file that contains a dynamic text field (name: PageTitle) as an instance on the stage.
In the document class (TextPage) I set the text of PageTitle according to some XML.
This all works fine.

I have another fla file, SpecialTextPage.fla, and that also has the PageTitle dynamic text field on the stage.

I now try to have the SpecialTextPage document class inherit from Textpage:

public class SpecialTextPage extends TextPage
{
...
}

but I get a “1120: Access of undefined property PageTitle.” error when trying to publish SpecialTextPage.
The error location is given as TextPage.as

As a workaround I can just copy the whole TextPage.as file and add in the extra things I need in SpecialTextPage.as but I’d obviously prefer it if I could just extend it.

I got the feeling I am not quite understanding the relationship between flash’s objects on the stage and the document class.

Can someone help?

  • 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-20T08:33:45+00:00Added an answer on May 20, 2026 at 8:33 am

    The way I got around the problem was to disable declaring stage instances automatically.
    (Publish Settings –> Flash Tab –> Uncheck ‘Automatically declare stage instances’)

    I then needed to declare pageTitle on my TextPage class as a public field:

    public class TextPage extends MovieClip
    {
        public var pageTitle:TextField;
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an FLA done in Flash 10, and some AS3 code that manipulates
We're working on a Flash CS4 project where the main .fla file has ballooned
I have an Actionscript project that I was building using Flash CS4. I embedded
So I have a working Flash player using Cloudfront, AS3, NetConnection & NetStream. Works
I have been working on Flash AS3 project. I am designing a 3D system.
In Flash CS4, I've got a project that's working with a lot of XML.
I have an AIR project that I was working on Flash Builder 4.5 which
I have a fully working flash application, made in as3. Now i dynamicly added
I'm working on a large Flash CS4 project with multiple swfs and want to
I have a Flash developer I'm working with. This person is building a tool

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.