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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:26:09+00:00 2026-06-01T06:26:09+00:00

I am a new to Action Script, so I am not sure if my

  • 0

I am a new to Action Script, so I am not sure if my question is meaningless. But, please try to give some suggestion :-).

Currently, I have a requirement need to get the full resource path in runtime, IF POSSIBLE.

Here is an example: I have a action script and using a MovieClip resource. Now, I have a action script variable ctrlVar that is pointing to a child control , whose id is, for example, contorl1. And the real path I can find from fla file should be, for example, parent1.parent2.parent3.control1. And every parentX is a id ( not a type ).

I want to know, if it is possible, how can I generate the parent1.parent2.parent3.control1 from ctrlVar in runtime?

Thanks.

  • 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-01T06:26:11+00:00Added an answer on June 1, 2026 at 6:26 am

    I’m not sure I understand your question fully, but maybe this will help:

    function locationOf(obj:DisplayObject):String {
        var loc:String;
        loop:
        while(obj.parent) {
            loc ? loc = "." + loc : loc = "";
            loc = obj.name + loc;
            try {
                obj = obj.parent;
            } catch(e:Error) {
                return loc;
            }
        }
    
        return loc;
    }
    

    That will let you know the dot-path of the object you’re currently running code on.

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

Sidebar

Related Questions

I have the following code in action script 3: async.addResponder(new Responder(result, defaultFaultHandler)); result is
I am not sure if I formulated the question right, but still ... I
New question, but really close to need to refresh page in jquery mobile .
I know this question has been asked before but the solutions did not work
I'm not sure if my question is related to this one or not. IE9
I have an IE bug that I'm not sure how to fix. Using jQuery
i am trying to display a jquery popup after a fileupload action? not sure
I'm new to C++, and have experience with other programmas languages, but I have
Not sure if my title accurately describes what I'm trying to do, but basically
I am new to ActionScript so excuse me if this is a stupid question.

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.