# Advice on memory game

**URL:** <https://forum.kirupa.com/t/advice-on-memory-game/172579>\
**Category:** flash\
**Created:** [December 15, 2005, 8:10pm UTC](https://forum.kirupa.com/t/advice-on-memory-game/172579 "2005-12-15T20:10:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RysChwith](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RysChwith](https://forum.kirupa.com/u/RysChwith)\
**Post date:** [December 15, 2005, 8:10pm UTC](https://forum.kirupa.com/t/advice-on-memory-game/172579/1 "2005-12-15T20:10:21Z")

</div>

Okay, I’m working on creating a memory game for work, but I’m having a little trouble.

Specifically, I’m trying to work out the following sequence:

1. Select first tile. It has an animated flip to reveal the picture.
2. Select second tile. It also has the animated flip.
3. Wait about half a second.  
a. If the tiles match, they disappear and a sidebar slides in from the side.  
b. If the tiles do not match, they flip back over (again with the animation).

I’m really close, but I keep running into hitches if you click tiles too quickly, or other minor hiccoughs. I’m starting to think that my entire approach to the problem is flawed.

So my question is this: how would _you_work this sequence out? I don’t need any code, just the theory you’d use to keep everything running smoothly. I’d like to keep it object-oriented, and in AS 2.0, but I’m willing to try just about anything within those constraints. So how 'bout it?

Rys
