Running A EXE Within Fscommand Dir
Ok ive figured out how to run a exe from a directory in the fscommand dir, but if i want to run a program from a dir in the fscommand dir how would I do it, ive tried using the examples on the macromedia site but its still not having it. I need to to this becuase i have a lot of big exe files and dont want 15000 files in one dir! This is what ive tried :- 1/- on (release) { fscommand ("exec","/A/Application.exe"); } 2/- on (release) { fscommand ("exec", "./A/Application.exe"); } 3/- on (release) { fscommand ("exec", "../A/Application.exe"); } [PROJECTOR FILE] [FSCOMMAND] [A] being trying it for hours but still no joy!!! anyone please help! Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-13-2005, 07:19 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Fscommand (exec) Running .msi
Hi there
How can Flash MX run a new windows installer (.msi) file?
I`ve used the fscommand to run (exec) .exe`s without hassle
it`s just that most new windows installers have a .msi file extension. Please help
Thanks
Running A .bat File In MX With Fscommand
I am having trouble running a .bat file using MX. It works fine for me using version 5 with the fscommand, but no go with MX, has something changed?
Code:
on (release) {fscommand("exec", "presentation1.bat");
}
This code works fine in version 5, but nothing happens in MX. Is there a new or different way to run a .bat file using MX?
Thanks
Problems Running .bat Files Using Fscommand()
Hi there all im having a few problems with running a batch file from flash .swf file.
Im using ;
on(release){
fscommand("exec","copy.bat")
}
the folder location of the flash file is;
n:flashPB.swf
and the location of the .bat file is;
n:flashfscommandcopy.bat
but when i run the .swf file and click the nutton nothing happens.
The .bat file works fine if i click it but the .swf file as it stands will not run the .bat file
Anyone have any ideas
lee
How Do You Get Pdf Fscommand Script Into Fscommand
I'm trying to link to a pdf file. I have viewed others messages about creating a .dat file, but it mentions about making sure this is in the fscommand folder. Please can someone detail how this complete process should be done?
If this wont work on a Mac, then that leaves me with the GetUrl command only. As I want this to be a CD Rom not web page I need to link to the html pages offline (if this is my only option) and I have a projector file, where should these htm files be?
Thank you.
Running Exe's
Just a quickie-
Is it possible to launch an exe in ActionScript?
Cheers!
Running SWF As EXE
Hello,
Any help would be greatly appreciated.
I have currently an interactive course in flash.
The folder contains a setup.exe file, autorun.inf file, and a sulfolder that contains all the modules (.swf) files. The only way to run it is to load the setup.exe file locally.
What I'd like to do is to integrate this into a webpage. Given the .exe file, I don't know if it's possible to change the whole system. Is there a way to do this?
[F8] Help Running For()
Basically I am trying to run a for() within a for(). The idea is to replicate the same data twice. The first time the for() runs it places instances of a movieclip onto the stage. The second time that it runs the for() it should start at the end position of the first for().
The end result should be that there is a horizontal row of movieclip instances next to each other and not placed onto of each other as they currently are.
PHP Code:
var xPos:Number = 0;
var padding:Number = 2;
var myWidth:Number = 0;
for(var i =1;i<3;i++ ){
trace("xPos = "+xPos)
for(var k = 0;k<10;k++){
attachMovie("mc_holder","mc_holder"+i+k,this.getNextHighestDepth());
eval("mc_holder"+i+k)._x = xPos;
xPos = eval("mc_holder"+i+k)._width*(i+k);
trace("xXXXPos = "+ xPos)
}
}
Anyone explain what I should be doing?
Running One .exe Within Another
Hi,
I have to create an interactive CD, I normally do this in Director but for several reason, I thought I would give it ago in Flash MX. I have been supplied source files to be included on the CD, part of the content has already been created by another agency and exists as a flash .exe which links to external .swf files within its own directory. In the past I have created websites that load external .swf's via an empty movie holder but can this same trick work with a .exe? I'm trying to get hold of the source files so I can create a .swf rather than an .exe as I know flash is happy to link to them, although I've never loaded a swf in to an empty movie holder that then calls on other swf files, is this possible? I assume it is!
Thanks!
Swf Isn't Running
Need I do anything special with a Flash 8 swf to get it to run?
Here's the html I used with a swf made in regular Flash that worked:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0" width="340" height="220">
<param name="src" value="racist.swf">
<embed src="racist.swf" width="340" height="220">
</embed>
</object>
I didn't change the path or anything.
Cat Running
I need some C&C for this animation
http://img44.echo.cx/my.php?image=catrunning3wf.swf
Running
hi, I'm an italian web designer(from Sicily).
I'm can speak little english, sorry
I'm really desperate and i'm risking to be fired , in fact, i have to complete this simulation game about horse-racing within four days.
In this game there are six horses, six Mc running horizzontally inside a Mc named "path"which is almost 3000 pixel long for example.
I have used the random function inn order to simulate the race , but the required mechanism expects the server to decide the arrival chart. I have to make everything "real" ; for example one of th horses might stay back and at a certain point, make up ground and win. I tried to do but i really can't, and i don't know who might be able to help me, i hope ypu will help otherwise..... i don't know what will occur to me
Tahnk you very much
i have a file fla for example:
http://members.xoom.virgilio.it/pepigno75/tryhorse.zip
The Running Man
I am watching "The Running Man " tutorial from "gotoandlearn.com" wherein he used one software "Poser" or something else. Can anybody give some advice from where I can get this sofware. Thanks in advance.
Running App
How do I run an app in a command button
Ex. I have a command button and I want to run misc filesar0005.exe
What is the context I have to use to get the clickevent to work
Running... Please Help
Hi everyone...
I need help whit this effect please... i need to do a man running... but this is not a problem... the real problem is than i need a man running in the street... so... i need help whit the effect of the street moving... every time but close...
I hope you understandme... thanks a lot
You are the master i'm just a padawan
Running Problem
Well I have a problem with running a halloween card that I made for halloween. Its over now, I know, its just I want to know what I should do better next time. So anyway here:
Ok so I made a halloween card and I made a preloader that said something like this:
ifFrameLoaded ("Last of the lasts", 40) {
gotoAndStop ("Opening", 1);
}
pretty simple... anyway then I would run it and it would run fine on my computer so I posted it on the net for all my freinds to see and sent them the address. So then when they opened it, almost everyone on a 56k modem the car wouldd stop right at this one scene... a scene with a house and that made me mad because a ghost is supposed to fly in and start talking to you... anyway I think it may be a problem with the size or maybe the framerate (25fps). Here is the url try it and if it does the same thing and you know why please tell me... and even if it doesnt (because you get lucky or you have fast comp and connection) tell me anyway if you know the answer to my problem.
URL:
http://www.geocities.com/pargoodgolf...ncardhome.html
GO STREIGHT TO THE CARD (flash 5 required):
http://www.geocities.com/pargoodgolf...oweencard.html
It is just that next time I make something I want to know what to do in order to make it run just fine and dandy...
need any more infor email me at:
pargoodgolfer@home.com
Running Projector From CDs
Greetings,
I have created a small piece which contains a Flash (5) splash screen with a button. That button links to a .pdf file. I have tested this from my hard drive and my company's server. What I need to know is how do I get this to run from a CD? (I have the autorun code working just fine. I just can't make the .pdf link up properly...) When I set it up on my hard drive and the server, the code for making it work was similar to this: "\MyWorkServerFolder1Folder2MyDoc.pdf". It works great, but now I have to burn this to a CD and distribute it to customers... Do I put all of the files on the root of the CD? Make a folder? I am sure that this must be much more simple than I am making it... Help please! Thank you!
Running Movies
I was wondering how you would controal the main timeline from a movie that was loaded using the loadmovie command in flash 5. What im trying to do is stop my main movie when i load a secondary movie, and when the secondary movie unloads i want the main movie to resume. Can anyone help me?
Help Me Im Running Out Of Time
pls help me to get a solution for mouseover!!
hi there, is there anyone who can help me to find a solution based on
inserting a action script program in a mouseover movieclip' button
then showing up a animated navigational buttons, like the way the
flash designers did in http://www.mcdonalds.co.kr
If you pls. dont hesitate to write me....Thank you very much..!
pls. email me at this site.....nardsdesign@site.com.ph
MX Stopped Running On My PC
Flash MX on PC has stopped working for no reason!! It is an upgrade of Flash 5 which is still working. As I open MX it loads in but immediately comes up with a program error is being logged popup. I have tried uninstaling and reinstalling but the same problem occurs?
Anyone else had this problem? Who do I contact about it?
Cheers
Ol
Running JS Form Swf
is it possible to run a javascript,
1 to use a variable form the script, such as
Code:
var ip = '< !--#echo var="REMOTE_ADDR"-- >'
2 to place a cookie for the flash, and read it later? such as you name, or soemthing...
storing a variable i guess..
thanks!
~Sky
Running Bat Files
I have encountered a problem with executing external txt files when using a .bat file in MX, is it the same or did they change something?
I've checked the tutorials and no go... what am i doing wrong
bat file says :
@echo off
start main.xls
My button script is:
on (release) {
fscommand("exec", "main.bat");
}
Any help?
Need Running Animation Help
yo well im attempting to make a xiao xiao type movie but i cant draw the stick men running i dont know how i know it sounds odd ive walked around my room a bunch of times then try transferr that into the drawing but it just does not work so if someone could make a short editable short stickman movie of just running form one side to teh other that would be awesome then i could see each frame and i can learn from that i have flash mx so make sure its in that THANKS!
Running Exe's In Flash
Does anyone know if there's a proper way of running exe files in flash? I have a Projector done in flash and want it to open exe's when they select a link from an options menu//
Running AS From A Text Box
Is there a way of typing AS into an input box such as the following
Code:
function GlobalProg() {
function A001() {
CountMax = 5;
for (Count=1; Count<CountMax; Count++) {
tempDebug = debugWin;
debugWin = Count+tempDebug;
}
}
A001();
}
GlobalProg();
And then make it run as AS?
RipX
Function Running
hi, I'm an italian web designer(from Sicily).
I'm can speak little english, sorry
I'm really desperate and iìm risking to be fired , in fact, i have to complete this simulation game about horse-racing within four days.
In this game there are six horses, six Mc running horizzontally inside a Mc named "path"which is almost 3000 pixel long for example.
I have used the random function inn order to simulate the race , but the required mechanism expects the server to decide the arrival chart. I have to make everything "real" ; for example one of th horses might stay back and at a certain point, make up ground and win. I tried to do but i really can't, and i don't know who might be able to help me, i hope ypu will help otherwise..... i don't know what will occur to me
Tahnk you very much
i have a file fla for example:
http://members.xoom.virgilio.it/pepigno75/tryhorse.zip
Running Movies
Hi,
I hope I can explain this right so bear with me...
I have 4 movie clips, each clip has 10 frames.
Each of these clips has a STOP command at the beginning of each clip.
What I want to do is ru, for example, 1, 4, 1, 4, 2, 3, 1, 4, 1, 2
I know I could do all of this the easy way by creating one large clip, but I'd like to know how to do it properly.
What I don't understand is how I can assign movieclip 1 to the name of "Start", and somewhere on movieclip 4 having something like "start.gotoAndPlay(2)".
TIA
Self-running Projector
I know you can make a self-running projector in Flash, but if you burn that projector to a CD-ROM, how can you get the projector start automatically when the CD is inserted in the computer? Can you do that through Flash or do you need another progam to set the CD-ROM to do that?
Running Tally
Hello,
I am making a triva game, and I would like to have it so that when a user clicks on a button it keeps a running tally of the correct answers and displays it at the end....
How do I do this!?
Thanks!
Running On Windows 98
we have a client that is running Windows 98. The Flash presentation we created stops half way through and repeays on all their machines with W98. Any solution?
Running Text
Hello there
I have a problem trying to re-position objects/text, but i cant change their position as it animates the move, i have running text (x-files style) (a word on a keyline, each letter a key frame) its fine i just want to change the position of it. I've tried cuting and pasting frames to the new position but doesent work.
someone suggest i change the words into movie clips, so that i can move them around, it works for individual objects but not running text, ive tried putting each letter on it's own keyline but it is too time consuming and imposible to allign each letter of a word next to eachother perfectly.
Running Text
Hello there
I have a problem trying to re-position objects/text, but i cant change their position as it animates the move, i have running text (x-files style) (a word on a keyline, each letter a key frame) its fine i just want to change the position of it. I've tried cuting and pasting frames to the new position but doesent work.
someone suggest i change the words into movie clips, so that i can move them around, it works for individual objects but not running text, ive tried putting each letter on it's own keyline but it is too time consuming and imposible to allign each letter of a word next to eachother perfectly.
Swf Running Slow On Old Pc's
Hi,
Again I am running out of solutions, so I'm calling in your help again.
I have a swf. (surprised ? ) It runs fine on 95% of all pc's, however, it slowes down terribly on old pc's with about 350 Mhz Cpu's.
Unfortunately that's my main audience, and I plan to use many variations of this swf.
After reading on this subject, I did several tests. The results are in the jpg at the bottom.
First I took out the alpha tweens. That helps a bit, but also takes out a lot of the fun.
Second I took out all the rotation. Didn't really help.
The movetrain-code below is an extration of the total code, I guess that's where it goes wrong. When a train moves, a total of 15 mc's are moving (3 wagons, 8 wheels, 1 loco, 3 loads). That may be causing the slowing down, but I don't see how I can change that.
Some info:
- all graphics are vector, done inside MX2004
- the stage is 800 x 600, 24 fps
- the loads are moved from outside to on the stage, the other graphics are duplicated.
- It doesn't matter how many trains are on the stage.
So what can I do ?
Papermouse
__________________________________________________ ________________
In order to understand this code better, here is the working thing:
http://www.lesje.nl/loc.swf, the wagons are called T1-T15 (left to right, top to bottom), the cards are called card1-card15, randomly put on stage. (btw , it's for kids. one has to sort the triangels with the same shape into a train)
Code:
MoveTrain1 = function() {
for (M=1; M<=5; M++) {
MT1= M*3 -2
MT2= M*3 -1
MT3= M*3
// if 3 specific cards all have the same _y, and that is the same _y as Target 1
if (_root["card"+MT1]._y == _root["card"+MT2]._y &&
_root["card"+MT2]._y == _root["card"+MT3]._y &&
T1._y == _root["card"+MT1]._y &&
// and the Target is still on the stage
T1._x <= limit){
// move those 3 cards, the targets and the locomotive off the stage.
_root["card"+MT1]._x += speed;
_root["card"+MT2]._x += speed;
_root["card"+MT3]._x += speed;
T1._x += speed;
T2._x += speed;
T3._x += speed;
_root["loc"+1]._x += speed;
// the “loc1” are instances of an MC, which has wheels turning on the timeline inside that MC,
// this makes sure the right wheels play, not of all the locomotives.
if(once1!=1) {_root["loc"+1].gotoAndPlay(5);
once1=1;};
if(_root["loc"+1]._x>=1200){_root["loc"+1]._x=2000;};
if(onceT1!=1) {_root["T"+1].gotoAndPlay(5);
onceT1=1;} ;
if(onceTT1!=1) {_root["T"+2].gotoAndPlay(5);
onceTT1=1;};
if(onceTTT1!=1) {_root["T"+3].gotoAndPlay(5);
onceTTT1=1; move1 = 1};
else if etc….
// here it basicly repeats itself 5 times,
//for the five different locomotives.
}
}
}
Running Programs?
hi, i wanna make an interactive desktop in flash, i know how to do this but i want to add buttons to it and when you click them it runs the program.
EG. have a button that when pressed loads up flash.
Any ideas thanks.
Running Crazy... Please Help
I've got a MovieClip that has "stop" in frame 1 , frame 2 is empty and animation from frame 3 to 10.
I added it this script
if ( _currentframe == 1 ) { gotoAndPlay(3) };
if it's in frame 1 ( with "stop" ) it should go to frame 3, play the animation, return to frame 1 and so on...
But after it plays one cycle of animation it freezes in frame 3 .
Why could this be happening?
Thanx!
Mc Starts Running After 3 Min.?
Hey,
I have a few mc's that suddenly start running uncontrolled after 3 minutes of looking at paused page??? I have buttons on the top layer that mostly have 'gotoAndStop' action scripts. How is this possible??? They actually don't start running uncontrolled, they go back to frame 1...
Aaaaargggg... help...
.exe Running Choppy
I made a pong game in flash, and exported it as an .exe file. When I go to Control>Test Movie, everything runs fine. However, if I play it by loading my Pong.exe file, once you get in the game, it runs really choppy. What is causing this and what can I do to correct it? Thanks.
Running Out Of Memory?
I have created .swf movies that get launched via buttons, the prolbem is that after playing a few of these large .swf files the browser hangs, I think I have pushed the memory to its limits, how do I release the memory so the next .swf will not hang?
See this sample @:
http://www.clinical-resources.com/steve/intellivue/
Regards
Steve
Running Programs
I'm creating a flash game, and anyway, I want it so when you press a button, it will run "button.exe" (for example). I'm using flash MX, and the movie will not be played in an internet browser. (It will be downloaded via ZIP, and users will run the game off their computers)
How would I acomplish this?
===PLEASE HELP Running An EXE From Within A Movie===
Hiya
I need to run a exe from within flash at a mouse click...what code should i use?
I was given:
on (press) {
fscommand("exec", "nameofexe.exe");
}
But its not working for me...can anyone help me......please!!!
Cheers
Loading But Not Running Another .swf
I need to load an external .swf in the background, but not play it until the user calls for it. I have tried the following approach (this is from memory, so ignore any syntax errors):
Code:
var holder = _root.createEmptyMovieClip("holder", 1);
var loader = new MovieClipLoader();
var listener = new Object();
listener.onLoadInit = function() {
holder.stop();
}
listener.onLoadComplete = function() {
holder.stop();
}
loader.addListener(listener);
loader.loadClip( "myExternalSwf.swf", holder);
The result is that the first time I access my movie from any computer, the loaded swf plays as soon as it's loaded. On subsequent visits to the same page, the loaded swf behaves as expected, and does not run until I call its play() method.
Does anyone know a workaround? Or another technique for loading an external swf without running it? I can't modify the loaded swf.
Running Once Per User
Hey Everyone,
Just looking around for some advice with a shoshkele (floating flash ad) I'm trying to get working. I'm mainly a front-end developer so i'm a little... rusty on the actionscript side so this is most likely something simple I hope, but I'm trying to make the advert only run once per web visitor to the site (similar to how you can make a popup run once).
I've given it an attempt by trying to use a sharedObject... it works in flash player but not in IE... here's what i've done: (.fla file also attached)
The movie runs through to frame 30 - this is where I've tried to do the sharedObject
code: //starts shared variable object
var totalPlay = SharedObject.getLocal("totalPlay");
//sets the shared variable value to delivered
totalPlay.data.savedArray = new Array("delivered");
//writes cookie to browser memory
totalPlay.flush();
totalPlay = SharedObject.getLocal("totalPlay");
stop();
and I've put this action in on the first frame so the second time it plays it will go to the last frame in the movie and not play the main advert part
code: if (totalPlay.data.savedArray[0] == "delivered") {
gotoAndPlay("stop");
}
Can something like this even work or is there a better way to do it? I considered using session variables but it's for a client and the data model they're using is ASP which I have absolutely no idea about coding, any pointers would be appreciated...
Thanks
Running Man Animation
Have a client who requested a running person...but not quite sure how to do it...here's a sample of what I'm talking about:
http://www.homepage-grafiken.de/cont...tionen-1.html#
(the blue guy towards the bottom)
Any help is appreciated!!!
|