ActionScript 2.0 :: Passing Parameter To .exe File (external)

Apr 18, 2004

I have a .exe file (it is a player) i need to pass a parameter to this player so it could play a specific file ( the parameter is the name of this specific file ).

now what i do in windows is

Start>run ( <full-path-to-.exe-file><space><parameter> )

now that works perfictly on windows.

what i need is to be able to start this application ( the player ) and pass the parameter to it, all through a flash button (from the flash player )

View 3 Replies


Similar Posts:


PHP :: Multiple File Upload With Parameter Passing Not Working

Apr 7, 2010

I have created my own file upload flash app that has been working great for me up until this point. It uses PHP to upload the files and sends back a status message which gets displayed in a status box to the user. Now I have run into a situation where I need the HTML to pass a parameter to the Actionscript, and then to the PHP file using POST. I have tried to set this up just like adobe has it on [URL] without success.

Here is my Actionscript code:
import fl.controls.TextArea;
//Set filters
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var textTypes:FileFilter = new FileFilter("Documents (*.txt, *.rtf, *.pdf, *.doc)", "*.txt; *.rtf; *.pdf; *.doc");
var allTypes:Array = new Array(textTypes, imageTypes);
[Code] .....

The flashVars variable is the one that should contain the values from the HTML file. But whenever I run the program and output the variables in the PHP file I receive the following.
//Using this command on the PHP page
print_r($_POST);
//I get this for output
Array (
[Filename] => testfile.txt
[Upload] => Submit Query
)
Its almost like the parameters are getting over written or are just not working at all.

View 3 Replies

ActionScript 3.0 :: Read A XML File And Check A Parameter For Duplicates Of That Parameter In The File

Dec 8, 2009

I am trying to read a XML file and check a parameter for duplicates of that parameter in the file. There could be up to 200 entries with this parameter which is a number. How can I check to see if there are any duplicates?

View 2 Replies

ActionScript 3.0 :: Loading An External Swf File And Passing It Some Variables

Oct 30, 2010

I'am trying to load an external swf file and passing it some variables. He is my code:

[Code]...

