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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:06:13+00:00 2026-06-02T10:06:13+00:00

I have created a button name: menuButton and inside the button I have two

  • 0

I have created a button name:

menuButton

and inside the button I have two textboxes with following names;

name_mb

level_mb

I have created around 6 instances of this object/button. I’m trying to change the text of these textboxes for each these instances of button(each instance has different names).

This is how I’m trying to do it;

menu_One.level_mb.text = "hello";

menu_One; The name of instance

However, I get following error:

Symbol ‘menuButton’, Layer ‘Layer 1’, Frame 1 Warning: The instance
name ‘level_mb’ is declared on an object of type fl.text.TLFTextField
but there is a conflicting use of the instance name ‘level_mb’ on an
object of type flash.display.InteractiveObject.

Symbol ‘menuButton’, Layer ‘Layer 1’, Frame 1 Warning: The instance
name ‘name_mb’ is declared on an object of type fl.text.TLFTextField
but there is a conflicting use of the instance name ‘name_mb’ on an
object of type flash.display.InteractiveObject

.
Is this due to multiple instances of same object/button?

Alternatively I can create a new button for each of the buttons I need, and give it text manually. I would prefer to do it via code however, as I will have around 10 buttons, and in future if I need to add more, it will be much easier.

I can provide more code if needed.

  • 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-06-02T10:06:14+00:00Added an answer on June 2, 2026 at 10:06 am

    You may try using the strict AS3 syntax:

    menu_One.getChildByName("level_mb")
    

    And casting this as a TextField to access the text property:

    (menu_One.getChildByName("level_mb") as TextField).text = "hello";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created one dynamic button in my application and I call the following
I have created one html form with following fields: Name (Text Box) Email (Text
I have created button 2 below: <input id=Button1 type=button value=Stop onclick=alert('hello world');/> <input id=Button2
I have created a button CSS class that uses background images with different positions
I have created a button in my Android application & I tried to set
I have created a button. So when I click the button it gives me
I have created a button which I want to expand/contract. I found a way
I have a Main class and a HelloWorld class. I have created a button
I am new to iphone development. I have created a button in the view.
I have created my own button class called custom_btn. I created it on the

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.