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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:25:13+00:00 2026-05-30T11:25:13+00:00

My flash actions layer contains the whole source code. My question is: why does

  • 0

My flash actions layer contains the whole source code.
My question is: why does the actions layer get executed with a fresh start (new variables) more then once?

the following code snippet demonstrates what i mean:

var notyetexecuted:Boolean=true;
function addNetStream(counter) {
if (notyetexecuted = true) {
    trace(notyetexecuted);

    notyetexecuted=false;
}
}

this always returns true which implies that the actions layer is executed again.
coming from java this doesnt make sense for me.

/edit: i forgot to mention that i have an interval function (still boolean should be false and addNetStream should do nothing)

function User():Void {
trace("Aktuelle Anzahl User: " + counter);
if (counter > prevcounter) {
    addNetStream(counter);
    counter++;
} else if (counter < prevcounter) {
}
}
myInterval = setInterval(this, "User", 3000);

could any1 explain why this is the case and how Flash executes layer?
cheers.

  • 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-30T11:25:14+00:00Added an answer on May 30, 2026 at 11:25 am

    It is because of your test on this line:

    if (notyetexecuted = true)
    

    It is setting notyetexectuted to true it should be:

    if (notyetexecuted == true)
    

    Note the double ==

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

Sidebar

Related Questions

I have 2 actions in a Flash file that I would like to test
I am very new to Action Script. I am using Flash Professional CS5 with
With actions such as :show and :edit , I can just http GET them.
When flash has keyboard focus, CTRL + T (new tab) and CTRL + N
I have a question regarding createEmptyMovieClip in AS2. I have a flash file separated
In my flash project I wanted to introduce small delays between actions performed by
i have a program made in flash who runs well, the actions on the
I am new to flash....Here's what I am trying to do. I working on
Why does my flash[:notice] appear permanently on the redirected page? - Rails 3.1 In
I find my edit actions in CakePHP controllers get messy pretty quickly, and I'd

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.