Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : Launching External Applications


baazil1
8/30/2005 9:18:34 PM
I have been researching a few about launching external apps (ie., PowerPoint
Application) and it looks like it can not be done. I would just like someone to
verify for me...

I have a Flash Presentation that will ship on a CD. This CD contains the swf
file along with some mpg, doc and ppt files. I have read that you can use a BAT
file to launch a Powerpoint application, but from what I have read, it doesn't
look like this will work if I have everything on a CD.

Thanks for the help on this,
Clay
ActionScripter1
8/31/2005 12:00:00 AM
This works

on(release)
fscommand("Exec","myfile.ppt");
ActionScripter1
8/31/2005 12:00:00 AM
Cancel that!

It used to work.

baazil1
8/31/2005 12:00:00 AM
I have read multiple responses that say that will not work and I can not get it
to work either.

Some say to launch a .bat file first and have that launch the .ppt, Here is an
example of another post saying it can be done, but differently then what you
have said.

http://www.flashkit.com/tutorials/Projector/Launch_a-Adina_Ha-782/index.php

Which one is correct? Should I just use Director, maybe import the swf into
Director and export out?

Thanks again for any insight,
C
ActionScripter1
8/31/2005 1:09:30 AM
You can easily open applications using fscommand

First of all your CD structure should be like this

ROOT
AUTORUN.INF
YOUR.EXE
FSCOMMAND // A Directory where you need to store all your ppt file and .mpg
etc

Then Create your buttons and give them this action

on (release) {
fscommand("Exec","true");
getURL("myfile.ppt");
}
krl
8/31/2005 7:12:07 AM
I can't seem to get fscommand to work. I've been interested in working with it,
but haven't been able to yet. Do you need a projector to open another
application or can you use simply an swf.
I've tried putting a ppt in an fscommand folder, but I still can't seem toopen
it with an swf or a projector. Can you walk me through the setup. The help
files haven't helped very much.
Thanks.
FlashJester Support Team
8/31/2005 11:02:24 AM
OK listen guys.

It will NOT work with a SWF file.

You must publish the Flash file as an Projector file. See File -> Publish
Settings.

Now the FSCOMMAND - Exec will ONLY execute *.exe nothing else.

To see an example of this read this

http://www.flashjester.com/?section=faq&cPath=28_41#202

Now if you want to launch other files like PowerPoint and PDF files then you
can use*.bat files or you can use our tool called JStart.

Look here

http://jstart.flashjester.com

Look at the examples given. Even better download an evaluation copy and try
it.

Hope this helps.

Cheers


Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

There is a very fine line between "hobby" and
"mental illness."

support NO[at]SPAM northcode.com
9/4/2005 12:00:00 AM

[quoted text, click to view]

Correct.

[quoted text, click to view]

Incorrect.

FSCommand will open ANY executable file format supported by Windows.
That includes EXE, COM, BAT and CMD (there are a couple of others as
well, but these are the main ones).

The reason this is important is because not everyone can make their
own EXE (or COM) files to be called from Flash but anyone can create a
BAT or CMD file filled with commands to do many useful things.

It gets even more interesting when you combine the ability to write
your own BAT files with something like my FREE proxy utility.

http://www.northcode.com/misc/proxy.zip

This utility lets you run BAT files from Flash and avoid the ugly DOS
box that normally pops up, allowing you to make use of BAT files and
keep your presentation looking professional.

There's documentation in the ZIP file, and there was a big discussion
about it (and some other utilities I wrote) in
http://www.flashkit.com/board/showthread.php?threadid=519274 in the
Standalone and Applications forum.
amuck
9/4/2005 11:20:56 PM
Is there a way to make the Flash file a kind of auto-launch pass-through, so
that when the client puts the CD in their computer, it automatically starts up
a video? In other words, without going to a 'press this button to see the
video' screen first?

Thanks in advance!
support NO[at]SPAM northcode.com
9/5/2005 11:05:24 AM
What kind of video are you trying to launch? If you want to launch an
MPEG or something then you can just launch it directly from the
autorun, with a little help :)

Check out www.northcode.com/misc/runfile.zip for a FREE utility that
will let you launch any type of file from your autorun.inf file. The
only restriction is that the file type has to be registered on the
users machine. If they can't launch that file type natively then they
can't autorun it either. You can get around most problems with video
files by using very common codecs when creating your videos. Thing
about sticking to basic AVI or MPG files for the widest possible
distribution.


On Sun, 4 Sep 2005 23:20:56 +0000 (UTC), "amuck"
[quoted text, click to view]
amuck
9/5/2005 2:51:29 PM
Yes, it's an .mpg video. What I'd like to accomplish is that someone puts the
CD into their computer drive and it automatically launches the video for them,
without a splash screen first.

Is it possible to code in something like -
on load
play mpg file
fullscreen
no loop

Can I do this without placing anything on the stage, just all background
coding? Obviously I'm *very* new to Flash - I was planning on learning it in
detail later but have been thrown into it sooner than expected with this
project! ;)

unknOWN
9/5/2005 6:30:02 PM
[quoted text, click to view]
is there any free software to convert swf into projector file?
support NO[at]SPAM northcode.com
9/6/2005 12:00:00 AM

Yep :)

If the user has installed an application that will play your MPG file
it will be launched to play it.

Tim Goss
Northcode Inc.

On Tue, 6 Sep 2005 12:35:29 +0000 (UTC), "amuck"
[quoted text, click to view]
amuck
9/6/2005 12:35:29 PM
'Northcode' -

AddThis Social Bookmark Button