ActionScript 2.0 :: Using FSCommand To Execute External Apps?

Apr 6, 2009

Basically I'm trying to use fscommand to open programs outside of the flashplayer. This I thought would be pretty simple but apparently not.Here is the actionscript I've already tried:

Code:
on (release) {
fscommand ("exec", "C:UsersMattDocumentsflashMTRXfscommandpin.bat");
}
on (release) {
fscommand ("exec", "fscommandpin.bat");
}
on (release) {
fscommand ("exec", "pin.bat");
}

But guess what, on release nothing seems to happen.The SWF file is in the folder "MTRX". I'm using Flash MX 2004. This is what the BAT file is:
Code:
@echo off
start PinballBot.exe
When I open it from windows explorer that works.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Can Send Fscommand But Can Take In Fscommand And Process It

Nov 29, 2005

I know, I can send fscommand but can i take in fscommand and process it?

View 6 Replies

ActionScript 3.0 :: Adobe SDK For Facebook: External Web Apps With No JS?

Apr 14, 2011

I am developing a game and using the official "Adobe AS3 SDK for Facebook platform" libraries to connect it to facebook.In the libraries, you have two options for connecting to facebook, via the Facebook.as, and the FacebookDesktop.as.The Facebook.as is meant for Facebook Canvas and Web deployment, and it assumes the Facebook Javascript to be embedded in the page that has your .SWF.

However as we all know, games are frequently redistributed, just by taking the .SWF and posting it elsewhere, where most likely it wont have the Facebook Javascript embedded in the page.My question is, that in these situatins, is it a good idea to use the FacebookDesktop.as instead? IE detect the URL, and if we are on 3rd party Website, then use the FacebookDesktop.init() etc methods instead of the Facebook.init() ones?

What do you think? Are there any big disadvantages or a better way of doing it?

View 2 Replies

Flash :: Professional - Execute An External App?

Apr 22, 2010

I want to call an external exe file from Flash. I have tried different commands but can't seem to get it to work.

View 13 Replies

Possible To Execute External Flash Projector(.exe)?

Oct 7, 2010

I have a question that:Is it possible to execute external flash projector(.exe) file on clicking a button in my movieclip. I tried the following code but no work:

on(release){
fscommand("exec", "myprojector.exe")
}

[code].....

View 1 Replies

ActionScript 2.0 :: Possible To Execute External Flash Projector?

Oct 7, 2010

Is it possible to execute external flash projector(.exe) file on clicking a button in my movieclip. I tried the following code but no work:[code]exe and swf files are on the same location on hard disk.

View 1 Replies

ActionScript 3.0 :: Execute External Javascript On Last Frame?

Mar 29, 2010

I'm authoring in Flash CS4 using Motion Tweens.
 
Here is the situation.  I have a JavaScript that closes the DIV containing my flash object.  It currently closes after 15 seconds. That is supposed to be how long the Flash movie lasts.  however, slower machines run the movie longer.  this means the flash object closes too quickly and they don't see the entire movie. . . if I increase the time, the users of fast machines have to wait around awhile for the movie to disappear.

So, I would like the movie to execute the javaScript when it gets to the last frame.

View 5 Replies

Flex :: Execute An External EXE From AIR Or Java Web Application

Aug 14, 2009

Need to execute an external EXE from either a Java web app (running on Glassfish on Windows Server) or from an Flex/AIR desktop app.

View 2 Replies

ActionScript 2.0 :: Execute External Flash Projector(.exe)?

Oct 7, 2010

Is it possible to execute external flash projector(.exe) file on clicking a button in my movieclip. I tried the following code but no work:

on(release){
fscommand("exec", "myprojector.exe")
}

exe and swf files are on the same location on hard disk and i am using actionscript 2.0.

View 2 Replies

ActionScript 3.0 :: Html Page To Execute Some Code Which Uses An External Library

Apr 28, 2011

I have embedded an swf into my html.  This swf allows a user to send an email to someone.  When the email is sent, I need the html page to execute some code which uses an external library (Not load a new page).  Is it possible for my html page to know when an email has been sent?

