I'm looking to build a flash application that acts as a "shell" around a flash game. I only need it to do some pretty basic functions: 1) Calls a PHP script I wrote to determine a few things (if user is logged in, what their userid is) 2) If the php file says the user is logged in, the "shell" should let the user play a .swf flash game that I wrote. And, after they are done playing my .swf game, I want the game to pass out a parameter (score). Again, the "shell" will call a prewritten php script to store the score. 3) If the php file says the user is NOT logged in, the "shell" should display a login box (username/password). My main challenges have been getting one flash application to call another. (ie: the shell app calling my game). Is this possible?
I was hoping to do it myself, but I can toss a few bucks to your paypal if this is something that you can make pretty easily.
I've been messing around with ActionScript's Loader class, but I'm not sure how to get the score out of the game. Can the "Shell" app grab variables from .swf files it calls? Or does the .swf file need to pass the variable out somehow?