Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Executing An Exe File With Arguments And Get Results Back



Hi,I have a C program (and and exe file for that ) which takes some input and displays some numbers as output on the screen.I need the results of this exe file in a flash program. How to run this program from inside flash file and give it some arguments as input and how to get the output of that exe file into a textbox in the flash file?..sorry if i am confusing you..thanks,rap.



Actionscript 2.0
Posted on: Thu Aug 24, 2006 9:58 pm


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Executing An Exe File With Arguments And Get Results Back
Hi,

I have posted this problem in the action script section also in this forum, but due to lack of replies, i am writing in this section also.. please excuse me.

I have a C program (and and exe file for that ) which takes some input and displays some numbers as output on the screen.

I need the results of this exe file in a flash program.

How to run this program from inside flash file and give it some arguments as input and how to get the output of that exe file into a textbox in the flash file?

..sorry if i am confusing you..

thanks,
rap.

Call Back Functions With Arguments Array
hi there,
i have a class set up, i have a lot of fucntions in it, and i would like to use a call back functions to call all these fucntions.
this is fine, however i will be using an unexpected amount of parameters,
now i know i can deal with this using the arguments array but i dont know how i would go about doing this.

so what i am asking, is: for a example and an explanation of how the arguments array works. please.

thanks a lot,

zlatan

Getting Results Back In Same Browser Window
I have created a flash form which works but when the results come back, another IE browser window is opened and the results are displayed in that.

How do I get results displayed back into the same browser window

_global.submitForm = function (srchWrds) {
trace("find this " + srchWrds);
// Create a search form
gSearch = new LoadVars();
gSearch.crid = "<removed my id>";
gSearch.query = srchWrds;
gSearch.send("<removed my url>",gSearch,"GET");
}

What have I forgotten ?

thx

PHP Date Back To MySql (funny Results)
I have a record Insert Page, php date field
When I save and retrive the date it is not as I entered .

What do I need to do to send a date/time back to MySql in a valid format ?
Or a tutorial which can send me on the right path please!.

I have found the "display" formatting Date and ststotime, but could not find a send to MySql format example, if I input 07/07/2004 in the text box bound to field "date_submitted" , I get a strange date returned.

I could not find a "search" for in this forum.
I know this is a flash forum and I am working this part in dreamweaver!
But it is worth a try!

Thanks in advance

Executing An Exe File
I am developing a CD buisness card and I have several files that must be able to be installed from the CD if chosen. I know how to execute a exe if the drive is static, however the drive will not always be the same. Is there a way to write a script that will read what drive the CD ROM is and use that as a variable in the code?

The code is:
on (release) {
fscommand ("exec", "e:\install.exe");
}

Thanks for any help.

Executing File
Can i execute a file by pressing a BUTTON ON A FLASH MOVIE?

aND CAN I RUN A PROGRAM ON A CD?

tHANK yOU for your help - i really need to do this...

Executing File...
I am creating a presentation in flash, and I would like it to open a power point presentation (I guess in a new window) I am creating a projector file, so how would I go about doing this?

Executing File
i am trying to make an autorun program with a button that says "install" in it

i have this code in the actions of the button:

on (release) {
fscommand(exec, "SETUP.EXE");
}

when i do this it doesnt seem to work
is it because setup files are different to normal exe file?

i dont know

please help

Dave

Executing A .exe File
Hello flashkit people...

I want to know if it is possible to execute an external .exe file from a flash button. Just like you do it when you're going to execute a .pdf or a .doc file.

If it is possible, can you help me with the script? My flash version is 8.

Executing A .msi File Like .exe
Hi All,

I know I can execute .exe files from within a flash projector (from a cdrom say) but the same command doesnt work for .msi files.

Is it possible to get flash to run these files?

Thanks in advance

Mark

Executing A .msi File
I don't think Ive posted this here.

Is there a way to get flash to execute a .msi file like a .exe?

Executing A .bat File
Do I use fscommand to execute a batch file? If so what is the code?
The .bat file will then launch an executable.

Thank you

Executing A .htm File From A CD Question
Thanks for the reply on my previous post about executing .exe files using the fscommand line. It works great. The second part of my question is not working so great. I am trying to execute an .htm file that is on a CD. I would like to not have to designate a drive name due to people having different CD-ROM drive names. I am doing this so the application could be shown without an internet connection. The fscommand does not work and get URL works only if you designate a drive name. Example: If I enter N:/helpfile.htm it works fine, but I want to enter helpfile.htm and read it directly from the CD-ROM regardless of the letter designated to that users CD-ROM drive. Is This possible?

thanks in Advance
Brian

Executing An External File
hi..

i am making a presentation for the dolphin research institute and without going into any detail, basically what i really need to find, is how to execute a powerpoints show (.pps file) from inside a flash movie. im sure this is possible?!?

