director help

Out of context: Reply #4

  • Started
  • Last post
  • 8 Responses
  • Hardcore0

    You can use a third party extra such as BuddyAPI.

    http://www.mods.com.au/budapi/

    and work out if the end user has Acrobat Reader installed. Works using the 'file association'. Also its cross platform (Mac & PC).

    Usage --- (as Behaviour)

    on StartAcrobat, p_PDFFile

    if ( baFileExists( p_PDFFile ) = 1 ) then -- check if file exists

    set AcroExe = baFindApp( "pdf" ) -- see if acrobat is installed

    if AcroExe "" then

    baOpenFile( p_PDFFile , "Maximised" )

    else

    -- throw error msg here.

    end if

    end if

    end StartAcrobat

    Hope this helps.
    Director doesn't smell too bad - esp. seeing as their releasing a better version of it soon...

    personally I can't wait!

    But, then again, I am a multimedia freak.

    :)

View thread