all groups > flash actionscript > may 2006 >
You're in the

flash actionscript

group:

Flash & Fscommand?



Flash & Fscommand? 123lionel
5/8/2006 8:33:26 PM
flash actionscript: Hi I'm looking for Flash solutions, please help.

I want to do:
- create a CD that contains a Flash Animation and a game
- upon inserting the CD, Windows will first play the Flash Animation (The
computer must have the autoplay enabled.) May be it should involve a small EXE
that checks for existence of a Flash Player and if it is not in there, the
small EXE will prompt the user and initiate the installation of the Flash
Player first
- The Flash Animation is being played. Within the Flash, there are scripts
that reads the content of a TXT file and have the content displayed on the
screen via the design of the animation
- Then, after the Flash introduction is done, it continues and launch the game.

Any pointers? or good way to handle that? Many thanks...

Re: Flash & Fscommand? John Doe
5/9/2006 12:36:33 AM
[quoted text, click to view]

create a projector from Flash and you can forget about the user having
Flash player or not

for autoplay add a plain text file named AUTORUN.INF containing:

[autorun]
OPEN=YOUR_PROJECTOR_NAME.EXE
ICON=YOUR_ICON.ICO

[quoted text, click to view]

loadVars class

[quoted text, click to view]
Re: Flash & Fscommand? 123lionel
5/9/2006 1:34:21 AM
Thanks John,

Any samples that I can look at the use of LoadVars class in a Flash.

Also, within Flash, can I launch another EXE (similar to the Shell command in WIN)?
Re: Flash & Fscommand? John Doe
5/9/2006 11:15:13 AM
[quoted text, click to view]

lv = new LoadVars();
lv.load("text.txt");

lv.onLoad = function(success) {
if (success) {
yourField.text = this.var1;
}
};

text.txt
--------
var1=Put here the text you want to display ...

[quoted text, click to view]

yes: fscommand("exec", filename);

not that depending on your version could be some restrictions. for
Re: Flash & Fscommand? FlashJester Support Team
5/9/2006 4:02:40 PM
Here an example for the fscommand exec, incase you get stuck

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

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

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

Re: Flash & Fscommand? philinglis NO[at]SPAM typhoonsoftware.com
5/11/2006 8:58:42 PM
You can use AutoRun. The Flash Viewer will install the Flash software
silently if needed so your SWF will work on any machine. You can then
have your EXE game launch after the Flash is done. You can even have
background colors, images, music, you name it.

http://www.typhoonsoftware.com

Phil
Re: Flash & Fscommand? 123lionel
5/13/2006 12:49:39 AM
Thanks for the help.

it works only when the Flash is export to become and EXE. When it is FLA or SWF, it doesn't work.Is it supposed to be like that?

AddThis Social Bookmark Button