The path to open a pdf, doc, ppt, xls etc file will be

on mouseup
  case the currentspritenum of
    10:

      fxObj = xtra("FileXtra3").new()
      mm = "folder1\folder2\folder3\folder4\file.doc"
      put fxObj.fx_FileOpenDocument(mm)
      fxObj = 0

  end case
end


here there should be no space in between the file name as well as folders name,

no dots only underscore, back and front
slash, dash it will take otherwise it will shoe error...........

and you have to add extras such as      1.  FileIo.x32
                                                            2. FileXtra3
this xtras will be in your director extras folder as well as
in you exe. or main folder where all the file is to be given path..

try this out and reply me

sumeet mohan bhatnagar




"Jason Ross [JZway Interactive]" wrote:

> I'll give it a try .. thank you for the concise explanation :)
>
> Jason.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Al Hospers
> Sent: 04 June 2001 12:59
> To: [EMAIL PROTECTED]
> Subject: RE: <lingo-l> opening a PDF
>
> > I am developing a CD for the PC platform. I need to create a
> > behavior that
> > will open a PDF file from the CD (ie I know the path to the
> > PDF). So far I
> > have only managed to get the file to 'save' to the users HD
> > ... but cannot
> > get it to open.
>
> Jason,
>
> There are 3 pieces to this puzzle:
>
> 1 - finding path to the PDF on your CD
> 2 - finding the path to the Acrobat reader on a given user's machine
> 3 - opening the Reader with the PDF
>
> if you ABSOLUTELY know 1 & 2, you can simply use the built-in Director
> functionality
>
>  open xxx with yyy
>
> to do what you desire. That said, you will often know only item 2 with
> moderate certainty. The reason for this is that the user may or may not
> have
> installed the Acrobat reader and they could install it anywhere. To find
> this information you will need to look in the system Registry.
> Additionally,
> they may put your CD into a drive that may or may not be one that you can
> guess the path to.
>
> All in all it's a conundrum that is made simpler by using an Xtra to
> determine these seeming unknowables. There are several Xtras available to
> help you with this, MasterApp is one such Xtra. The MasterApp Xtra contains
> a function specifically designed for that purpose named
>
>   mappLocateExecutable()
>
> It returns the path to the executable registered to handle the document at
> the file path specified. MasterApp gives you broad control over other
> applications from your Director presentation. The most common application
> for MasterApp is building connectivity between your Director piece and
> various Web browsers and Web pages. However, MasterApp is much more
> powerful
> than this basic use, including dozens of methods for launching, monitoring
> and controlling external applications.
>
> Price: $299.00
> Platforms: 32-bit Windows, Win 3.1, Mac
> Director versions supported: Director 4,5,6,7,8
> Author: Glenn Picher
>
> MasterApp is a commercial Xtra sold by UpdateStage. You find out more
> information, download an evaluation version or purchase the Xtra here:
>
>  http://www.updatestage.com/xtras/xtrahome.html
>
> I hope that this information is useful.
>
> Cheers,
>
> Al Hospers
> Marketing Associate
> UpdateStage
> alhospers<at>updatestage<dot>com
> http://www.updatestage.com
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to