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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:05:15+00:00 2026-06-03T23:05:15+00:00

This is not necessarily specific to ActionScript 3 but I could not think off

  • 0

This is not necessarily specific to ActionScript 3 but I could not think off the top of my head how you would access an instance via string or even if that is possible.

What I have going on is a function in one scene being passed a String which in my case is the name of a particular instance of a movie clip. Is there a way to use that String to access that instance on that scene, IE being passed the string I could change the alpha of that instance which matches the name of the string passed.

Thank you

  • 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-03T23:05:16+00:00Added an answer on June 3, 2026 at 11:05 pm

    basically, it is possible to access all public instances of an object/a scene by doing the following:

    myMovieClip["myInstance"]
    

    This is equivalent to

    myMovieClip.myInstance
    

    So, when you pass a string to a function in order to access a particular instance of that scene, you could, for example, do the following:

    function myFunc(name:String, alpha:Number):void {
        myMovieClip[name].alpha = alpha;
    }
    

    Hope that helps!

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

Sidebar

Related Questions

I understand that this may not necessarily apply to just @properties, but they would
This question is not necessarily Couchbase 2.0 develop preview specific however I think it
I have looked for this in several places but not necessarily found the right
This is a question that many might not find it is necessary but to
This not a programming question but Most of the programmers using Eclipse should have
why would this not repeat when place in appDidFinishLaunching? self.ti = [NSTimer timerWithTimeInterval:10. target:self
It's likely that this is just a general Python Tkinter question, not necessarily a
First off; I am not necessarily looking for Delphi code, spit it out any
This is a slightly abstract question, for which I apologize. I am not necessarily
I would like to get View instance that is used to display specific Preference

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.