ActionScript 1/2 :: Fscommand Exec Doesn't Work In Flash?
Sep 6, 2007
I normally do a CD for a convention twice a year, and this year was different. As usual things gets down to the very last minute with changes, but normally we don't encounter any problems with the opening of powerpoint presentations from within a flash, with the fscommand, as long as all the presentations and software are on the fscommand folder.
But yesterday I just couldn't make it work. I thought at first that was a vista thing, that wont let you run a cmd.exe window from flash, but then I realized it was happening, even after burning the CD in almost any enviroment. I tried changing the publishing parameters to flash player 7, 8 and 9, and try to publish it with action script 1 and action script 2 in all the possible combinations. Then i got smart and republished one I knew that worked, and it stop working.
[Code]...
View 6 Replies
Similar Posts:
Aug 26, 2002
I created a swf movie which contains a button with this action:
[Code]...
then i published this movie to an *.exe program (projector). In it's folder i've created another folder named 'extra', which contains program 'start1.exe'. but program 'start1.exe' doesn't load, when i click the button.. is there something i don't know?
View 1 Replies
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
Nov 9, 2009
I am having trouble getting even a trivial example of fscommand("exec", "..."); to work. I just need to open a Word .doc from within a flash exe projector. Eventually this needs to be on a cross-platform CD, but I'd be happy to see it work from the desktop of my PC at this point! I've attached a really simple sample.
View 3 Replies
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
Jan 5, 2012
I am writing a text file with batch file and this batch file which is called from fscommand.
I need to pass a parameter from fscommand. Is is possible ?Following is flash and batch file [code]...
View 3 Replies
Feb 23, 2006
can somebody explain me a little bit fscommand exec function I created a folder fscommand and put some exe and succedded to run it but in other folders above it with ../ and subfolders I couldn't get it to run exe files
View 6 Replies
Feb 11, 2011
I could succesfully open a external pdf with the following command in Flash cs3 on a Mac: fscommand("exec", "test.app");test.app (inside an fscommand folder) is an apple script that opens the pdf inside the fscommand folder, to make it work I needed to copy the fscommand folder into the MacOs Folder of the Mac Projector File. The same steps don't seem to work with Flash cs5. I can't downgrade my cs5 project to cs3.Is this problem a bug in Flash cs5?
View 9 Replies
Aug 23, 2011
I prepared a footer for a website and have the following issue:There are two buttons on footer bar that interests us. One is fullscreen - clicked activates fscommand function. But fscommand works only when I debug my fla. Otherwise, nothing happens. There's an additional variable that shows if fullscreen is active - nothing happens.There's also a "coder" info. I wanted to use navigateToURL function for "mailto:..." adress, but nothing happens, even if if changed it to [URL] adress. Also debugger doesn't activate it.I tested it in browser, completely nothing happens. There's the code, works without any "addons":
[Code]...
View 7 Replies
Mar 2, 2010
I am calling some processing sketches(java exe) from as3
Code:
btngametwo.addEventListener(MouseEvent.MOUSE_DOWN,btngametwoClick);
function btngametwoClick(e:MouseEvent):void {
if (btnLockOut == 0)
[Code].....
using a bat I get the command window up for a few secs--I do not want that
but I need to have each sketch in a subfolder in "fscommand " folder--if I do not use subfolders I can not have multible games.....anyway I can not seem to use a path to the .exe in the fscommand line that works
View 1 Replies
Aug 28, 2009
I have a problem with Flash Player 9. I have developed a flash application (projector) in Flash CS3 using AS2 . I can compile it into Flash 9 projector, but when I do that, it will not run FSCOMMAND("FULLSCREEN", true); anymore. I wonder why this is as such.
When I read through some help resources, somewhere it says that FSCOMMAND is not supported in FP9 because of some security reasons and it says that I should use External Interface API instead.
If I have to use External Interface whatever remember that I am working with flash projector (exe), not in a browser. I use "trapallkeys" to stop people from pressing ESC and CTRL-F to quit fullscreen mode. However, ESC and CTRL-F still work if I put "trapallkeys" above "fullscreen".
So the problem is, I only able to use either one, not both. This is really strange.
I could not make "showmenu", "false" to work either.
View 2 Replies
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
Mar 29, 2012
my exit bttn in swf file using swf player for android doesnt work using fscommand. How?
View 2 Replies
Nov 29, 2005
I know, I can send fscommand but can i take in fscommand and process it?
View 6 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Apr 14, 2010
I'm having a problem, where random IE's are not able to display my .swf file. All the IE's are IE8 with the latest flash pluggins and all security's are set at Medium, however some IE's get just a grey box and other's get the full flash file. What's going on? It works fine in Safari and Firefox of course, but why so much difficulty with AS3 Flash9 in IE? here is a link to the site, and it's the big image changer at the bottom of the front page.
[URL]
View 2 Replies
Sep 12, 2009
I'm trying to export an animated text image, but for some reason, when I publish in .gif format, the text is all screwed up. I have example of it, in the attached file. It worked for me in flash mx, but in flash cs4 it doesn't work. I want the text to be readable and animated, in this .gif.
View 4 Replies
Aug 24, 2007
For some reason the Flash Uninstaller won't do its job. It says 'Installing', then 'Quit' but doesn't do anything. I've got all the browsers shut down.
MacPro, OS 10.4.1
View 0 Replies
Aug 20, 2009
I am developping this video player: In the exemple above, the player is loading this start image, to display it before the playing of the video:Here, I then tell the player to load the same image, but on another domain: As you can see, it doesn't work anymore. I searched on Google and discovered that I theorically had to add a crossdomain.xml, to make sure that there isn't security protection that avoid swf to load images from other domain. so put these two files on my different domains, to tell the swf to accept files from all * domains
View 2 Replies
May 3, 2009
I am a student trying to learn how to take multimedia elements from one class and put them on a webpage using Dreamweaver CS4. From an online tutorial, I created start/stop buttons with ActionScript3 URLRequest to reference a sound file. The swf works fine when played; it plays from the html generated by flash but when I use Dreamweaver CS4 > insert > media > swf and then preview page in browser (firefox), the button doesn't do anything. When I compare the html page generated by flash to the html created by Dreamweaver, they look completely different. I don't have a clue what to do next.
[Code]...
View 2 Replies
Nov 25, 2010
I have Flash CS5 and I'm trying to export SWC from it to use as a library with Flex SDK (FlashDevelop). I have "Export SWC" checked in publish settings and for a while it worked. Now, even if it still is checked, SWC isn't created (at least in the same directory as SWF). I even tried creating a completely new FLA and copied everything from the old library in there. Still it doesn't work.
View 6 Replies
Nov 26, 2010
This sounds quite ridiculous but my space bar doesn't want to work in Flash CS3. I'm a web designer and started recently for a new company. They asked me to include a flash image on one of our websites. When I try to add text to the stage, I can't make spaces. That is all. I've used flash before and I've never ran into this problem
View 2 Replies
May 6, 2011
I have a flash form that although it does exactly the same as its html version (just passing variables) doesn't work. It doesn't redirect to the right page, processing the send variabeles and sending a custom email. [code]As you can see it's just a form - no hidden scripts - and sends variables to the correct url.I've turned it into a flash form which is just a button which sends the exact same variables as above, but now the browser isn't redirected to the same page. Although the variables are sent which I can check in Firebug. It doesn't redirect to the same page as the html form and all variables are therefore not processed and no email is sent. The only thing I had to workaround is the variable name 'function' which in AS is a reserved word. Bypassed that by using array notation.It's just like the url the variables are send to can see whether the form is sent through html or flash?[code]
View 2 Replies
Nov 12, 2010
Why Flash Firebug doesn't work with flex 4.5?
UPDATE:
I have Flex 4.5 and in the main application, in the script tag I write:
import ominds.Firebug;
I use flash player WIN 10,1,85,3 Debug enabled. I export swf as 10.1.85 version.
And when I open the flashFirebug I get this: "No SWF files with the O-Minds package found, you should import the O-Minds package into your flash files. For more information visit: o-minds.com/products/flashfirebug"
View 3 Replies
Dec 30, 2010
When I work on my Air Project, I used stop(); to stay in a frame(which is my menu), I built the .air for testing purposes and the frames keep looping, as in, it plays all the frames, and it won't stop as it's instructed to. I'm building my Application in Flash CS5, not Flex.
View 1 Replies
Feb 4, 2011
My problem is that I am using a variable to identify an element section of the many galleries I have under the tag "galleryType" and nothing is returning for me to display. Am I searching for my galleryType the right way in my code or do I need to loop through my galleryTypes on my XML.
here is my xml code:
<My_gallery>
<galleryType Name="GalleryName001">
<images>
[Code]....
View 2 Replies
Apr 30, 2011
I have a flash swf file which I don't want people to be able to download and decompile it . my first solution was to load this swf file in another swf file and put the container swf file in my site . but something's wrong . when I load my swf file in another swf file using : myloader.loadMovie ("myswffile.swf");it works fine in my local computer but when I load these two swf files to my server and try to use them there , it doesn't work .
View 1 Replies
Jul 4, 2011
I'm new to papervision 3d and I created two display objects in basic view.
Here's a part of the code :
...
_stick = new Cube(materials, 50, 5, 500);
_ball = new Sphere(new ColorMaterial(0xfc0000), 80);
In the onRenderTick method, I tried to check whether two objects are hitted
[Code]...
However, stick.hitTestObject always returns false even if the stick really hits the ball as I see in the flash.
View 1 Replies
Aug 24, 2011
I need to use flash as3 to create a game, and I have tried to use 3 layer to load my swf. My game is in the third layer, and the first and second layers are just a preloader script.My problem is when the game is loaded onto the stage of first layer my KeyboardEvent function is not work until I press the stage.I have try to use Event.ADDED_TO_STAGE to solve it, but I also get a same error.this is my code for preloader
var request:URLRequest = new URLRequest("game.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);[code]....................
View 2 Replies
Aug 31, 2011
Today I'm going to use this method:
vardataObject:Object = {...}
Facebook.ui("stream.publish", dataObject, cb, "iframe");
function cb(res:Object):void
{
...do something...
}
I always use this method and it always work. But today the callback doesn't work!I'm using the API 1_6, but I've tryed with API 1_7 too.
View 1 Replies