20 Replies Latest reply on Nov 5, 2007 8:38 AM by rafa@mediatech

    CrossPlatform publishing

    rafa@mediatech Level 1
      Hello everyone:
      I want to create a simple project. its one page that has one button that opens a PDF, and i want it to be crossplatform. I got the lingo to work no matter which platform it is in. I have my Xtras folder next to my project. I have a Cross Platform Resources folder, with a Macintosh folder in it and a Xtras folder in it. When I publish my movie, it tells me it cannot find "budapi.x32. I placed budapi.x32 inside the folder named Xtras next to my movie and I also embedded the xtra via modify>movie>xtra method. I have my xtrainfo.txt file but I am not sure where to place it. I tried publishing with the .txt in different places, but I still get the error.

      Any ideas what am I doing wrong??

      Thanks everyone.
        • 1. Re: CrossPlatform publishing
          Level 7
          When publishing for a Mac from Windows, you *must* bundle xtras into the
          projector (unless you assemble libraries and xtras into the appropriate
          folder /on a Macintosh/)
          The error you are seeing is because you don't have the appropriate split
          xtra (and possibly also the correct entry in the xtrainfo.txt file)
          available to the authoring environment
          • 2. Re: CrossPlatform publishing
            Level 7
            Look in your xtraInfo.txt file. Find the line about BuddyAPI. Note tha
            name of the PPC version. Now go into your Cross Platform
            Resources\Macintosh\Xtras folder and find the BuddyAPI files. There
            should be two of them with the name you noted from the xtrainfo.txt
            file. One has the extension .data and the other has the extension
            .rsrc. The names must match the name in the xtrainfo.txt file.
            • 3. Re: CrossPlatform publishing
              SafariTECH Level 1
              If you look in the file that came with the Mac version of the xtra, you have to manually add the proper PPC line to the xtrainfo file so Mac will pick it up
              • 4. Re: CrossPlatform publishing
                rafa@mediatech Level 1
                Guys, thank you for your quick replies.
                I have looked everywhere for the .data and .rsrc. file. I only have the "Buddy API OSX Xtra" (with no extension) in the CrossPlatformResources>Macintosh>Xtras folder.
                I send an email to the people at byddy API to see if I can get it.....I see the .data and .rsrc files for all the other xtras except the buddy Api.
                Also, this is what I added on the xtrainfo.txt:

                ;----------------------------------------------------------------------
                ;System
                ;----------------------------------------------------------------------
                [#namePPC:"UIHelper PPC Xtra", #nameW32:"UIHelper.x32"]
                ;----------------------------------------------------------------------
                ;User Added
                ;----------------------------------------------------------------------
                [#namePPC:"Buddy API OSX Xtra", #nameW32:"budapi.x32"]

                • 5. Re: CrossPlatform publishing
                  Level 7
                  If you go to BuddyAPI's website and download the Buddy API Macintosh 1.7
                  Xtra (from the downloads page), the files you need are in the archive,
                  in the MX 2004 folder.

                  Seems strange that they included them in the Mac download as opposed to
                  the PC one where it is needed, but you can download it and get it out
                  anyway. You will need the free StuffIt expander to open the archive.
                  • 6. Re: CrossPlatform publishing
                    rafa@mediatech Level 1
                    I got the file, placed the files in my Cross Platform Resources>Macintosh>Xtras folder, I added the line
                    [#namePPC:"Buddy File OSX Xtra", #nameW32:"budfile.x32"]
                    to the xtrainfo.txt , STILL GET THE ERROR MESSAGE!!!!!!!
                    What am I doing wrong?!?!?!?!
                    • 7. Re: CrossPlatform publishing
                      Level 7
                      That line you added is about BuddyFile which is a different xtra than
                      BuddyAPI

                      Make sure that the file name you specify in the xtraInfo.txt file is
                      exactly the same as the filenames of the .rcsc and .data files.
                      • 8. Re: CrossPlatform publishing
                        rafa@mediatech Level 1
                        Great!!
                        I changed the line to:
                        [#namePPC:"Buddy API Xtra", #nameW32:"budapi.x32", #type:#default]

                        I dont get the error when i publish the file anymore!!! I take my "test.osx.hqx" file to my MAC, un-stuffit, play it, and when I click on the "open PDF" button on the MAC, it closes my project window and gives me a message that says:

                        " The application test.osx has unexpectedly quit. The system and other applications have not been affected. Would you like to submit a bug report to Apple?"

                        I think this project is not meant to be......

                        Any ideas why this is happening??????
                        • 9. Re: CrossPlatform publishing
                          Level 7
                          What is the code on the button that causes the crash?
                          • 10. Re: CrossPlatform publishing
                            rafa@mediatech Level 1
                            I have a "onStartmovieme" that reads:


                            on startmovie me
                            global gPlatform, gDelimiter
                            if the platform contains "Windows" then
                            gPlatform="win"
                            gDelimiter="\"
                            else if the platform contains "Macintosh" then
                            gPlatform="mac"
                            gDelimiter=":"
                            else
                            gPlatform="none"
                            Gdelimiter="none"
                            end if
                            end

                            and on the button itself I have:

                            on mouseUp
                            global gDelimiter
                            myFolderName="document"
                            myPDFName="chr.pdf"
                            myTempPath=_movie.path&myFolderName&gDelimiter&myPDFName
                            baOpenFile (myTempPath,"normal")
                            end


                            I also tried with:

                            on mouseup me
                            adob= baFindApp( "pdf" )
                            open the moviepath&"document\chr.pdf" with adob
                            end

                            but it didnt work either
                            • 11. CrossPlatform publishing
                              SafariTECH Level 1
                              I have never tried with using ":" as the separator in a Mac, even though that is what appears to be used ... the general standard when not a Windows machine is to use a pipe "|" as the separator.

                              Although I have never seen a projector crash just because a pathway is wrong, except in the case of my DB extra.

                              Try the pipe and see if that changes anything.

                              You may also want to use BuddyAPI to test that URL and see if it exists or not first before opening the file, and show an alert if it does not. Have the alert include the pathway so you can see where it is trying to look.
                              • 12. Re: CrossPlatform publishing
                                rafa@mediatech Level 1
                                SafaroTECH, thanks for your suggestion.
                                I changed the character to the "|", but I still get the same result, my project quits and a message box appears saying "the application unexpectedly quit....etc"
                                • 13. Re: CrossPlatform publishing
                                  Level 7
                                  Do you get the same error when you use the baFindApp method? Of course,
                                  you would need to change the command to this to work properly (you can't
                                  use the backslash as folder delimiter on a Mac and there is a different
                                  way to find the acrobat viewer on Mac):

                                  global gDelimiter,gPlatform
                                  on mouseup me
                                  case gPlatform of
                                  "win":
                                  adob=baFindApp( "pdf" )
                                  "Mac":
                                  adob=baFindApp("CARO")
                                  end case

                                  open the moviepath&"document"&gDelimiter&"chr.pdf" with adob
                                  end

                                  I'm not sure why this would crash, but if it does just like the other
                                  way, then perhaps there is a problem with the pdf itself? Does it open
                                  if you just double-click it in Finder?
                                  • 14. Re: CrossPlatform publishing
                                    rafa@mediatech Level 1
                                    Mike:
                                    I updated the button with the code you suggested, and it still crashes my app.
                                    The pdf does open if I try to open via double click.......its so weird!
                                    • 15. Re: CrossPlatform publishing
                                      Level 7
                                      Then there is something else wrong in your code. What else is going on
                                      when you are pushing that button?
                                      • 16. Re: CrossPlatform publishing
                                        rafa@mediatech Level 1
                                        That is all there is to my code.

                                        on startmovie me
                                        global gPlatform, gDelimiter
                                        if the platform contains "Windows" then
                                        gPlatform="win"
                                        gDelimiter="\"
                                        else if the platform contains "Macintosh" then
                                        gPlatform="mac"
                                        gDelimiter=":"
                                        else
                                        gPlatform="none"
                                        Gdelimiter="none"
                                        end if
                                        end


                                        then the button shows up and it has 2 behaviors:
                                        First behavior called "over"
                                        on mouseLeave me
                                        cursor -1

                                        end

                                        on mouseEnter me
                                        cursor 280

                                        end

                                        Second behavior called "openPDF"
                                        on mouseUp
                                        global gDelimiter
                                        myFolderName="document"
                                        myPDFName="chr.pdf"
                                        myTempPath=_movie.path&myFolderName&gDelimiter&myPDFName
                                        baOpenFile (myTempPath,"normal")
                                        end
                                        • 17. Re: CrossPlatform publishing
                                          Level 7
                                          There has to be something going wrong somewhere else then. I just
                                          tested your exact code - I built the projectors on PC and tested on both
                                          PC and Mac. Both work, assuming that there is a document folder in the
                                          same folder as the projector and chr.pdf is in that folder.
                                          • 18. Re: CrossPlatform publishing
                                            rafa@mediatech Level 1
                                            Wow.....Do you think its my version of MAC then?....I currently have Mac OS X version 10.3.9
                                            • 19. Re: CrossPlatform publishing
                                              Level 7
                                              I doubt very strongly that it is your Mac, but that is possible. Zip up
                                              your Mac projector and email it to me. I'll test it and see if it is the
                                              projector at fault (which is my guess) or if it is your Mac.
                                              • 20. Re: CrossPlatform publishing
                                                rafa@mediatech Level 1
                                                Mike, you where right, my .rsrc and .data files where corrupted. Now that I have the correct files, my published file on the Mac works fine, thanks for all your help. And also thanks to everyone for helping with this issue.