- due to permissions and whatnot I found that the document had to be in a more public area. Copy it over to File.documentsPath and then whatever subpath you may want
- make sure that the application is included with the packaging process. You may need to go into properties>packaging>ios>native extensions and add it. I run on a MAC so that may make a slight difference in the packaging process. J On Fri, Feb 8, 2013 at 12:14 PM, Philippe Bossu <[email protected]> wrote: > Hello, > I am working on the same kind of project. > > We succeeded opening in IOS with StagedWebView and in Mac/PC with > file.openWithDefaultApplication. > > Under Android, we tried with the ANE mentioned by J. Campos but we are > facing some issues: > > - When running under android it says it does not find the file: > - Looking at code , can the launched activity find file in Flex > LocalStorage ? > - So I wonder if StageWebView approach could not be facing this issue > - We are not able to package IOS application as it says ANE is missing > > > Any ideas ? > Thanks. > > On Fri, Feb 8, 2013 at 7:36 AM, Angelo Lazzari <[email protected] > >wrote: > > > Thank you very much!!I will! > > > > Angelo > > > > Sent from my > > > > On Feb 8, 2013, at 0:59, Jonathan Campos <[email protected]> wrote: > > > > > As stated previously, on iOS the PDF will show in a stagewebview. > > > > > > On Android this doesn't work.... but I have an ANE that will do what > you > > > need: > > > https://github.com/jonbcampos/unitedmindset-ane-repo > > > > > > My logic for apps has been: > > > if !support > goto stagewebview and display > > > if supported > open with ane > > > > > > enjoy > > > > > > > > > On Thu, Feb 7, 2013 at 1:53 PM, Angelo Lazzari < > [email protected] > > >wrote: > > > > > >> I tried to write/read from the same place (applicationStorageDirectory > > >> or userDirectory) but the error that come up is nearly the same: > > >> > > >> Error #2044: Unhandled ErrorEvent:. text=Load error. > > >> However, i'll look up in internet tring to follow your advices! > > >> > > >> Thanks to everyone! > > >> Angelo > > >> > > >> On Thu, Feb 7, 2013 at 8:47 PM, Om <[email protected]> wrote: > > >> > > >>> It looks like you are writing the pdf to: > > >>> > > >>> File.userDirectory.resolvePath("testPageAngelo.pdf"); > > >>> > > >>> But trying to load it from: > > >>> > > >>> File.applicationStorageDirectory.resolvePath("testPageAngelo.pdf") > > >>> > > >>> This might be causing the error. > > >>> > > >>> Thanks, > > >>> Om > > >>> > > >>> On Thu, Feb 7, 2013 at 11:33 AM, Angelo Lazzari < > > >> [email protected] > > >>>> wrote: > > >>> > > >>>> I'm sorry. > > >>>> > > >>>> here it is > > >>>> > > >>>> http://pastelink.me/dl/41027d > > >>>> > > >>>> Thx > > >>>> Angelo > > >>>> > > >>>> > > >>>> On Thu, Feb 7, 2013 at 8:27 PM, Om <[email protected]> wrote: > > >>>> > > >>>>> The attachment didnt come through. Can you put it up somewhere > else > > >>> and > > >>>>> post the link here? > > >>>>> > > >>>>> Thanks, > > >>>>> Om > > >>>>> > > >>>>> On Thu, Feb 7, 2013 at 11:23 AM, Angelo Lazzari < > > >>>> [email protected] > > >>>>>> wrote: > > >>>>> > > >>>>>> Hi Om, > > >>>>>> i've created a simple Flex Mobile Project with the attached mxml. > > >>>>>> > > >>>>>> When i run it con the AIR simulator i obtain an > > >>>>>> > > >>>>>> Error #2044: Unhandled error:. text=PDFError > > >>>>>> That's the way i do it? Where i'm doing wrong? > > >>>>>> > > >>>>>> thanks, > > >>>>>> Angelo > > >>>>>> > > >>>>>> > > >>>>>> On Thu, Feb 7, 2013 at 8:14 PM, Om <[email protected]> wrote: > > >>>>>> > > >>>>>>>> > > >>>>>>>> I found a lot of sites/blog that speak about stagewebview and > > >>>>>>>> navigatetourl...etc etc but nothing seems to work properly. > > >>>>>>> > > >>>>>>> > > >>>>>>> Can you explain why this dint work? StageWebview should > > >>> theoretically > > >>>>>>> work. > > >>>>>>> > > >>>>>>> Thanks, > > >>>>>>> Om > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> -- > > >>>>>> Angelo Lazzari > > >>>>>> mobile: 0039 347 0090 452 > > >>>>>> mail: [email protected] > > >>>>>> > > >>>>>> > > >>>>>> ---------------------------- > > >>>>>> Verificate la corrispondenza del destinatario; in caso contrario > > >>>> vogliate > > >>>>>> notificare ciò al mittente e, consci della responsabilita'per > l'uso > > >>>>>> indebito, cancellare il messaggio e sue copie / Verify the > > >>>> correspondence > > >>>>>> of the addressee; otherwise, notify that to the sender and, > > >> conscious > > >>>> of > > >>>>>> the responsibility for the undue use, destroy the message and its > > >>>> copies. > > >>>>>> ---------------------------- > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> Angelo Lazzari > > >>>> mobile: 0039 347 0090 452 > > >>>> mail: [email protected] > > >>>> > > >>>> > > >>>> ---------------------------- > > >>>> Verificate la corrispondenza del destinatario; in caso contrario > > >> vogliate > > >>>> notificare ciò al mittente e, consci della responsabilita'per l'uso > > >>>> indebito, cancellare il messaggio e sue copie / Verify the > > >> correspondence > > >>>> of the addressee; otherwise, notify that to the sender and, > conscious > > >> of > > >>>> the responsibility for the undue use, destroy the message and its > > >> copies. > > >>>> ---------------------------- > > >> > > >> > > >> > > >> -- > > >> Angelo Lazzari > > >> mobile: 0039 347 0090 452 > > >> mail: [email protected] > > >> > > >> > > >> ---------------------------- > > >> Verificate la corrispondenza del destinatario; in caso contrario > > vogliate > > >> notificare ciò al mittente e, consci della responsabilita'per l'uso > > >> indebito, cancellare il messaggio e sue copie / Verify the > > correspondence > > >> of the addressee; otherwise, notify that to the sender and, conscious > of > > >> the responsibility for the undue use, destroy the message and its > > copies. > > >> ---------------------------- > > > > > > > > > > > > -- > > > Jonathan Campos > > > -- Jonathan Campos
