Talk:Introduction to ActionScript 2.0/Properties and Methods

I'm not sure which version of Flash this is for, but I'm using Macromedia Flash Professional 8, and the example here doesn't work. For example, when I draw an apple, I'm not immediately given the option to assign it an instance name, as this tutorial indicates it should. Instead, I first need to convert it from an object to a symbol of type "button". Only then can I actually give it an instance name.

The next problem is the code for assigning the apple object a property called juiciness, and setting its value to 5. If I just use the code in the tutorial, and then try to run it with File>Publish Preview>Flash, it gives me the error "Statement must appear within on handler". Apparently within symbols you NEED to use an "on handler" to put in any code, while code without an "on handler" can only be used in the main movie's code. At least that's the way it is as of Macromedia Flash Professional 8. I think your tutorial should much more clearly state which version of Flash it's using.

Videogamer12345 (discuss • contribs) 22:31, 20 February 2022 (UTC)