Page 2 of 2

Re: web page in scrolling text field

Posted: Tue Sep 09, 2014 10:44 am
by Appy777
Sorry, I am on windows. I have an android tablet connected by USB, in debugging mode.

Re: web page in scrolling text field

Posted: Tue Sep 09, 2014 7:47 pm
by Simon
Hi Prue,
Yes, I'm on Windows (7) as well with a Kindle Fire connected via USB.
I see the Fire comes with a native pdf reader, do you have one installed?

The code in the stack I posted is not really finished, put this into the field script;

Code: Select all

on mouseUp
   --Check if the file is there
   if there is not a file (specialFolderPath("documents") & "/" & the selectedText of me) then
      --Copy the file from the engine to the documents folder
      put url ("binfile:" & specialFolderPath("engine") & "/" & the selectedText of me) into url("binfile:" & specialFolderPath("documents") & "/" & the selectedText of me)
      launch url ("file://" & specialFolderPath("documents") & "/" & the selectedText of me)
   else -- just launch the document
      --Mobile didn't like trying to run the video from the engine folder
      launch url ("file://" & specialFolderPath("documents") & "/" & the selectedText of me)
   end if
end mouseUp
Still not clear why you are unable to view a jpg, maybe try a smaller file?

Simon