Skip to main content
May 27, 2013
Answered

Actionscript 3.0 Classroom in a Book tutorial code doesn't work

  • May 27, 2013
  • 2 replies
  • 873 views

The following code is taken from Actionscript 3.0 Classroom in a Book, chapter 5.  It only produces a flickering empty image on the stage.  Can anyone see why?  The supposed error messages don't seem to point to any errors.

This topic has been closed for replies.
Correct answer Ned Murphy

It looks like you used a 1 where a lower case L is intended (as in ldr - short for loader)

2 replies

May 27, 2013

Those numbers aren't in the malfunctioning Actions frame.  I only added them to the text file copied here so that I could better track the error messages to lines of script.  Thanks for your prompt reply.

Inspiring
May 28, 2013

I don`t refer to the Line numbers you put in there, but to the fundtion names.

A function/var cannot have a leading number.

so all the functions like

1dr1 are invalid

May 28, 2013

You solved it.  Thanks greatly for taking the time.  Please see my reply to Ned for complete explanation.

Inspiring
May 27, 2013

for starters: functions can not start with numbers.

rename all your functions and report back.