Skip to main content
Participant
July 4, 2014
Question

i have received this error message - 1078: Label must be a simple identifier

  • July 4, 2014
  • 1 reply
  • 244 views

function movePipesandLines(event:Event):void {

  pipe1.x = pipe1:x - 5;

  pipe2.x = pipe2:x - 5;

  pipe3.x = pipe3:x - 5;

  pipe4.x = pipe4:x - 5;

}

stage.addEventListener(Event.ENTER_FRAME, movePipesandLines);

// if you have any suggestions please let me know

thanx

This topic has been closed for replies.

1 reply

robdillon
Participating Frequently
July 4, 2014

It looks like your changes to pipe1.x etc have a typo in the second declaration. It reads pipe1.x = pipe":"1.x - 5. You have a colon instead of a period.