ActionScript 3.0 :: Pass Parameter With Fscommand Exec?

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


Similar Posts:


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 :: 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 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

ActionScript 2.0 :: Fscommand Exec - Couldn't Get Subfolders To Run Exe Files

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

IDE :: Fscommand Exec - Open A Word .doc From Within A Flash Exe Projector

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

Professional :: Fscommand Exec On Mac To Open Pdf Works In Cs3 Projector File

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

ActionScript 2.0 :: Fscommand("exec" - Path) Doesn't Load

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

ActionScript 3.0 :: Use A "path" In Fscommand Exec?

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

Call A Function With Event Parameter When Have No Event Parameter To Pass?

Aug 14, 2009

Forgive me for this stupid noob question but I want to call a function (loadList) that originally gets triggered after a mouseevent from another function (addToXML) that does not have an event.

The loadList function takes info from a XML var, sticks it into an array which then gets loaded into a tile list and that is working fine.

The addToXML function when called adds elements to the XML var after which I want to call the first function with the event parameter so it refreshes the items in the tile list.

I know it can do this by creating a new array and loading that into the tile list in the addToXML function, but it be much simpler to just recall the function.

I have tried things like

Code:
addToXML.addEventListener(Event.COMPLETE, loadList);

but all the event constants I have tried give me error messges like "1061: Call to a possibly undefined method addEventListener through a reference with static type Function."

View 3 Replies

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

AS3 :: Flash - Pass Parameter By Value?

May 6, 2010

im having problems with the following code:

