error on array declaration
What am I doing wrong? I don't see it.This array gives me an error message
1120:Access of undefined property square
var shape:Array =[square, rectangle, triangle];
Thank you for your help
What am I doing wrong? I don't see it.This array gives me an error message
1120:Access of undefined property square
var shape:Array =[square, rectangle, triangle];
Thank you for your help
If you answer all of the questions I asked we might be able to proceed. I suspect your answer to "How is it named "square"?" might get somewhere as not naming it properly (via the instance name field, assuming it is manually created) will produce the error you indicate.
If you are going to show code, make sure it is code relative to your problem and not code that you based your code on. Colin's code probably works for what it is supposed to be accomplishing. Whatever you did to try to modify it is what matters. In any case, all of that code is likely irrelevant to the error.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.