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

  • Home
  • SEARCH
  • 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 4117548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:50:55+00:00 2026-05-20T22:50:55+00:00

I have a situation where I have 2 files, File A and File B1

  • 0

I have a situation where I have 2 files, File A and File B1. I then have 20 other scripts including these files. File A contains some class that are instantiated in File B.

If a variable changes within a class in File A will it change for ALL 20 scripts?

I have a very weird issue where something is updating and when I put some debug code on each point where that variable is changed, it doesn’t trigger. That is the reason for the question as it seems like one of the other 19 files including these is causing a change …

To Clarify:

I am not including a file more than once. I have 20 different scripts running separately that include the SAME file (only do it once). This is so I only need to update 1 file when I make a change and all the other files use that source. If a public var is changed within a class in that ONE file, is it changed for all the 20 files.

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-05-20T22:50:55+00:00Added an answer on May 20, 2026 at 10:50 pm

    Yes.

    An included file is included in whatever scope it is included in.

    If you include a file in the topmost scope, then it has that scope.
    If you include a file via a function, then it’s scope is within that function.

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

Sidebar

Related Questions

I have a situation where my main SWF file loads many external SWF files.
I have an situation where i need to convert Doc file into PDF file.
Using this file as source, I have a situation where I need to retrieve
I am actually testing a file and I have a situation, where I need
So i have the following situation in my html file: <div id = imagePreview>
I have the following situation. My project has a main.scala.html file and a folder
My current situation is: I have to read a file and put the contents
My situation is simple. I have this in my program: File folder = new
First, the code: tab_textArea_file.addTab(docLabel, null, scrollPane_textArea, null); So the situation is that I have
Consider the following situation: We have two Localizable.string files, one in en.lproj and one

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.