The keyword "this" can't be used in static methods

user2961354

I'm new in Flash programming.

I'm trying to rebuild my app structure with external classes.

In this process, I copied and pasted a block of my code that contains a for loop in an external class but I've got an error:

Impossibile to use the "this" keyword in static methods.

How can I convert my code to make it working?

Thanks in advance!

andygoestohollywood

Convert your code by not using this inside your static function

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why can't Java generic be used for static methods?

From Dev

Why the "var" keyword can't be used with the comma operator?

From Dev

Why doesn't "this" keyword work with static methods in a class in my code below?

From Dev

PHP static keyword used with new in building an object

From Dev

Can a subquery be used with the VALUES keyword?

From Dev

Can a subquery be used with the VALUES keyword?

From Dev

Can the 'new' keyword be used on a trait?

From Dev

Why can't we add static methods to enums?

From Dev

What is the reason you can't use static methods/variables in a class

From Dev

If static methods can't be overridden, how its working here (For Java)?

From Dev

Laravel 5.0 Session can't use static methods

From Dev

Why local classes in Java can`t have static methods?

From Dev

Why local classes in Java can`t have static methods?

From Dev

Swift: Why the non-static methods can't call static variables and constant (static let) without dynamicType?

From Dev

Swift: Why the non-static methods can't call static variables and constant (static let) without dynamicType?

From Dev

Why can't constexpr member used for static_assert?

From Dev

What are static methods? How and when are they used?

From Dev

Can static methods in javascript call non static

From Dev

Can miniprofiler be used on a static page?

From Dev

SyntaxError: keyword can't be an expression

From Dev

SyntaxError: keyword can't be an expression

From Dev

Eclipse: Can't watch local variables of static methods in a jar file class

From Dev

Eclipse: Can't watch local variables of static methods in a jar file class

From Java

What is the use of "static" keyword if "let" keyword used to define constants/immutables in swift?

From Dev

Can an interface be implemented using static methods?

From Dev

Can static methods be called as a public method?

From Dev

Can derived classes have static get methods?

From Dev

Can a singleton in spring have static methods?

From Dev

Why is it that static methods can access private data?

Related Related

  1. 1

    Why can't Java generic be used for static methods?

  2. 2

    Why the "var" keyword can't be used with the comma operator?

  3. 3

    Why doesn't "this" keyword work with static methods in a class in my code below?

  4. 4

    PHP static keyword used with new in building an object

  5. 5

    Can a subquery be used with the VALUES keyword?

  6. 6

    Can a subquery be used with the VALUES keyword?

  7. 7

    Can the 'new' keyword be used on a trait?

  8. 8

    Why can't we add static methods to enums?

  9. 9

    What is the reason you can't use static methods/variables in a class

  10. 10

    If static methods can't be overridden, how its working here (For Java)?

  11. 11

    Laravel 5.0 Session can't use static methods

  12. 12

    Why local classes in Java can`t have static methods?

  13. 13

    Why local classes in Java can`t have static methods?

  14. 14

    Swift: Why the non-static methods can't call static variables and constant (static let) without dynamicType?

  15. 15

    Swift: Why the non-static methods can't call static variables and constant (static let) without dynamicType?

  16. 16

    Why can't constexpr member used for static_assert?

  17. 17

    What are static methods? How and when are they used?

  18. 18

    Can static methods in javascript call non static

  19. 19

    Can miniprofiler be used on a static page?

  20. 20

    SyntaxError: keyword can't be an expression

  21. 21

    SyntaxError: keyword can't be an expression

  22. 22

    Eclipse: Can't watch local variables of static methods in a jar file class

  23. 23

    Eclipse: Can't watch local variables of static methods in a jar file class

  24. 24

    What is the use of "static" keyword if "let" keyword used to define constants/immutables in swift?

  25. 25

    Can an interface be implemented using static methods?

  26. 26

    Can static methods be called as a public method?

  27. 27

    Can derived classes have static get methods?

  28. 28

    Can a singleton in spring have static methods?

  29. 29

    Why is it that static methods can access private data?

HotTag

Archive