When i load a simple swf, it work fine, but when i try to give him some variable it does not work anymore.(i'am also muting sound)

View 1 Replies

ActionScript 3.0 :: Passing Buttons Names To External .as File?

Jun 5, 2011

I am working on a project where I have on the stage 8 movie clips, and when hovered, they are to shake. I have made this into a class, and placed the code as an external .as file.

Each movie clip is named shaker_mc - shaker_mc7

I have also gone in and changed all of the button movie clips base classes to ShakeButton.

Right now I am getting a couple of errors, and I believe all i need to do is pass the buttons names to the class in the external .as file, but I am not sure how to do that? I had everything working without the external script, but I did not want to have to create the effect for each button.

The erros are:

1120: Access of undefined property shaker_mc.

Here is my code for the ShakeButton.as file

ActionScript Code:
package{ 
import flash.display.Sprite; 
import flash.events.MouseEvent; 

[Code]......

View 3 Replies

ActionScript 2.0 :: Passing Variable From External .txt File To Field Name

Jan 19, 2008

probably a hugely embarrassing beginner question, but I can't seem to find an answer anywhere. I think it's probably (hopefully?) just a syntax problem I'm loading the content of a dynamic text box from an external .txt file and I'm trying to find a way to change the content from a link in the .txt file (if that makes sense). The code I'm using to change the dynamic text box at the moment is:

[Code]...

View 1 Replies

Flex :: Passing URL As A Parameter?

Jun 3, 2009

<mx:HTTPService id="addWeb" resultFormat="object" result="Added(event)" fault="faultWeb(event)" showBusyCursor="true" method="GET" url="http://localhost/search/populate.php" useProxy="false">

[code].....

View 1 Replies

Actionscript 2.0 :: Passing Parameter

Jan 7, 2010

I have a function setup that I was hoping to re-use to eliminate a bunch of code, but I can't figure out how to pass a parameter to it. I'm getting the trace output, but the rest of the function is not working.Is there a way to get this to work?From what I can tell the syntax matches the examples in the reference guide.

Code: Select allfunction hideButton (elementName:String)[code]......

View 2 Replies

ActionScript 2.0 :: Passing Mc Name As A Parameter?

Oct 15, 2004

I'm trying to pass an mc instance as a paramter of a function. is this possible because I keep getting errors.

Code:
function moveCircle(sIncrement:Number, sMovie:String):Void {
sMovie._x +=sIncrement;
}

[Code]....

I'm trying to do this to cut down on redundant functions I've used in the past for simple as movements and controls.

View 2 Replies

ActionScript 2.0 :: Passing Mc Name As As A Parameter?

Oct 15, 2004

I'm trying to pass an mc instance as a paramter of a function. is this possible because I keep getting errors.

Code:
function moveCircle(sIncrement:Number, sMovie:String):Void {
sMovie._x +=sIncrement;
}

[Code]....

I'm trying to do this to cut down on redundant functions I've used in the past for simple as movements and controls.

View 2 Replies

ActionScript 3.0 :: Flash Passing Parameter To PHP?

Feb 2, 2008

i have 1 PHP page in which i have a Flash animation. this flash swf file, display 2 fields and 1 button.

this php page is called "test.php".

i'm able to send data from Flash to a PHP page, but i would like to send the content of those 2 fields to the "test.php" and display them. however, i do not know how to do it.

i see that it works but i'm not able to display or refresh the PHp page to display the result.

as walkaround i was thinking to collect the webpage address where is executed the flash and to send it to another PHP page. and this 2nd PHP page, will reload the test.php with parameters...

how to get under flash, the address of the actual executed php page ?

View 10 Replies

ActionScript 3.0 :: Passing Var Type Name As Parameter?

Sep 3, 2009

I would like to know if is possible to pass a var type as parameter to a function. I have several sounds in library, and I would like to do something like that:

Code:
function PlayMe(soundname:String)
{
var snd:this[soundname] = new this[soundname];
snd.play();
}

View 4 Replies

ActionScript 2.0 :: CS3 Passing Parameter/variable From Url To Swf?

Oct 23, 2009

i am trying to define a parameter/variable in my html file and pass it through to the embedded swf file:

Code:
<param name="movie" value="index.swf?wmode=transparent&index=XXX">
...
<embed src="index.swf?wmode=transparent&index=XXX" width="200" height="910" quality="high" pluginspage="http://www.adobe.com/shockwave/download

[Code].....

View 2 Replies

Flex :: Passing Parameter To SAP Query_view_data?

Jun 2, 2011

I am new to flex and SAP. I am designing a dashboard in flex. I have retrieved data from SAP query_view_data and I am able to show it in charts. However now I want to pass parameter to SAP web service to retrieve data between two dates. I am trying to this with the following code:

protected function adg1_creationCompleteHandler(event:FlexEvent):void
{
var IInfoprovider:String="0FIGL_O02";

[code]....

View 1 Replies

ActionScript 3.0 :: Parameter Passing Between Two SWFs?

Jan 27, 2009

The problem I am currently having right now is the inability to send variables loaded from the LoaderSWF to the SWF that has been loaded.

Concretely speaking, I have an embed script on an HTML page that contains several variables in the FlashVars line. The embed script loads a file called loader.swf. Loader.swf's main responsibility is basically take those variables from the flashvar, load the game URL and pass along the rest of the necessary parameters to the game that the loader is loading. However, I've been working out several solutions and none of them worked the way I wanted to.

The embed script is as follows:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="450" id="game-player">
<param name="movie" value="/shockwaves/loader.swf" />

[Code]....

how can I load the game SWF file and send along additional parameters with that request? Is there someway I can punch in variables into the myLoader object?

The code I came up with sends along the authenticity token just fine, however, it is not sending score_url correctly. I'm not sure if that is the correct behavior, but please enlighten me with any insights you may have.

I have also considered trying LocalConnection, but the problem is that I do not have the necessary source code for the games to set up LocalConnection on the receiving end.

Also, the game files are using AS2, while the loader is using AS3. The game files read variables by utilizing _root.score_url, etc.

View 1 Replies

ActionScript 2.0 :: Passing PHP Parameter To Flash?

Mar 13, 2010

This is something simple, but yet it's killing me...here's my php file contents:

PHP Code:
<?php
$total_rows = 5;

[code]........

View 7 Replies

ActionScript 3.0 :: Passing Stage As A Parameter?

Nov 12, 2010

So I have a linked external class that has my actual code. On frame one of the flv I have the code:

ActionScript Code:
new main(this.Stage);
The actual main.as contains:

[code].....

View 2 Replies

ActionScript 2.0 :: Button Passing Parameter?

Dec 1, 2010

how is possible passing parameter inside button.Sample.

for(var i:Number = 0; i<totalArray-1; i++) {
var item_mc = mc.attach.attachMovie("boxEven", "boxEven" + i, i);
item_mc.title.htmlText = item_mc;

[code].....

View 1 Replies

ActionScript 2.0 :: Passing A Function As A Parameter?

Apr 25, 2008

I'm trying to do something like this and it doesn't work, but I get no errors.

callback = function(){
//bla bla bla
}

[code]........

View 5 Replies

ActionScript 3.0 :: Passing Object As Parameter?

Jan 17, 2010

I have a function that goes like this;

Code:
function goback1(event:Event) {
cont.nums.y=86.5;

[code].....

View 1 Replies

ActionScript 2.0 :: Passing A Property As Parameter?

May 18, 2011

I have a function that I want to use to change either the _x and _y or the _width and _height. Rather than writing a separate function for each.For example, instead of writing this...

Code:
function changeMC(clip) {
clip._x = 50;
clip._y = 50;
}

I want it to work kinda like this...

Code:
function changeMC(clip, unitA, unitB) {
clip.unitA = 50;
clip.unitB = 50;

[code]...

My problem is, when I call the function as I wrote it above, Flash naturally takes the _width and _height Values (ie. 432, or whatever the width and height may be), instead of literally putting '_width' or '_height' where the params are found throughout the function...

View 3 Replies

Flex :: Possible To Passing Parameter In Function?

Aug 19, 2004

I have several TextInputs in a certain form which have been assigned id in an incremental order. For example:

<s:TextInput id = "index1"/>
<s:TextInput id = "index2"/>
<s:TextInput id = "index3"/>

[code].....

View 8 Replies

ActionScript 3.0 :: Passing A Parameter Between Flash Movies

Nov 15, 2009

I have a flash movie for drop down menus that is called by all flash/movie banner sections of my site. The banner movies use FlashVars to set the heading and an image. The trouble is that the flash menus also were set to use a flashvar to dictate the context of the menus and leave one top level menu highlighted to show the content to the user. I have not been able to get both of them to use the Flashvars functionality. The html page calls the banner movie directly and it can therefore access the Flashvars. The menu swf however - which is not called from the html page but instead is called from within the banner movie - cannot access the flashvars variables. That leaves me with two choices:
 
1. Either use a different method for passing the context variable to the menu movie.
2. HTML code calls the banner movie. I can continue using flashvars and get the context variable by reading it from within the banner movie - and then somehow pass the value down to the menu movie if that is possible.

View 20 Replies

Asp.net :: Passing Parameter From Page To Flex Application

Apr 22, 2010

I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application.Or what is the best way to get the user_id into flex.

View 2 Replies

Flex :: Passing A Parameter To HttpService In Flexbuilder 3?

Sep 13, 2011

I have stuck at the point where i need to pass a selected item of a comboBox as a parameter to a HttpService.

View 1 Replies

ActionScript 3.0 :: Flash Passing Parameter To PHP And Reloading PHP

Feb 2, 2008

i have 1 PHP page in which i have a Flash animation. this flash swf file, display 2 fields and 1 button.

this php page is called "test.php".

i'm able to send data from Flash to a PHP page, but i would like to send the content of those 2 fields to the "test.php" and display them. however, i do not know how to do it.

i see that it works but i'm not able to display or refresh the PHp page to display the result.

as walkaround i was thinking to collect the webpage address where is executed the flash and to send it to another PHP page. and this 2nd PHP page, will reload the test.php with parameters...

but once again, how to get under flash, the address of the actual executed php page ?

View 9 Replies

ActionScript 2.0 :: Passing Parameter To Webservice Function?

Dec 14, 2009

I am connecting to a web service that I know has a method named getAddy.However, in order to work properly I need to provide this method with a paramater named sessionToken. I'm having difficulty with this, my code currently looks like this:

ActionScript Code:
var WS_URL:String = "http://somedomain?wsdl";
var addy_ws:WebService = new WebService(this.WS_URL);

[code].....

View 2 Replies

ActionScript 3.0 :: Passing MovieClip Property Through Parameter

Jan 22, 2010

I am trying to build a static function that will allow me to do any sort of effect I want, however I would like to give it pass certain parameters but I am not quite sure how to do it. I am basically trying to write my own effects package with easing and all sorts of thing.
ActionScript Code:
public static function easeMC(targetMC:MovieClip, mcProperty, amount:Number, speed:Number){
targetMC.mcProperty = do the easing code;
}

Basically, those are the parameters im trying to pass but I don't know how I would go about assigning the property per se, like if I want the x position or the width to be the one animated. The easiest way I can think of is making mcProperty a string and then doing this:
ActionScript Code:
switch (mcProperty)
case "width":
targetMC.width = do the easing code;
case "x":
targetMC.x = do the easing code;

View 2 Replies

ActionScript 2.0 :: Passing A Parameter To The Function In The Loop?

Mar 19, 2011

for(var i=1;i<=2;i++)
{
var mc=attachMovie("mc_name","obj"+i,i)
mc._x=200*i;

[code]....

this code places two objects obj1 and obj2 and two buttons button1 and button2

button1 is expected to return _level0.obj1
button2 is expected to return _level0.obj2

Instead they both return _level0.obj2. Obviously, each button is passed the object corresponding to the last "i" in the loop. How shall I sort this out? One of the obvious solution sis to attach each button to its object

mc.mc=mc.attachMovie("button","button"+i,i+10);

but this is not acceptable for some other reason I also have to use this for(var i=1;i<=2;i++) block because in the final application the number of objects will be variable and set by the user at the run time.

View 4 Replies

ActionScript 3.0 :: Sound Duplicating On Passing As Parameter

Oct 1, 2011

Following my tiny project I experienced awkawrd behaviour of the sound object. Likely it is something wrong in my code though. I've got a DocumentClass where the sound loads in, and then starts, and have 2 Sliders, one responsible for actual position of the sound in time, and second VolumeSlider. I pass to both of them current Sound object and SoundChannel to the constructor and when I move my TimeSlider to scrub the sound I hear that second sound plays in the background (which is not scubbable). Moreover my VolumeSlider even if it passes a value to the sound.soundTransform and reapply it I didn't hear any change. My question is: can I have right soundChannel object referenced in other classes to change its parameters? From my point of view it is rhetorical question and any passed object has a reference to the main object, but as always I can be wrong.

Or maybe some of had similar issue in the past. Particularly I can instantiate my sliders in the same class as sound object to pass the value(already sliders are instantiated in mainPanel class which represents what the name suggest - main panel ^^just exactly like i.e. Winamp^^ )this way it should work ( I wouldn't have to pass sound object as a parameter to the sliders objects but retrieve slider's value to change the volume) From one point it is clear method as sliderVolume object shouldn't have an sound object inside, but from the point of my app it would be better to pass it though and manage inside the sliderVolume, timeSlider sliders.

View 2 Replies







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