Categories
Featured jobs
» More ActionScript, Flash and Flex jobs.
» Advertise a job for free
Our network
Advertisement

 »  Home  »  Tutorials  »  Flash  »  Beginner  »  Open Documents from Local Presentations

Open Documents from Local Presentations

By Jesse Stratford | Published 09/9/2005 | Beginner | Rating:
Jesse Stratford
Jesse lives and works in Melbourne Australia. He is the Cofounder and a Director of http://ActionScript.org. A Flash enthusiast, teacher, author, freelancer and speaker Jesse enjoys participating in the http://ActionScript.org community and the wider Flash scene when he has time. 

View all articles by Jesse Stratford
Page 1 of 1
Written by: Jesse Stratford
Time: 15 minutes
Difficulty Level: Beginner
Requirements: Flash 5, Windows system.
Topics Covered: fscommand(), start.exe.
Assumed knowledge: Buttons and basic actions.

Flash player changes & their impact upon this tutorial:
Before we begin users should note that Macromedia altered the access EXEC has to the system to prevent malicious coders from causing trouble. Executables must now exist within a specific directory. Read this article at Macromedia's help site for information about where to put your executable in order for it to comply with these security restrictions.

These changes nullify the usefulness of the old version of this tutorial somewhat. The "start" executable which this tutorial relied upon resides in the Windows directory and, as such, can't be made to comply with Macromedia's directory structure security requirements. For Windows systems you can however create a batch file (.bat) which invokes the start executable, then put this batch file in the correct directory. For Mac systems you can use Apple Script in the same manner. Both of these are mentioned at the link Macromedia help article above but not discussed in any detail.

This tutorial covers how to open files such as Word and PDF files. This method will only work on Microsoft Windows® machines (95/98/ME/NT/2K/XP) because it uses the magic start.exe file which MS were so kind to invent. (If you want to launch files on Mac systems try the method described in this thread). It will also only work if the file type you are trying to open is registered on the system - that is to say, it wont open a PDF file if the user doesn't have Acrobat Reader installed or properly configured, so sort that out yourself. So if you want to launch your PDF on a Solaris box with VIM, this aint the tute for you :o)

As the old method this tutorial use to employ no longer works, this tutorial now provides an example of how to us Windows batch file to open files in their native applications. Windows users, grab this Flash MX source file and take a look.

The old version of this tutorial (who's methods cannot be applied in any version of the Flash standalone player above Flash 5) has been moved to the Archives area of the Tutorial section; see the Tutorials index for a link to it if you need it.


How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent

Verification:
Enter the security code shown below:
img


Add comment

Spread The Word / Bookmark this content

Clesto Digg it! Reddit Furl del.icio.us Spurl Yahoo!


Search Entire Site
Add to Google
Advertisements
Article Options
Latest New Articles
Set up a simple IIS Server for Flash
by Peter McBride

Day 1 at FITC Toronto 2008
by Anthony Pace

Simple reflection effect with AS2
by Jean André Mas

ActionScript.org Meets Josh Tynjala (aka dr_zeus)
by ActionScript.org Staff

Rapidly Create Online Flash Movies to Help Users Market, Sell and Support Software and Hardware
by Sabrina F

mailing list
Enter your email address:
mailing list
Subscribe Unsubscribe
© 2000-2007 actionscript.org! All Rights Reserved.
Read our Privacy Statement and Terms of Use...
Our dedicated server is hosted and managed by WebScorpion Webhosting.