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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:52:57+00:00 2026-06-03T18:52:57+00:00

I am not able to understand framelevel code and onenterframe code. I have two

  • 0

I am not able to understand framelevel code and onenterframe code. I have two frame that has action script code. I have the below code at keyframes frame1 and frame2. when it loops the frame trace message at frame level and onenterframe gets printed. What is the use of onenterframe code. code can be inserted at frame level. I thought that code at framelevel called once at the first time when the playhead enters the frame. When i delete the frame2 and only have frame1 only frame level trace code executed once. Not sure how frame level code executed once with one frame and if i have two frame frame level code executed multiple times.

**FRAME1**
    trace("frame level");


    this.onEnterFrame =function()
    {
        trace("calling onenterframe");
    }


**FRAME2**

trace(" second frame level");
this.onEnterFrame =function()
{
    trace("calling second onenterframe");
}
  • 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-03T18:52:59+00:00Added an answer on June 3, 2026 at 6:52 pm

    FRAME CODE

    stop();
    
    trace("frame level");
    
    this.onEnterFrame = function()
    {
        trace("calling onenterframe");
    }
    

    Running the above code will display what you expect i.e output calling onenterframe multiple times.

    Basically, since you do not use stop flash keeps looping over the frames and running the frame script.

    Using stop() ensures that flash runs the frame script once & stops.

    If you add an enter frame event, then that function will be called again and again.

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

Sidebar

Related Questions

I have a legacy script which I am not able to understand. The script
I am not able to understand the error with the code below which simply
In the code below I am not able to understand the way in which
below is a very simple code segment, but I am not able to understand
I'm not able to understand the following multi-dimensional code. Could someone please clarify me?
Below is a code which I am not understand. #include<stdio.h> int main(int argc, char
The below piece of code was written in struts-config file.but i am not able
i have a piece of code in C .But i am not able to
I have slight confusion in apple's documentation . I am not able to understand
I am not able to understand why Server.HtmlEncode is required? MSDN states that it

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.