i found this command in an old post :
fscommand (exec, "filename.pps")

but i tried this and had no luck, can anyone help me please?? the presentation needs to be shown this sunday and the flash and powerpoint components are made i just need to fit them together.. your help would be greatly appreciated(its for a worthy cause too) :)

thankyou so much for your time..
damien

Actionscript For Executing Asp File?
Goodie day people,

I am using Flash MX to develop a small application and need to save the results into a database. I am using the actionscript Actions>Browser/Network>loadVariablesNum:

loadVariablesNum("level_asp.asp",0,"post");

However it doesn't seem to execute the asp file. Can anyone help me with this? Thank you very muchie!

tmh2

Error Message While Executing A SWF File
Hi All,
Iam trying to execute a SWF file which has its actionscript written in AS3. When i execute this, I am getting an error message which is as follows

Verify Error 1030# Stack Depth unbalanced 1 != 0.

Can anyone tell me what could be the root cause?

Thanks in advance,
Prabakaran Srinivasan.

Executing A Projector File From Within Flash.
I have been looking online all night to find information about launching an executable projector file. So far I've had no luck. I need to execute it once a user has clicked a particular button from within the .swf Can anyone please help me out. This is possible isn't it?

Problem While Executing A Flash File
Hi All,
Iam trying to execute a SWF file which has its actionscript written in AS3. When i execute this, I am getting an error message which is as follows

Verify Error 1030# Stack Depth unbalanced 1 != 0.

Can anyone tell me what could be the root cause?

Thanks in advance,
Prabakaran Srinivasan.

Executing A Projector File From Within Flash.
I have been looking online all night to find information about launching an executable projector file. So far I've had no luck. I need to execute it once a user has clicked a particular button from within the .swf Can anyone please help me out. This is possible isn't it?

Executing Two Swf File In One Html File
Hi Every body

Im having two swf objects. I want to use these objects in html executing one by one. When the first swf file is executed automatically the second swf should be executed. Please say me how can we do in the html.
Please help me regarding this
Advance thanks
Hariharan.S

Executing Two Swf File In One Html File
Hi Every body

Im having two swf objects. I want to use these objects in html executing one by one. When the first swf file is executed automatically the second swf should be executed. Please say me how can we do in the html.
Please help me regarding this
Advance thanks
Hariharan.S

Can I Call A File With Arguments ?
Hi, can I call a file with arguments using the flash fscommand "exec"

for example:

on (release) {
fscommand("exec", "shutdown.exe -s -m 127.0.0.1 -t 5000");
}

And how this can be done? Because it is not working the way it is written!!
P.S. I know that the file should be in a sub dir called fscommand, just tell me how to pass argument to it??? Pleaseee

Exec Batch File With Arguments.
if anyone can help that would be great!

i have a button that's calling a batch file like this:

on (release) {
fscommand ("exec", "setup.bat");
}

everything works fine, but the developer wants me to add the arguments:

"cmd /q /c setup.bat"

i'm sure this is possible, but i'm a novice when it comes to actionscript.

Can A Swf File Begin Executing Code Before Loading Completely?
I have a swf file with a preloader on the stage at authoring time. The preloader centers itself by retrieving the stage dimensions and calculating the coordinates it needs.

This works everytime in Flash preview, but once I put it online it only works sometimes, mostly after I refresh the page. The stage width and height it seems, are considered = 0 when this happens and so my preloader doesn't position itself correctly.

The only reason I can determine for this error is that when the code begins to execute the swf is not fully loaded, and thus it gets wrong stage dimensions. I have exported the swf file to have 100% width and heigth, don't know if there are known issues with this mode of publishing.

Any help on this matter is appreciated, thanks in advance.

Can A Swf File Begin Executing Code Before Loading Completely?
I have a swf file with a preloader on the stage at authoring time. The preloader centers itself by retrieving the stage dimensions and calculating the coordinates it needs.

This works everytime in Flash preview, but once I put it online it only works sometimes, mostly after I refresh the page. The stage width and height it seems, are considered = 0 when this happens and so my preloader doesn't position itself correctly.

The only reason I can determine for this error is that when the code begins to execute the swf is not fully loaded, and thus it gets wrong stage dimensions. I have exported the swf file to have 100% width and heigth, don't know if there are known issues with this mode of publishing.

Any help on this matter is appreciated, thanks in advance. http://www.vivoeusebio.com

Functions: 'arguments' Array, Arguments.callee Etc.
Hi,

okay - I know that you can use the 'arguments' array to get a function's arguments, for example:


Code:
function traceArgs ()
{
for(var j=0;j<arguments.length;j++)
trace("argument " + j + " : " + arguments[j]);
}

