Copy link to clipboard
Copied
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.
It looks like you used a 1 where a lower case L is intended (as in ldr - short for loader)
Copy link to clipboard
Copied
for starters: functions can not start with numbers.
rename all your functions and report back.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
You solved it. Thanks greatly for taking the time. Please see my reply to Ned for complete explanation.
Copy link to clipboard
Copied
It looks like you used a 1 where a lower case L is intended (as in ldr - short for loader)
Copy link to clipboard
Copied
You have an eagle eye, and I greatly appreciate it. I was reading the code off of a 10 inch Kindle, and the "l's look like "1"s. I would have torn my hair out over this; like forever. I'm very greatful.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now