5 Replies Latest reply on Jul 1, 2010 11:06 AM by Mike Blaustein

    .dir (created on Win) with FileXtra4, doesn't work on Mac

    nikdak

      Hello.

      I created (on a Windows PC) a Director Project file for my MSc dissertation, using xtra "Filextra4".

      I included some PDF files and when the user clicks on this file, it should open. This function works fine on Windows, but it does not on Macintosh.
      I have this code:

       

      property pdf_name


      on beginSprite me

        Initialize me


      end beginSprite


      on Initialize me



      end Initialize


      on mouseUp me

        fxObj = xtra("FileXtra4").new()

        if the platForm contains "win" then

          pdf_path=the moviepath &"material\"& pdf_name

        else

          pdf_path=the moviepath &"material:"& pdf_name

        end if

        fxopen=fxObj.fx_FileOpenDocument(pdf_path)

        fxObj=0

      end


      on getPropertyDescriptionList me


        return \

      [ \

      #pdf_name: \

      [ \

        #comment: "Name of the file to open:", \

        #format:  #string, \

        #default: "___.pdf" \

      ] \

      ]

      end getPropertyDescriptionList

       

       

      and when I try to open a PDF file on a Mac, this message appears:

      Director Player Error.
      Script Error. Continue?
      When I try to open a PDF file into Director on Mac, this message appears:
      Script error: Object expected
      fxObj = xtra("FileXtra4").new()

      I have also tried all these steps:
      1) I extracted the files "FileXtra4.x32", "FileXtra" and "FileXtra (carbon)" on a folder named "Xtras" which was in the same folder with the .app file.
      2) I put all these files into folder C:\Program Files\Adobe\Adobe Director 11\Configuration\Xtras\FileXtra4, but also into C:\Program Files\Adobe\Adobe Director 11\Configuration\Cross Platform Resources\Macintosh\Xtras
      3) I renamed the "Filextra4" file for Mac into FileXtra4.data, FileXtra4.rsrc and FileXtra4.cpio and put them into C:\Program Files\Adobe\Adobe Director 11\Configuration\Cross Platform Resources\Macintosh\Xtras
      4) I added the line [#namePPC:"FileXtra4",         #nameW32:"FileXtra4.X32"] into XtraInfo.txt
      but none of these steps worked.
      Could you please help me to solve this problem?
      Thank you in advance.