1 person found this helpful
the first error i see is the use of actionscript 3 on line 7 when the rest of your code is as2.
the next error i see is the line defining markerArr when i is undefined.
and, further into your code, you have a function markerPush() being repeatedly defined for no apparent reason.
i think you would do better to delete all the code and start over. you should consider planning this project to be displayed in one frame.
Gotcha on the undefined i. My thinking was a for loop would give the range I was pushing into the array, which is 8 items. Is the event listener the AS3 code you're mentioning? I thought that listeners like this were defined in AS2...
Deleting all the code and starting over isn't an option. This program is fully functional aside from this array. I'm not going to trash an entire project for a single bit of code that I've no experience with, and am having problems getting functional because it doesn't address the issue.
I'm not following your assertion of markerPush() being repeatedly defined as I'm trying to have the invis_Btn trigger the listener (apparently the AS3 code I need to fix?) which in turn triggers the array to add the items to the stage.
your one function is within a for-loop. why?
and what do you want your array to contain and what will you use the array for?