|
-
When you use
you're not really accessing the "shot" MC's at all. Try:
To lookup a property of a symbol with AS2 you need to use the array syntax ( "[]" ) described above. This finds an object based on its instance name. With your code, Flash is actually looking for a method called hitTest() on a string value ("shot"+i) but of course there is none so it fails silently.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|