Hi, I've recently been trying my hand at Actionscript game programming. Especifically, I want to build random mazes and check whether they have a path from start to end. These mazes, I store them in their Maze class/instances.
Of course, this takes time. Not a lot, but it's not immediate either. Looks like Flash won't wait for the maze to be checked though, and continues with other instructions related to using the information from the Maze, which seems to give me a "Error #1009: Can't refer to a null object yadda yadda".
Am I right in my suspicions? If so, what can I do? First idea that pops to mind is an event that will be activated when the instance is fully initialized, and off otherwise. Is there anything like that in ActionScript 3.0?
Thanks in advance!
IronyGamesMember Since 30 Mar 2012
Offline Last Active Dec 11 2013 07:00 AM
- Group Members
- Active Posts 20
- Profile Views 1,067
- Submitted Links 0
- Member Title Member
- Age 22 years old
- Birthday December 5, 1991
- Website URL http://videogamestale.blogspot.com.es/