for (var i:Number=0; i<numFaces;i++){
var faceLoader:Loader = new Loader();
faceLoader.contentLoaderInfo.addEventListener( Event.INIT,
function(fle:Event){

[code]....

The problem is that im sending the variable i to the function LoadCara on every iteration, and its always called with the last value of i. I would like this function to be called with the appropiate index.

View 2 Replies

Actionscript 2.0 :: Get URL Parameter (Pass It From HTML To Swf)?

Jun 14, 2009

I'm trying to get a URL parameter in my flash...The parameter is a xml url...
 
testXML = new XML();
testXML.load(xmlurl);I tried every code I can find on the web and couldn't find a solution to get xmlurl
  
I tried var xmlurl:String = String(_root.loaderInfo.parameters.xmlurl); but it didn't work...
_global.xmlurl didn't work either
 
Here is my HTML:
 
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="590" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="test.swf?xmlurl=data.xml" />

[code]....

View 16 Replies

ActionScript 3.0 :: Pass A Parameter In A Class?

Dec 16, 2011

I have seen this code in ultitouch gesture samples. But I don't kno how can I pass a bitmap parameter to the statement  [Embed(source="imagenes/prueba.jpg")], how can I use this code with other bitmaps using parameters in this class?
 
package
{
import flash.display.Bitmap;
import flash.display.Sprite;

[Code]....

View 4 Replies

Pass Array For Inspectable Parameter?

Jun 21, 2010

When I create a custom component, I define a property which is array that could accept values from the enumeration, see code below:[code]...

I would like to know how I can pass array of values to my component from MXML application that uses my custom component.

View 1 Replies

Actionscript 3 :: Pass (MovieClip) As A Parameter?

Mar 14, 2011

How can I pass the keyword this OR an instance name as a parameter inside a function?

function (reference:InstanceName):void // kind of what I want
{
reference.gotoAndPlay("frameLabel");
}

View 2 Replies

Php - AIR Application And HTML Pass Parameter?

Jan 18, 2012

I have an AIR application that is downloaded from a webpage. In order to download the application, one must be logged in. I would like the first time the user opens the application, to be able to acces the userId that was logged in.

Is there any way do pass that information?

View 2 Replies

ActionScript 3.0 :: Pass MouseEvent As Parameter?

Oct 12, 2008

I would like to pass a mouse event : MouseEvent.CLICK as a parameter.

example:

ActionScript Code:
activateEvent(MouseEvent.Click,clickedEvent);
function activateEvent(event:MouseEvent,destination):void{[INDENT]

[Code].....

View 6 Replies

ActionScript 3.0 :: Pass URL Parameter Into TextField

Dec 19, 2009

I must be missing something obvious. I'm trying to pass a parameter from a URL into a text field in flash, but it doesn't seem to work. I've got a dynamic text field (display as html is checked), with an instance name txt_txt. Here's the only line of code in the file:
txt_txt.htmlText="test "+this.loaderInfo.parameters.nameVar;
And, when I upload it and use the following, I get "test undefined" as my return!? [URL]

View 0 Replies

ActionScript 3.0 :: Pass Function Parameter 'evt'?

Feb 24, 2012

I'm just looking for clarification on the passing of a parameter and why/how it works.

In this example, it looks like you create a parameter to be passed in called 'evt', but I don't see it used anywhere in the function. [code]...

View 9 Replies

ActionScript 2.0 :: Pass Parameter From ASP To Flash?

Sep 20, 2006

explain with 1 example how to pass parameter from ASP to FLASH..or otherwise direct me to the right tutorial site

View 3 Replies

ActionScript 3.0 :: Pass A Parameter Into A Variable?

Jul 20, 2009

I have a hangup on very basic issue...I am trying to pass a parameter into a variable that gets passed into a function.

Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;
var myBtn:String = myFunction();

[Code]....

View 2 Replies

ActionScript 3.0 :: Pass Parameter From First Frame To Class?

May 31, 2010

I have an application that gets its variable data in XML file.

This application is used for different clients with different data.

Some of the data I pass to the Document class from the first frame. I would prefer to pass url to the XML file the same way, without the necessity to update the document class. But now I have to hardcode this url in the class every time, because I cannot get parameters from the first frame to the class at once, only after some time (like after loading XML with hardcoded url).

Is there a way to force executing of the code on the first frame before the code in the class will proceed?

View 9 Replies

ActionScript 3.0 :: Pass Associative Array As Parameter?

Oct 6, 2009

Is it possible to create an associative array w/o using a variable to pass it as parameter to a function?[code]...

View 1 Replies

ActionScript 3.0 :: Pass Parameter To EventListener Function?

Dec 1, 2010

how to pass parameter to eventListener function.[code]

View 1 Replies

ActionScript 3.0 :: Pass A Parameter With An Event Call?

Dec 23, 2010

In actionscript3 how do i pass an parameter with an event call. when i use dispatch.
 
like  dispatchEvent(new Event("Loaded", myvariable));

View 4 Replies

ActionScript 3.0 :: Pass A Parameter To The Constructor Function

Mar 3, 2011

I´d like to know how could use the Timer class extended.I´m trying to pass a parameter to the constructor function, so I can use it inside the listener.
 
Here´s example:
 
[CODE]
package { import flash.utils.Timer import flash.display.DisplayObject public class ChangeColorTimer extends Timer {    public static const CHANGE_COLOR:String = "changeColor";    public var obj:DisplayObject    public function ChangeColorTimer(delay:Number, repeatCount:int, obj:DisplayObject ) {   super(delay, repeatCount)   this.obj = obj   } } }
[/CODE]
 
That was the ChangeColorTimer that extends Timer.Now, I´d want to know how would I use ChangeColorTimer.I thought it was the same as using Timer.I´ve tried this:
 
[CODE]
public function changeColor(mc:MovieClip):void  {   var colorTransform:ColorTransform = new ColorTransform()   colorTransform.color = 0xEE0000   mc.transform.colorTransform = colorTransform   var changeColorTimer:ChangeColorTimer = new ChangeColorTimer(400, 1, mc)   changeColorTimer.addEventListener(ChangeColorTimer.CHANGE_COLOR, setNormalColorListener)   changeColorTimer.start()     }  private function setNormalColorListener(e:Event):void{   trace("called")        }
[/CODE]
 
I called changeColor, but, I don´t get "called" in the output from the setNormalColorListener listener.

View 2 Replies

ActionScript 3.0 :: Pass A Reference Parameter In A Function?

Mar 29, 2011

i want to pass by reference so i can use this variable outside the function.
 
What im doing is creating a global variable such as var cont:int; and then in a eventListener like enter_frame (stage.addEventListener..) calling a function called "mover", this function modifies "cont" value and i just want to print this value modified. The issue is i cant pass the value by reference just by const :S. The function is void, but if i change it to return int, its useless because each time i call the function, the value i want to return its created each time with a new value, beacuse i need to declare it so.. I read i can use a var such as Object but i really dont get it (im used to c++ i have to say)

View 3 Replies

ActionScript 1/2 :: Pass Parameter To OnRelease Function

Sep 26, 2011

Is there any way to pass parameters to mc.onRelease?

View 5 Replies

Actionscript 3 :: Pass Unevaluated Variable As Parameter?

Apr 9, 2012

How do I use an unevaluated (and/or possibly undefined) variable as a parameter for a function? For example:

function myFun(a:int):void {
a = 5;
}

[code].....

View 2 Replies







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