I'm creating a physics based project with AS3 that will allow the user to draw diagrams of statics of a particle. There's gonna be a particle on the screen and they can add forces to the particle that will act on it. They can click and move the particle and forces around, and the system will calculate what will happen to everything else for the particle to still be static. They can choose to hide certain aspects, such as particles and particle weight.
A diagram may kinda look like this
As you can see in that diagram the particle and it's weight are hidden, and the forces P and Q are examples of forces that the user can add to the diagram. The system will be able to calculate the value of R and X and this data will be art of the diagram.
I've probably said too much irrelevant that you may or may not understand but anyway my problem is; I want my system to make and calculate these kind of diagrams, and save them on a database. Then someone else would be able to come open up this application on another computer and load up the diagram. The database is going to be stored on a shared network so (hopefully) I don't think I'll have to be worried about any network integration into my software.
I'm not exactly sure how to do this as I'm still very much a noob at the moment. Initially I wanted to create a Flash application that would have the database stored internally into the application, rather than in a separate database file/folder. This probably isn't possible, but I wanted to do it because I'm not currently aware of any file formats that would be compatible with storing these diagrams onto. After some research XML looks promising but I'm not completely sure of it's capabilities and how I would make it work.
I've looked around on here to find some sort of solution but I haven't really found much. I've read that I'd be better off creating my project in AIR rather than in Flash as a .swf, as AIR is much more compatible when it comes to databases but to my knowledge that is only for SQL. If there is a way to convert and store the diagrams as XML files then that would be fantastic and make my life simpler. These diagrams won't really be used with any other applications except for flash, so maybe FXG files could also work.
Thank you for reading. I do sincerely hope everything I've written is comprehensible, and if not, could you please ask me to specify what places you need more information on.
No comments:
Post a Comment