traceArgs("hi","there","how","are","you","?");


(try it )

I have also seen this interesting example by drZoode on layer51/proto:


Code:
Math.factorial = function (n) {return (n <2) ? 1: n * arguments.callee (n-1);};


What I haven't been able to do is to find any documentation on the 'arguments' variable. Is this undocumented? Does anyone else know anything about it?

Let's discuss

- n.

Pass In Arguments To SWF File And Return A Number?
If I had a flash movie that on frame 1 have this code :


Code:
var answer:Number = myVar1 + myVar2;


and I loaded the swf file by doing something like this :


Code:
mySwfFile.swf?myVar1=4&myVar2=5


is there any way I could get flash to return the answer to the calling program?

In the end, I want to see if it's possible to run it from the command line.... (maybe after converting the swf file to and exe file). For example :


Code:
c:mySwfFile.exe var=4 var2=5


and it print out onn the following line :


Code:
c:9


I'm guessing this isn't posible.... if it's not, is there some other way I could do this?

Passing Arguments To A Swf File Embedded In Html
How would you pass a variable to a swf file that is embedded in html? Would something like "movie.swf?firstVar=2" work? And if so, how would I read this variable in actionscript 3?

Passing Function Arguments Into Arguments
Hi!

I would like to know how I can do this:


Code:
addfunction(_level0.showmessage("hello"));

addfunction(AFunc:Function)
{
//Code to wait...
if(DelayPassed)
{
AFunc();
}
}

showmessage(msg:String)
{
trace(msg);
}
without calling it when I pass it through arguments.

...
showmessageA()
{
trace("works!");
}

Code:
addFunction(showmessageA)
and


Code:
showmessageA()
{
trace("works!");
}
..works fine...

Post Results To A Text File
First of all. I am new to actionscript.
I am developing a quiz game and would like to post the results to a text file on the local computer. Would appreciate any help.

Two Servers, One Flash File, Two Different Results
I made a site for a client, and I uploaded it onto our servers. It tested fine and there were no issues. However, I then uploaded it to his server so that it could be at the correct address, and on one of the pages the text began to display differently. It's wierd.

Okay, so here are the two sites
correct site
incorrect site

If you go here and click on the locations page, there are three different buttons, each for cities in or around oregon. When you click on it, it loads a txt file from a directory that is one file up from the root. On our site, the first site, the files load flawlessly without adding additional line breaks. However, on his server, the files load with extra spaces after each entry. Whats going on?

Quiz Results Not Displaying In Swf File
I am creating an interactive cd which basically runs a blank projector which then loads in various swf files from fscommand folder as and when required.

Part of the CD is a quiz - created using one of the standard flash templates. When this is loaded into the main projector as a swf file it runs perfectly until it gets to the "results page" - at this point it returns the blank templates e.g Answered = 0.

If you export the quiz as a projector file it runs fine and gives the results as expected too.

Is there a way to make it run properly as a swf?

Quiz Results Not Displaying In Swf File
I am creating an interactive cd which basically runs a blank projector which then loads in various swf files from fscommand folder as and when required.

Part of the CD is a quiz - created using one of the standard flash templates. When this is loaded into the main projector as a swf file it runs perfectly until it gets to the "results page" - at this point it returns the blank templates e.g Answered = 0.

If you play the swf file on it's own it works fine. If you play the file as a projector on it's own it works fine too.

The problem only occurs when it is loaded into the main projector on a level above the root.

I figure it is something to do withthe paths being used but I have no idea where to look or how to fix the problem......please help.

How Do You Get Flash To Search A Txt File And Then Display The Results In A Swf
how do you get flash to search a .txt file and then display the results in a specific place in the swf file. I'm very new at this Flash stuff, but I do understand simple stuff like how to animate things, and use buttons and jump to frames etc. but some of the tutorials here on this subject are too confusing for me. I've been trying to teach myself the program, and I have no idea where I could go to learn it for real. Please help me "Flash for dummies?!?!"

How Do I Save A Quiz Template Results To A File
I have set up a quiz/test in Flash using one of the quiz templates - how do I go about saving the results from the quiz to a file that may be used at a later stage.

How To Send Form Results To A Flash File
Anyone knows how can i send form results to a flash file?
Thanks

Flash Form Tutorial, .asp File HOW TO GET RESULTS
Hi:

I did the following tutorial:
http://www.adobe.com/support/flash/applications/creating_forms/

Unfortunately, this .asp version doesn't seem to have any real world use, as the .asp returns the results of the form to the person who filled out the form, but there seems to be no way for ME to receive the form results in the form of an order. I want to alter this form to turn it into a survey, but it is useles, unless I have a way to view the results of the survey, preferable by having it email me a report each time someone successfully submits the survey.