View 5 Replies

Media Server :: Execute External Script OnDisconnect  (main.asc)

May 19, 2011

Does anyone know if it's possible to execute an external script with the onDisconnect function on FMS?
 
I'm trying find a better way to log when a user disconnects from a chat application.

View 1 Replies

ActionScript 3.0 :: Execute Javascript Without Calling External Functions In The Html

May 9, 2010

My needs are to execute a javascript whitout calling any external function of the html file when a flash button is clicked. I need to obtain the effect that happen when the user put in his address bar the text javascript:"alert("Hello World!"); and press enter I need to do this whitout calling any external functions, whitout calling anything in the html file, all just with the swf. Of course the script that i must call is another than javascript:"alert("Hello World!"); but let's begin with this easy script and when working i can thikn to implement the complex one

i tried this

ActionScript Code:
on(release)
{
function runJS(script:String):Void {

[Code]...

but is not working, i get a syntax error, maybe cuse of the " in "Hello World!"

I want to ask if what i need to do is possible and, if yes, why my AS code is not working.

View 4 Replies

ActionScript 2.0 :: Does Flash Execute Codes Only In The Keyframe Or It Execute Whatever Is In The Frame Regardless Whether Its A Keyframe Or Not

Mar 16, 2005

When I place some codes in a keyframe, these codes are showing on all the following frames up till the next keyframe with codes. My question is, does Flash execute codes only in the keyframe or it execute whatever is in the frame regardless whether its a keyframe or not?

View 1 Replies

Flash :: Execute An External .exe From A Local .swf Using A Local XML Socket Server (C#)

Jan 7, 2012

I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.

I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.

My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."

The only way i know to fix this - is to change the security settings of flash - not very user friendly!

So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.

View 1 Replies

Get Fscommand In Flex3?

Oct 8, 2009

I have one swf file in that i used fscommand to get final output when submit button clicked in that swf i am loading that swf in SWFloader in flex3 .i need to get fscommand value as Alert, how to get that value first and display as alert.

View 2 Replies

ActionScript 3.0 :: FSCOMMAND Launching App Twice?

May 22, 2011

why the below line of code launches notepad.exe twice?

fscommand("execfile", '"C:\Windows\Notepad.exe"'); //opens notepad 2x - path in double quotes

 
verses this line of code which opens it only once?
fscommand("execfile", "C:\Windows\Notepad.exe");  //opens notepad once

I'm working on a FP10 .exe projector project and noticed this odd behavior.If I had spaces in my file path, I'd want to surround it in double quotes, but that has the undesired effect of opening the app 2x.Since I don't have full control over all the elements in the project, I'm forced to use fscommand in this scenario.

View 1 Replies

ActionScript 2.0 :: Open A Pdf Without Fscommand?

Jan 23, 2012

I have a project that opens a pdf using fscommand.

View 2 Replies

ActionScript 3.0 :: Turn Off Pop-up With Fscommand?

Jun 21, 2010

with AS2, we use fscommand to do it, but AS 3 I don't know how to do ..

We can reference from: [URL]

View 1 Replies

ActionScript 2.0 :: Call Another Program Through Fscommand

Jul 21, 2009

I am quite a newbie and want to call another program through fscommand.Flash and the programm I want to call are both running on my hard disk (NOT online)I do not really understand what I have to put into:

1. the line command

2. the line parameters

View 2 Replies

Professional :: Flash 9 Fscommand Exec On Mac?

May 8, 2008

When publishing a mac projector (app) from Flash CS3 on PC,in order to use the fscommand("exec", appToLaunch) function, itseems as though the fscommand folder containing appToLaunch must berelative to the "Flash Player" app in the projector package. For example, if I create a mac projector called projector.appwhich calls fscommand("exec", "myOtherProjector"), and I putmyOtherProjector in the fscommand folder in the same directory,sitting next to projector.app - when I fun the projector thefscommand fails.

However, if I move the fscommand folder containingmyOtherProjector to the Contents>MacOS folder in the app folder(on mac right click, go to "show package contents"), next to "FlashPlayer" then run projector.app, the fscommand works and everythingis good.It looks to me like the fscommand folder needs to be relativeto the Flash Player and not to the projector. This means that the contents of the fscommand folder need tobe doubled on cross-platform projects. That's not good when you'repushing the limits of file space on a cd

View 2 Replies

ActionScript 2.0 :: FSCommand Not Working In Web Browser

Aug 7, 2009

I've done all of these and everything is ok. but I want to do more. I want to play my flash in a web browser and I used publish to html. but my fscommand doesn't work in the web browser! what should I do?

View 8 Replies

ActionScript 2.0 :: Fscommand And Opening An Applications?

May 28, 2002

I am working on putting a portfolio on CD and would like to include a video. The video I want to be played by windows media player, but I seem to be missing something. I have a button and have put this code on it...

on(release){
fscommand("exec", "c://Temp.mplayer2.exe");
}

I have tried multipe variations of this code but nothing happens.

View 2 Replies

IDE :: FullScreenTakeOver - Fscommand Fullscreen Won't Work

Nov 5, 2009

The project is a keyframe based presentation and I'm an actionscript novice. It is to run, full screen, as an executable off a CD ROM and there are 4 .flvs in the executable. Here is my code for the first frame which contains opening video, and it works fine (sadly a simple fscommand fullscreen from as2 won't work). Problem is, I get black screens & weirdness when I try to use stageDisplayState and fullScreenTakeOver's on the frames that contain the other 3 videos.

[CODE]...

View 4 Replies

ActionScript 3.0 :: FSCommand (Quit) Only Works Sometimes

Dec 9, 2009

What happen is that i have a quit button and when it is clicked:
fscommand("quit"); will execute.
However for some reason, it only works sometime and at other time, it has no effect.

So, anyway, this is the code:
In the menu:
package {
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.events.MouseEvent;
import flash.ui.Mouse;
[Code] .....

View 3 Replies

ActionScript 2.0 :: Stage And Fullscreen Fscommand?

May 4, 2011

I'm making a flash movie project, the stage size is 600x800. When I use fscommand to make the flash projector fullscreen it shows everything, including out of stage things. How do I get the projector to only show the stage Fullscreen? PS: An answer in AS 3.0 would be fine to! As 2 is preferable!

View 1 Replies

ActionScript 2.0 :: Using FSCOMMAND(exec) SAMPLE In A ZIP

Jan 19, 2004

i was playing with the fscommand for a few times now but i havent made the exec command execute a file(in a subfolder)... a directory with a movie and a folder with sample exec file

View 1 Replies

ActionScript 2.0 :: Prevent Resizing Using FScommand?

Aug 20, 2002

Is there a way to prevent resizing using FScommand?

View 2 Replies

ActionScript 2.0 :: Determine If Mac Or PC Within A Flash Projector (for Use With FSCommand)?

Mar 11, 2009

Determine if Mac or PC within a flash projector? (for use with FSCommand) How do I determine if a computer is Mac or PC within a flash projector? I need this because I've got several FSCommands I need to use within a projector (such as launching an application or file) and need to have different commands for Mac and PC.

[Code]....

View 4 Replies

ActionScript 3.0 :: FsCommand Scorm Calls Not Working?

Jan 6, 2011

I published my fla as scorm 1.2 tracking. I ziped up my files and loaded to lms. It will not write the score. It runs and functions ok but does not write score.

fscommand ("LMSSetValue","cmi.core.score.min,0");
fscommand ("LMSSetValue","cmi.core.score.max,100");
fscommand ("LMSSetValue","cmi.core.score.raw,85");

[code]....

View 9 Replies

ActionScript 3.0 :: FsCommand Scorm Calls Not Working

Mar 31, 2011

I created a simple fla with two frames. Frame two has this code below to write a score to the lms (blackboard).I published my fla as scorm 1.2 tracking. I ziped up my files and loaded to lms. It will not write the score. It runs and functions ok but does not write score.[code]

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved