Skip to main content
Known Participant
May 28, 2024
Answered

1151: A conflict exists with definition count

  • May 28, 2024
  • 2 replies
  • 998 views

I have this error on my action script how to solve it?

 1151: A conflict exists with definition count in namespace internal.

var count:Number=0;
stage.addEventListener (Event.ENTER_FRAME,PuzzleLoop);
function PuzzleForLoop(e:Event):void
{

    This topic has been closed for replies.
    Correct answer kglad

    i just change the variable name to 'totalCount'


    good to hear (and time was supposed to be timeline)

     

    for others, that just confirms there's code in a another main timeline frame with the duplicate declaration.

    2 replies

    kglad
    Community Expert
    May 28, 2024

    or the same frame.

     

    1151: A conflict exists with definition xxxx in namespace internal.

    You have more than one of the following statements in the same scope:

    var xxxx:SomeClass;

    // and/or

    var xxxx:SomeClass = new SomeClass();

    To remedy, change all but the first  to:

    xxxx = new SomeClass();

    Known Participant
    May 29, 2024

    Okay thank you for the respond, i will changed it first.

    kglad
    Community Expert
    May 29, 2024

    you're welcome.

    JoãoCésar17023019
    Community Expert
    May 28, 2024

    Hi.

     

    I cannot say exactly what the issue is because this code is incomplete, but my best guess is that you have code declaring a variable called count in another frame of the same parent/timeline.

     

    Please double check and let us know.

     

    Regards,

    JC

    Known Participant
    May 29, 2024

    Okay later i will give full code. After i double checked

    kglad
    Community Expert
    May 29, 2024

    yes

     


    take a screenshot (or more than one, if needed) of the entire timeline with your code showing every layer and frame.