PLEASE HELP!
Vernon

AS2 - Getting Results From The Php File After FileRef.upload Is Complete
hi guys,

does the filereference class have a way of getting the output of the server-side script file that you supply on fileRef.upload(uploader.php);

I need to be able to get the information of the uploaded file including its ID on the database.

Thanks!
James

Need To Send ASP Results To Flash, Preferably Into Xml Results Packet?
I am creating a flash page that will pull images from a folder without specifying each image name. I have the script I need in ASP to get the image names from the folder but now I need to see this in flash. I have used the xml connector quite a bit and would be happy to just get the information back as an XML results packet. Of course if there is an easier way to do this I am open to suggestions.

Any help would be greatly appreciated.

Thanks,
Dave

Flash Player Version 10 Results Bad Timing Of TurboDemo Generatred Swf File
Our flash educational presentations are working bad in the latest Flash Player version (10). We made them in TurboDemo, and generated flash file, which could be run from our website. However with new flash player the preset timing of page turning does not work. It waits much longer, than the programmed timing. In earlier versions everything worked well, but know it's a disaster, which makes our numerous educational presentation un-enjoyable. The videos are just waiting for nothing for long seconds from page to page, which ruins the smooth flow of the presentation.

Can anybody help how can we fix this issue???

Andras

Converting An .exe Flash File Back To Edible .fla File?
Does any one know if there are ways to convert an .exe flash file back to ediable .fla file?

Going From The Main SWF File To A Child File And Back Again
Hey guys, we're looking at one of the final problem flash is causing us.

In the following code you can see what we do load our flash game. WE have 2 seperate levels which we call. Now once we're in level 1 what can be done to tell level 1 to end so that level 2 can start from the main file?

Again thanks for all the help. You guys are great.

Frank


// used right now to know which level to load for testing purposes.

var level:Number = 1;

menu=function()
{
      ////////////
     //  menu  //
    ///////////
    attachMovie("header_gui","GUI",1);
    GUI._x=0;
    GUI._y=0;
    GUI._xscale=118;
    GUI._yscale=120;
                
    GUI.onPress=function()
    {
        GUI.play();
        
        if(!level)
        {
            loadMovie("Level1.swf",5);
            level=1-level;
        }
        else
        {
            loadMovie("Level2.swf",5);
            level=1-level;
        }
    }
}

menu();

Can You Use The Back Button In A Browser To Go Back To Go Back In A Flash Movie?
Hi
In html pages it is easy to go back (the back button in the browser) to the last page you were on. But when you have got a flash site in a html page you cannot go back to the last page in the flash site using the 'back' button in the browser. Is there anyway you can change this so that you can use the back button in a browser to go back to the last flash frame?

Can I Get Back My FLA File If I Have SWF?
can i get back a FLA file if i just have the SWF?
can i restore back my FLA?

Changing A SWF File Back To An FLA
This is my problem ....

My computer completely crashed and I lost a few things. I saved most of my work but there are a few recent changes and additions to some of my flash version sites that I will lose.

I was wondering if I could change a SWF file back to a FLA file since I can access the new version of the SWF on the server and download it....

This would save me about a week's worth of work ....


I have been told their was a company that made software for just this thing. Anyone know the name or the website ?

Thanks in advance...

Please let me know as soon as possible

Dave Bishop

Help With Saving To .txt File And Calling It Back
I am having problems saving text entered in an input text field to a .txt file on my comp and then calling that file back into flash. I am trying to create a textbook that u read in flash and next to the pages a spot where u can type in notes from the text and save it and then bring it back whenever u need to. Does anyone know an easy way or hard (doesnt matter) to do this? I heard using a database would be better for what i am trying to do but i thought id throw it up here and see what u all can help me with. THanks

How To Move SWF File To Back On HTML ?
I have a swf on a page and over that i have some javascript menus (these menus drops down and expands on mouseover).. but after placing the swf file, and when i mouseover on the javascript menus, the menus expands but HIDES BEHIND the flash file !!??!!

Is there a solution for this.. should i include any actionscript on the flash file..?!

PLEASE HELP...

Thanks in advance..

Get Back Sound File From Library
Hi,

I have imported a sound file into library by using :

file-import-import to library

I dont have the original sound file with me. Can I get the sound file back from the library?

thanks

Flash File Does Not Appear If You Hit The Back Button
the images on my site are flash files. http://www,junnocobijoux.com. when you hit the thumb the image appears and then you hit the no 2 and it shows a detail.. If you hit 1 again to go to the original image nothing appears nor if you hit the same thumb.

However this only happens on a pc in IE not in firefox nor any browser on a mac. you can clearly see the images

Any suggestions much appreciated

Copyright © 2005-08 www.BigResource.com, All rights reserved