Rich quick followup, This link: http://flexcapacitor.googlecode.com/svn/trunk/examples/webview/src/views/URLView.mxml
really shows how you could read the file on an apple device. Android devices can not access the appDirectory files because they are apparently still zipped inside the .apk file. I used the following to access files copied into the appStorageDirectory on an android device:
var androidUrl:String = "file://" + File.applicationStorageDirectory.resolvePath(filePath).nativePath;
This was what I used on stageWebView component. Hopefully it will work directly in internal browser. Have not tried that approach yet.
Regards On 3/30/2012 8:41 AM, Margo Powell wrote:
Hi Rich, From one noob to another, check out this link on storing files locally: http://www.cultcreative.com/tutorials/11/13/2011/local-file-access-editing-for-android-and-ios/I referenced this tutorial to aid me in copying the files to a storage directory on a device. Hope this is what you are looking for.Then to load files in the stagewebview component, this is a simple example of how to do local vs remote links:http://flexcapacitor.googlecode.com/svn/trunk/examples/webview/src/views/URLView.mxml Regards Margo On 3/29/2012 11:03 AM, Richard Albrecht wrote:Hi, Surely someone knows the answer to this. Help a noob:) Rich ------------------------------------------------------------------------ *From: *"Richard Albrecht" <r...@ralbrecht.net> *To: *flexcoders@yahoogroups.com *Sent: *Tuesday, March 20, 2012 12:39:40 PM *Subject: *[flexcoders] Store HTML Files in Device Hi,Have an engineering app that displays a lot of information in html files in the native browser.I want to store the files in the app so if they don't have internet access they can still get to them.I can display on in the rectangle web view or what ever it's called, but then the user can't zoom etc, very limiting.So I decided to use the internal browser, works fine if the files on the web, but I can't figure out what the correct path would be to send to the browser,There must be a way to do this?? Thanks Rich-- Margo Powell Applications Analyst/MS Computer Science Nutrition in Medicine Project Nutrition Education for Practicing Physicians Initiative Department of Nutrition University of North Carolina at Chapel Hill 800 Eastowne Dr, Suite 100 Chapel Hill, NC 27514 919-408-3320 ext 30 margo_pow...@unc.edu www.nutritioninmedicine.org
-- Margo Powell Applications Analyst/MS Computer Science Nutrition in Medicine Project Nutrition Education for Practicing Physicians Initiative Department of Nutrition University of North Carolina at Chapel Hill 800 Eastowne Dr, Suite 100 Chapel Hill, NC 27514 919-408-3320 ext 30 margo_pow...@unc.edu www.nutritioninmedicine.org
<<attachment: mmpowell.vcf>>