Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Complex command lines through fscommand

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hey all,

Learning Flash really fast because a customer needs something done to it. I've been running up against a couple walls, and was hoping one of you all could help. I'll list them in order of severity, #1 being most severe.
KEEP IN MIND that this project is supposed to be run locally, not through the internet. This is done through projectors, so any problems with fscommand being sealed for the net shouldn't be a worry, I don't think.

1) I can't seem to get fscommand to run a program with any command lines on it. Basically, I want to have it run the code "someexe.exe -someParameters" and it doesn't seem to do anything but run someexe.exe, no parameters involved.
2) I can't get LoadVariables to load a file anywhere other than in the localized directory. If I try to run loadVariables ("C:\mydirectory\myfile.txt","myMC"), it doesn't do much of anything.
3) Is there any way to do any sort of file browsing with Flash? Specifically, I'd like for it to be able to tell in what directory it's located.
4) Is there any way to load outside information besides putting it into an object (i.e. movie clip)?

Thanks so much!
-Jason Porath
 
I'll have a crack at answering your questions (hope I'm not stepping on anyones toes!):

1. Using EXEC is a one-off call. You can't call with parameters - one of Flash's little quirks. Bummer.

2. I think you're using the wrong notation - try this:

("C:/mydirectory/myfile.txt","myMC")

Plus if you are going to run the projector on a Mac, you'll need something completely different (I just can't remember what it is ... there's a Macromedia Technote about it).

3. You can use a .bat file to boot up an Explorer window ... I'm just not sure what you can do with it once you have it open. Not surprisingly, you need to specify the folder you want to open yourself (probably not much help to you).

4. Outside information as in what?
 
1) To run executables with parameters, create a batch (.bat) file with the application name and parameters.Then rather than calling the app, call tha batch file. This will solve that problem.

2) Using slashes rather than backslahes will fix the problem, just like rgstewart said.

3) I'm not really clear on what it is that you are trying to do here. Please clarify

4) If you are looking to load variables then yes it can be done. You can load them into the root (level 0) of the movie. Simply double-click on load variables, type in the filename and leave the level/target box at 0.


Hope this helps, Lumstar

______________________________________
Keep On Coding!!
If my post helped you, please give me a star.
If your post helps me, I'll give you one!
scifi-alien-with-red-boots-DW.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top