A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [

  1. #1
    Hia, tricky one here and cant find any reference to it anywhere online.

    Just used the ftoolapp.exe method to open a local PDF on windows machines, brilliant- but now need the equivelant for the macs like yesterday-

    anyone know of a sloution to opening a local pdf thru flash on a mac??

    cheers
    jon
    __________________
    jonster.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    You need to use applescript.. don't know of tutorial.. but you could try a search here.. google or usenet..
    http://board.flashkit.com/board/search.php
    http://google.com
    http://groups.google.com/groups?hl=e...cromedia.flash

  3. #3

    got it

    thanks master,
    found it and got it- for anyone else out there here's how it's done:

    this is for a local presentation being run from a cd. to get this to work locally you'll need to create a disk image (using shrinkwrap or Toast) containing all your files (SWF/projector, applet and PDF)

    use the fs command on your button as follows to call an applescript from flash:
    on (release) {
    fscommand ("exec", "name_of_your_applet");
    }

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    143
    I wasn`t us lucky as you. Didn`t find one. Please share that applescript.

    Thanks.

  5. #5

    the rest of the solution

    sorry the message only appeared in half of the full answer:

    here's the applescript to call from Flash:

    tell application "Finder"
    activate
    select file "your-file.pdf" of disk "Your Disk"
    open selection
    end tell

    Your-file.pdf and applescript must be in the root with your flash files and "Your Disk" should be the name of the root volume, (eg CD) created as a disk image.

    hope this helps, mail me with any Q's....

    jonnywab
    jon@dotcomms.net

  6. #6
    Senior Member
    Join Date
    Aug 2001
    Posts
    218
    You can also open them from the fs command, you need something like this.
    Fs Command(exec,"Macintosh HD:Folder:filename")
    I prefer this method because you use no extrenal files, just remember to keep the spaces in the path names and use : instead of \ like you use in windows

  7. #7
    Hi jonnywab...it does not hurt to tell here where you found the original information/solution, don't you think... : )

    (because there i wrote the full and complete explanations for flash5 and flash MX)

    and ci-berpages...your solution just works on hd's, not on cds, and just with apps, not with files


    applescripts

    more


    Flash Rules!!!

  8. #8
    Senior Member
    Join Date
    Sep 2002
    Posts
    109
    you can create your own applescript by opening the applescript editor and "recording" your movements - much like actions in Photoshop. You can then take that and toy with it to suit your needs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center