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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:59:39+00:00 2026-06-01T20:59:39+00:00

I am trying to migrate as2 to as3 code. The normal solution to my

  • 0

I am trying to migrate as2 to as3 code. The normal solution to my problem involves using the first parameter of the createEmptyMovieClip() as the name of your movie clip. In several instances I have a dynamic value for this first parameter- so my question is How should I go about doing this?

//my code  
 function someFunction (){
    loader_mc = this.createEmptyMovieClip("text"+value, value);
    value++;
    //do stuff with it
}

//normal non-dynamic solution 
function someFunction (){
    var text:MovieClip = new MovieClip();
    addChild(text);
    //do stuff with it
}
  • 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-01T20:59:40+00:00Added an answer on June 1, 2026 at 8:59 pm

    In your question, you’re already saving a direct reference to the MovieClip. If that’s the only reference you need to do your work, then you really don’t need to give the MovieClip a name.

    If you do need the name, though, you can always assign the MovieClip a name after the fact:

    var myClip:MovieClip = new MovieClip();
    myClip.name = "text"+value;
    
    parent.addChild(myClip);
    

    This will let you use the getChildByName method:

    parent.getChildByName("text"+value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to migrate some code from using ElementTree to using lxml.etree and
I am trying to migrate from flex code written in flex 4/4.5 using mx
I am trying to migrate my existing code to using Enum and I run
I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS
I am trying to migrate existing code that uses XmlSerializer to protobuf-net due to
trying to migrate my existing asp.net website which is using mysql to Windows Azure
I'm trying to migrate CGI scripts to mod_perl using ModPerl::Registry . The scripts use
I'm trying to migrate my code from VSC++ 6 to VSC++ 2008 express edition
I'm trying to migrate a table from MySql to MSSQL using openquery but I
I'm trying to migrate from sql server 2000 to mysql by using DTS. That's

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.