Question
Error 1120 Access of undefined property....
I recently completed an Adobe video tutorial that showed me
how to create a simple application using components:
simple
application
I'm trying to learn about document classes and how to use external .as files to control the movie, and so I figured this might be a good example to try using. However, I keep getting Compiler error 1120 on lines 11–4 (Access of undefined property dp); 16 (Access of undefined property myList and dp); 18 (Access of undefined property myList and announceSelect); 19 (Access of undefined property myButton and eatItem); and 22, 25, 26 (Access of undefined property myList). I looked at other 1120 problems on the forum and it seems like most of them are labeling-related, and from what I can tell, my labels are okay. Any help would be much appreciated!
The flash file consists of a list with the name myList and a button with the name myButton. The code from the .as file is as follows:
I'm trying to learn about document classes and how to use external .as files to control the movie, and so I figured this might be a good example to try using. However, I keep getting Compiler error 1120 on lines 11–4 (Access of undefined property dp); 16 (Access of undefined property myList and dp); 18 (Access of undefined property myList and announceSelect); 19 (Access of undefined property myButton and eatItem); and 22, 25, 26 (Access of undefined property myList). I looked at other 1120 problems on the forum and it seems like most of them are labeling-related, and from what I can tell, my labels are okay. Any help would be much appreciated!
The flash file consists of a list with the name myList and a button with the name myButton. The code from the .as file is as follows: