I was able to get the sim to run from the XML file as I'd planned, but it's definitely not pretty. First of all I have no pix. Tried finding pix of intubation on Google, but there just aren't that many I can use as dummy photos that might make sense. Might as well put pix of anything there.
The Flash file is only 3 frames, but there is a lot that goes into it as far as functionality. There are many things to consider. One is that not every page will look the same. Some have 2 choices you have to pick from, others have only one choice, still others may only be a "Continue" button with no real choice to make. To build this in only a few frames means that you have to take a few things and make if/else clauses out of them. For example, if the first choice is null (meaning no value is available), I had to make the radio button for that choice disappear, since there is no real choice to be made. Another might be what happens when you come to the end? How do you prevent it from looking like it needs another question answered? For that, I put the value "end" in the CHOICE1DESTINATION field in FileMaker. I then wrote a clause that says if the destination is equal to "end", then hide the Submit button, which would then prevent the sim from moving forward anymore.
It's very crude at this point, but I was able to navigate through the whole 15 scenes predictably by looking at my paper copies of the decision tree while clicking through the sim.
The next big hurdle I have is to somehow figure out how to code the Flash interface so tht the text for the title, description, and choices can be seen in their entirety and not overlap each other.
Comments (1)
Very cool, Pat. I can't wait until Thursday's MMDev meeting to see it in action!
Posted by Mark | May 30, 2007 7:32 AM
Posted on May 30, 2007 07:32