I need some help. Basically i'm trying to connect my Sandy3d project to a MySQL database. I understand actionscript cannot directly link to the database, so you use PHP to create a string which actionscript understands.
This part i'm alright with, but where i'm stuck is understanding how to perform a loop function to extract this data into my project within actionscript.
This is my code atm, which imports a model into Sandy. What I would like to do is modify the code so it pulls 'filename' from the PHP string then moves onto the next record with a loop.
I just can't get my head around how to go about doing this. Please help, thanks.
public function Example()
var parser:IParser = Parser.create("assets/main1.ASE",Parser.ASE );
var parser1:IParser = Parser.create("assets/main2.ASE",Parser.ASE );
var parser2:IParser = Parser.create("assets/models/ASE/media.ASE",Parser.ASE );
parserStack = new ParserStack();
parserStack.addEventListener(ParserStack.COMPLETE, parserComplete );