Okay so this task needs to work like this:
-
Flash environment starts (as3 code base)
-
Flash receives data from xml
-
PHP tool inserts a dropdown menu of choices into flash environment.
-
Player selects from dropdown
-
PHP captures selections and writes to xml
So first of all, I dont want to do this another way, it has to be exactly like that. Now that having been said, i have accomplished the first two steps. Here is the extremely basic xml i am working with:
< LISTING HELMET=“1” TORSO=“2” PANTS=“1”/>
This stores 3 string id codes which flash loads up. Inside of flash i load those three values and use them to index movieclips to their correct frame. This is done.
So now i need to write a PHP tool that creates three dropboxes on the flash stage, each box should list red, blue and yellow. When the player makes a selection in the dropbox the PHP tool needs to alter the three xml entries to record the player choice.
As a bonus, as the player makes his choices the PHP tool would update the variables in flash so the images change without rebooting the flash environment.
Lastly this has to be complete by 3/4 2011 9pm or no job. Thanks for any help folks, but the most useful will be code examples with good explanations as i have little time left to read through entire lectures or other how PHP work tuts.