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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:16:11+00:00 2026-05-28T17:16:11+00:00

What is the difference between calling exampleFunction() and exampleFunction.call() ? There is a feature

  • 0

What is the difference between calling exampleFunction() and exampleFunction.call() ?
There is a feature on Actionscript that allows you to use functions through the ‘call’ method. For example, to use the ‘test’ function below, I could write test() and test.call()

function test():void {
 trace('function was called')
}

What is the difference?

  • 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-28T17:16:12+00:00Added an answer on May 28, 2026 at 5:16 pm

    As with ECMAScript (from which AS is derived) it allows specifying the “this” context via the first parameter.

    See the Function.call documentation. Note the remarks about functions vs. methods – or “bound functions” – and the examples.

    That is, given:

    function f ():* { return this; }
    var x:Object = {f: f};
    

    Then:

    Both f.call(x) and x.f() evaluate to x while f() does not as it has a different “this” (it evaluates to Global instead).

    If f.call() (no params) is used then “this” will be NaN while f(), as per above, has Global as “this”. Try using trace(this) in the test code as it will yield more useful contextual information.

    Happy coding.

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

Sidebar

Related Questions

Is there any difference between calling this.method() and method() (including performance difference)?
Is there any difference between calling len([1,2,3]) or [1,2,3].__len__() ? If there is no
In python, is there a difference between calling clear() and assigning {} to a
Is there any difference between calling event.stopImmediatePropagation() and return false inside an event handler
Is there a difference between using one method over the other. You can either
Is there any difference between calling frame.Navigate and setting frame.Source = new MyPage()? Is
What is the difference between calling boost::asio::ip::tcp::socket 's read_some / write_some member functions and
I would like to know if there is any difference between calling [super viewDidUnload]
In actionscript 3 (as3) What is the difference between calling stage.width and stage.stageWidth This
What's the exact difference between the two? // When calling this method with GetByType<MyClass>()

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.