Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 04, 2014 Jul 04, 2014

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

TOPICS
ActionScript
226
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 04, 2014 Jul 04, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines