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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:23:45+00:00 2026-06-11T08:23:45+00:00

I just started using flash so this might be a simple thing so please

  • 0

I just started using flash so this might be a simple thing so please be patient.

I’m doing a project were I have a map and you can click the places on the map and the info appears. I could manage to link every button_btn to every info_mc but that would take forever, so I tried to make a function that would read the buttons name and redirect to the info_mc itself. However since the name is being converted to string when I change from name_mc to name_info it is not redirecting. Here is the code.

    winterfell_info.visible = false;

    map.winterfell_btn.doubleclickEnabled = true;
    map.winterfell_btn.mouseChildren = doubleClickEnabled;
    map.winterfell_btn.addEventListener(MouseEvent.DOUBLE_CLICK, show_clicked);

    function show_clicked(e:MouseEvent):void{
         var get_name = e.currentTarget.name;
         var open_info_string = get_name.slice(0,-3) + "info";
         //I've tried some things here but nothing is working for me. 
         var open_info = stage.getChildByName(open_info_string);
         open_info.visible = true;      
    }

Any help would be very much appreciated, thank you.

And if you wondering yes its a map for Game of Thrones.

  • 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-11T08:23:46+00:00Added an answer on June 11, 2026 at 8:23 am

    Remove quotes around “open_info_string”, as a first measure, and change the capital S in that string to normal one “s”, because Actionscript is case sensitive.

    var open_info = stage.getChildByName(open_info_string);
    

    Then, if it wouldn’t work at once, insert a trace(open_info_string); before you try to reach the movie clip, to find out whether it was cropped correctly.

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

Sidebar

Related Questions

i just started using Flash builder 4 and i have a problem. As it
I have just started using django-cms so please forgive my newbieness. Every time i
I just started using Eclipse but already I have a small problem. At first
I just started using/learning Python and have some questions. I have a text file
I just started using the MVCContrib grid in a test project. I'm having a
Just started using Blueprint CSS and now playing with the grids but have a
I just started using Rails and am not sure what I'm not doing correctly.
Just started using this technique and am having strange results on the PC side.
Just started using Xcode 4.5 and I got this error in the console: Warning:
I'm just started doing 'hands-on' learning of Actionscript 3 using FlashDevelop. I've now managed

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.