Apologies, I've been doing some research on this and finding it hard to get a 
good idea of the approach I should take.
So I thought I'd throw it over to all the bright and knowledgeable people here 
and see if anyone has any ideas or experience.

The situation is this : I have an application that I deploy in both AIR and in 
flex on a webserver, it relies heavily on access to a sqlite database.
The code is 95% identical on both, the only real difference being the database 
access, which is abstracted into 2 classes (sharing a common interface).
In AIR, I compile in the one that accesses a local db, for web deployment I use 
the one that talks to the database via remoting.
Same interface for both, for each method I pass in a callback function , plus 
any needed parameters.
It works well.

This is a 3d anatomy app that basically displays images and text, with 
navigation controls.

I was asked to do a "cut down" version that just displayed the images by 
themselves for deployment on our web site,
which was easy enough, I just stripped out the controls/text and gave it a 
simple External Interface to specify which pictures to display via javascript.

Again, very successful, everyone loves it. Perhaps too much!
Because now I've been asked to do an AIR version of the "cut down" web project 
such that we can deploy an offline version on DVD.

It's going to save me some much to reuse all the existing html and javascript, 
preferably as unaltered as is possible.

I'm hoping just add it to an html control, but what I can't work out is how to 
*easily* (ha!) get access to my database (the remoting option being out of the 
question since it's offline).

I can use my normal AIR local database class, but how do I get the "cut down" 
viewer (that will be a swf file embedded in the html ) to talk to it?

I'm hoping there is a fairly straightforward way to do this, perhaps 
localconnection? I'd rather not do a heap of "bridging" javascript functions if 
I can help it.

Maybe it's a silly idea in the first place?
I could take the content out of the html files instead, and do the navigation 
element in flex, displaying it alongside the picture view.
This would avoid the communication issue but could be pretty tedious on a 
fairly large project (especially when everything already works on the website).

Any thoughts or advice most welcome!

many thanks,

Jim.

______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
______________________________________________________________________

Reply via email to