PDA

View Full Version : Index movie frames like in databases?



gtg236s
June 27th, 2008, 05:56 PM
Does anyone know of being able to index flash movie frames like a mySQL database? Example I have a chess quiz with 1 question per 4 frames in my movie. With over 3000 frames in the movie when you randomly select a question performance suffers and its takes a second or two to appear. I thought if there was some kind of indexing in flash like mySQL it would help with performance.

If not I will just have to break up the questions into sections and load them based on the user's selection

glosrfc
June 29th, 2008, 12:35 AM
Ummm...they're already numerically indexed from frame 1 to the last frame in your movie. If performance is suffering then you need to rethink your strategy for getting your questions into your movie - such as using XML or a simple text file. You can then store the questions into an array and use a function to select them at random.

The alternative is as you've suggested - load separate movies as required.