Call *.exe From Swf File With Action Script
any one show me that actionscript by help of that u can call *.exe file from your swf file or fla file
as early as possible
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-18-2001, 06:51 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Frame Action To Call Tell Target (rather Than Button Action)?
I really need a frame to Tell Target a movie clip. For some reason, I can't get a Frame Action to work with Tell Target.
I have no problem applying the same Tell Target to a button, however. Am I missing something? Is Tell Target not meant for Frame Actions?
Call An Mc Action
i would like to attach an action to a movie clip that is only triggered when targeted from a button. so the action is stored on the mc (not on it's timeline though) and the script is caled into play by an exterior action
possible???
thanks
Call Action On Roll Over
I have this script that I'm trying to create buttons with it. What I'm trying to do is when the user scrolls over the text it plays the action script. Any suggestions?
Thanks,
Mark
How Call Action For Button?
Hi,
i use this code on 1. frame to create menu.
Code:
items = ["button 1","button 2","button 3","button 4","button 5","button 6","button 7"]
function chpok(){
s = new Sound();
s.attachSound("z");
s.start();
}
MovieClip.prototype.asBut = function(){
this.btn._alpha = 50;
// crate text
this.txt = items[this.i];
this.onRollOver = function(){
chpok();
this.t=true;
// disabled this.txt = items[this.i];
new Color(this.flake).setRGB(0x000000);
}
this.onRollOut = function(){
this.t = false;
// disabled this.txt = "";
new Color(this.flake).setRGB(0xFFFFFF);
}
this.onRelease = this.onReleaseOutside = function(){
trace("this.button "+this.num+" is CALLED");
}
this.onEnterFrame = function(){
// i dont understand this :(
this.btn._alpha += (10*this.t*(this.btn._alpha<100)-4*!(this.t)*(this.btn._alpha>5));
}
i need to work with buttons as usual, load external SWF, starting actions, etc.
Example what i need for onRelease action:
//action for button1
mc1.loadMovie("001.swf","container001_mc")
//action for button2
mc2.loadMovie("002.swf","container002_mc")
// etc.
Q.
Where can i place this actions for particular buttons?
This is what i dont undestand.
Thank you very much
Presumably A Call Action Problem ..(?)
Hi, thanks for taking the time,
The attached .fla features two buttons that both set off specific actions.
More precisely: the attached .fla features two buttons that both SHOULD set off specific actions.
If you extract them from the 'MC'-clip to the main-stage and delete the _root. (actionscript attached to both buttons), they miraculously work to rule. Now, I really need them to cooperate INSIDE of the movieclip rather than on the main-stage...
(The original .fla holds 9 buttons; the attached one only 2.)
A Call To Action[script]
Scope is an issue
In Flash (CS3 or Flash 8) I have an FLA that the client has created. She chose to break it up into multiple scenes; each with a single frame
(and many layers, of course).
I need to add some 'interactivity' via Actionscript. I have always struggled with scope in Actionscript and the addition of scenes complicates
matters for me (maybe it is just a mental block on my part).
Lock and Load?
I am using SendAndLoad to interact with a server. On the first (only) frame of each one-frame scene I have a button to initiate this activity.
In order to maintain some modularity and taking advantage of the global scope, I have chosen to creat a class (.as file) to encapsulate my
functionality. On the frame I am instantiating the class. Within the class I call the SendAndLoad and need to respond when the ".onData" event
is fired; calling another scene/frame combination as a result.
Impossible Mission
Here is the problem. The asynchronous activity of the SendAndLoad does not permit me to simply 'return' some data (retrieved from the server) to
the caller of my method.
I have experimented with building a second class, instantiating that class into an object that I pass to my first class for a callback. The
callback would be on a method of that second class - to set up some values and call a scene/frame combination.
Your mission (should you chooose to accept it)
Is this a reasonable way to accomplish what I need? Do you know a better way? Am I completely off-base with this approach?
I appreciate any help on this. I have a looming deadline and need to get (at least imminently) a prototype that demonstrates this can work ASAP.
Thanks, in advance.
Using Key Presses To Call Action Scripts
Is it possible in flash 4 to have defined key presses that call action scripts? For example defined movie clips for letters that play when the keyboard letter is pressed.
How Do You Call A Simple Swap Action?
Is the below code right for swapping one mc with another. "this" mc on a higher level is to be swapped with "to swap" on a lower level. It will have a on press/release action before this code.
_root.depth++;
this.swapDepths(/toswap);
Cause, it don't work!
What have I left out?
Using Mouse To Call A Sprite Action
I'm having a mental block--
I'm trying to get a sprite to run on a mouse click, and I think I must have the actionscript messed up-
First I have a movieclip called Character. The first frame is the character standing, frame 2 is the character standing but I've turned it into a nother movieclip called Char2
Char2 is a walking animation.
I want to click a basket on the stage and have the character walk. The basket is set up as a button, with the instance name 'b1'.
I have the Character movieclip on the stage with the instance name 'bled'
I've attached this action script to the basket instance b1:
on (release) {
bled.gotoAndPlay(2);
but all that does is make it play the 'Character' movie clip- noe of the walking animation.
I also tried
on (release) {
bled_this.Char2.gotoAndPlay(1);
which did nothing.
Any help or suggestions?
Thanks
Using Mouse To Call A Sprite Action
using mouse to call a sprite action
I'm having a mental block--
I'm trying to get a sprite to run on a mouse click, and I think I must have the actionscript messed up-
First I have a movieclip called 'Character'. The first frame is the character standing, frame 2 is the character standing but I've turned it into a nother movieclip called 'Char2'
'Char2' is a walking animation.
I want to click a button on the stage and have the character walk. The button has the instance name 'b1'.
I have the 'Character' movieclip on the stage with the instance name 'bled'
I've attached this action script to the basket instance b1:
on (release) {
bled.gotoAndPlay(2);
but all that does is make it play the 'Character' movie clip- noe of the walking animation.
I also tried
on (release) {
bled_this.Char2.gotoAndPlay(1);
which did nothing.
I'm not concerned about it moving across the screen right now, I just want to see the walking cycle play when I click the button.
Any help or suggestions?
Thanks
Can Someone Show Me How To Call A Fuse Action
"Applied actions": a special format for reusing actions by including an action property.
For example if an action var intro:Object = { ... } has been defined, you can then include it in later Fuse actions like this:
{ target:clip1, action:intro }
How To Call A Function To Action Without Click On Button.
Here is an example of text effector. http://mirko.highbox.net/labs/effector/
I want to make the text effect load on stage right away without click on the button to trigger the text effect action.
How can I do that?
Thank you everyone that had the knowledge about scripting could help me with this.
Best,
NB
The scripts posted below:
================================================== ====================
import effector.TextEffector;
var myCustomEffect:Object = {time:1.000, effect:"exposeline", line:1, interval:0.300, transition:"easeinoutcubic"};
var myCustomUpdate:Object = {autoClose:true, DOWN:true};
var _textString:String = "What is Flash Professional? Adobe® Flash® Professional software is the most advanced authoring environment for creating rich, interactive content for digital, web, and mobile platforms. Create interactive websites, rich media advertisements, instructional media, engaging presentations, games, and more. Designers and developers working on both Macintosh and Windows® systems depend on Flash and the ubiquitous Adobe Flash Player software to ensure their content reaches the widest possible audience. Flash is the best ";
var _textUpdateString:String = "Effector is really cool class, in next version I will setup more features which will made this class much more richer. so enjoy , next update is comming soon with more powerful features ";
var _globalDepth:Number = 0;
var _myText:TextField;
var _old:MovieClip;
var setTextOnStage:Function = function() {
if(_old != undefined) _old.removeMovieClip();
var myTextHolder:MovieClip = _root.attachMovie("textContainer", "textContainer" + _globalDepth, _globalDepth, {_x: 20, _y:20});
_old = myTextHolder;
var myText:TextField = myTextHolder.textHolder._text;
myText.text = _textString;
myText.multiline = true;
myText.autoSize = true;
myText.wordWrap = true;
_myText = myText;
TextEffector.addEffect(myText, myCustomEffect);
_globalDepth++;
}
butt.onPress = function() {
setTextOnStage();
}
butt2.onPress = function() {
_myText.text = _textUpdateString;
TextEffector.updateTextField(_myText, myCustomUpdate);
}
butt3.onRelease = function() {
getURL("http://mirko.highbox.net/labs/effector/_example.fla", "_blank");
}
stop();
================================================== ===========
Cacheing .swf Into Blank MC. Need Frame Action To First Preload Swf Then Call To Dum
I know how to preload the swf with.
//loadMovie ("MC1.swf", "_root.Dummy");//
Can I just add to this like:
-----------------------------------------
//loadMovie ("MC1.swf", "_root.Dummy");//
//loadMovie ("MC2.swf", "_root.Dummy");//
//loadMovie ("MC3.swf", "_root.Dummy");//
--------------------------------------------
I know how to call one .swf into the blank MC called Dummy:
//on (release) {
tellTarget ("_root.Dummy") {
gotoAndPlay ("start");
}
}//
---------------------------------------------
....which loads the .swf into the Dummy MC.
My question is how do use One dummy and call cached .swf into it and replacing the one thats playing.
I'm probably going about this the wrong way....
Any help on this would really be appreciated.
Thanks
M
How To Call Action Script Function From Java Scrpt
Hi All,
We are working on j2ee project, In our new requirement we have to call action script function from java script. We have added our mxml code in the jsp , and action script function in as file. We are calling addpersondetail java script function through we have to call adddetails action script function.
After doing enough googling, we came to know that following code is used to call action script function from java script.
where appname is the name of the mxml file.
window['appname'].addPerson(name, age, sex);
I really do not know, what name to be specified in window[] parameter as the mxml code is written in jsp.
Could you please let us know how it gets called ?
Thanks,
Chandan
Duno What To Call It (Contains Action Script, Movie Clips, Buttons)
Hey,
I uploaded a sample so I don't need to explain..
http://members.shaw.ca/ibbanging/TEMP.html
Now, after looking at that... how do I make it work without the button?
I want the button to be the blue part thats faded out, the bit you see when it's minimized..
Right now the button contains this code:
on (release) {
copyright.play();
}
The rest is a movie clip.
Ian
Slap Me And Call Me Susan - Simple Action Script Problem
I am loading a new movie in the first frame and in the first frame trying to create a variable called time = 12:00 however in my newly loaded movie it will not read the movie that was replaced.... any idears out there?
Thanks
TM
Call An External File From A .swf File
Hi
I am very novice when it comes to actionscript so I need help.
I have an swf file that every time it is run it will pick up actionscript from an extern file, that extern file will change every time the swf file is run.
Is that possible?
Help pleace
//Eric
How To Call A Swf File From Another One
Hello,
I am new with actionscript and have a question, I have a main fla file that calls other swf files, I am able to jump from the main one to the another one using buttons, but when second file is loaded the main one shows up very quickly before to load the other one.
My code for the button in the main.fla file is like this:
on (release) {
loadMovieNum("services.swf", 50);
}
What can i do to avoid the main movie to be executed before to load the second one?
Thanks,
Olgie
How Do I Call One Swf File From Another?
Currently I have a live website running. I basically am using HTML pages to hold the swf files. I would like to be able to call another swf file, in a different scene, on another HTML web page.
I've been messing around with loadmovie, geturl with no success.
Can somebody help out?
Thanks
Call AS2 SWF In AS3 File
Hi guys!
Any idea what is the best way to load an AS2 SWF inside an existing AS3 project? I don't want to call any functions, just literally load the swf inside my file in a single frame. To be more specific it's a quiz made using the template in Flash. It would be good like if the score is let's say under 50% to display something in the AS3 file and if it is over 50% display something else. That's pretty much the only interaction between the two I need to use.
Any help would be greatly appreciated, I'm supposed to hand this in on Monday and I'm so stressed.
Thanks,
Theo
Can You Call Another .swf File From Your Current .swf
Hello:
I am trying to learn Flash Actionscript. I hope that this is the right place to ask this..lol.. Ok here goes, I want to save disk space...so if my main .swf is 3 megs and I want to call other movie clips from a different .swf file name song1.swf, song2.swf, etc. is this possible and if so what is the proper function to call the outside .sef files. Thanks in advance ...
Can I Call Variable From Another .swf File?
I have a page that has four frames, two flash and two html.
The flash windows can't be made as one, since they are not next to each other. I'm trying to make an indicator to the other flash file which would follow the changes made to the other flash file. Is this possible without the use of an external text file?
Please, help me.
Can I Call Another FLA File In My Application
Hello again,
Stupid question I know but I use Director 8.5 before and now have to change to Flash. In Director, you can create movies and call another movie from the main movie (apology for my English).
Can I do the same thing with Flash?
Please suggest
Thank you
I Want To Call A Text File For Each MC's
hi,
I have a menu from:alesys.net.
which is attatched along with this query.
Hope you will able to understand the the functionality of the file.
My question is:
I want to call a text file for each MC's.
(ie, for 20 MC's I have 20 different txt files )
every time I click on different MC I need to Get different text file.
so, how can I access each MC ?
Please let me know:
as this type of menu has been chosen by my client.
Thank you
Call A File From A Movie
ok i have a flash movie am using flash 5 and i want to load a variable from a text file theres a format to make the txt file or i just write the variable i want there and save it as whatever.txt
and then called from flash like
loadVariablesNum ("whatever.txt", 1);
and then i can assign or use that load variable in my movie
Can I Call A File With Arguments ?
Hi, can I call a file with arguments using the flash fscommand "exec"
for example:
on (release) {
fscommand("exec", "shutdown.exe -s -m 127.0.0.1 -t 5000");
}
And how this can be done? Because it is not working the way it is written!!
P.S. I know that the file should be in a sub dir called fscommand, just tell me how to pass argument to it??? Pleaseee
Call An External Txt File
ok using the scroll bar, i want to call a txt file to show up in the scroll box. Do i call txt or html? what tags can i use and not use in the file that will be in the text box? Ive looked around and have had no luck..
-thanks
Help How To Call A File From Within Flash
Hi
Does anybody know how i can call a file from within a flash movie? I want to make a self-running flash movie as start-up on a CD. Then when you click a button in this flash movie a power-point presentation shall be run. I realy realy need to know how i can do that! Anybody here that can help?
Possible To Use A Vbs File To Call Loadvariables?
hi i'm just simply trying to get a directory structure by calling a .vbs file (for a projector file). I can call loadvariables to read a text file that a vbs creates(by running fscommand), but i haven't found a way to directly do:
this.loadVariables('directory.vbs');
i have a feelign it has something to do with my vbs file?
i tried
WSCript.Echo "&test=1"
but that doesn't work. any help?
How To Call Two A Sound File?
its like this, i have placed half of one audio file to a Movie Clip, and another half of it to another movie clip clip, now what i want to do is, when the first half is finished i want it to tell the other half to start. and the other half keep playing continously, like looping. how to do that?
and when the user clips enter or intro button the music should fade out from where ever it is?
Help- How To Call An External File?
Hi, anyone know what code which I can use to activiate an external file in flash like .xml, .exe, etc? I tried getURL, but think it wont open the file.
Cna someone help me?
Thanks.
Call To A Text File?
Is there a way that if I make a dynamic text field with scroll bars, can I have it pull text from and .txt or an .xml file located on my server? That way I don't have to edit the .fla file when i need the text to change, just the external file? thanks,
Any Way To Call In An Array Through A Txt File
I am calling a txt file into my project with lots of variables, and at least one I need to call in is an array, but it doesnt seem to work. Has anyone ever had this problem and what can I do to fix it. Thanks
Can ActionScript Call/run .exe File?
Dear gurus and members,
I am a newbie in ActionScript. I developed an e-learning website using mostly Flash MX 2004 and ActionScript 1.0. I plan to create a record/playback software using media control interface (MCI). The software is a one time installation. During the installation, the installer will store a txt file in the user's computer . In that way, whenever user clicks on the record/playback button, it will check the user's computer for the file. If it exists, it will display the record/playback pop up window. Otherwise, it will request the user to download the software before proceeding.
I try to load in the text file via the LoadVars() object, and if the file fails to load I initiate the appropriate actions. That would go a little something like this...
Code:
myLV = new LoadVars();
myLV.onLoad = function(success){
if (success){
//If txt file gets loaded, calls software by displaying pop up window
//Media Control Interface software is called--'one.exe'
} else {
//If file fails to load, it displays download pop up window,
//requesting to download the software.
//The download program is 'SoundRecorder.exe'
}
myLV.load("PluginCheck.txt");
}
My concern is whether can Actionscript calls exe file on the user's computer and also go to the URL to download the program? How does the codes look like? Can I use getURL(" ") in this matter? Hope to hear some reply soon. Thanks in advance!
Cheers,
Janice
How 2 Call Out A File In The Same Page
Hi guys.
need some help here, i've already created a few page, and i'm trying to connect a button with another html page. But the problem is, i don't want that html to be open in another browser. I want all the file to be view in the main page, like how u normally browse a website. I hope u know wat i mean. Please ask if ur not sure about my problem. Thanks everyone
How To Call Method In Another Swf File
Hi. I am at the moment making a website in Flash 8. The website consists of a main file with the buttons and then additional files for each page. Each of the buttons uses code similar to this:
content.loadMovie("home page.swf");
where content is the movieclip I am using to load the swf file into. In the main file I have a search box where a user can type some search terms. I have written some code that will search through the text field(s) on the page and highlight any words that appear matching the search terms. The only problem is that I cannot get to the text fields on the other files. So what I want to be able to do is attach some code to the search button that will call a method in another swf file using the parameters that I the user has specified in the search box. How would I go about doing this?
Any help is much appreciated
JM Young
Using Actionscript To Call From XML File
Hi there, I'm a complete newbie when it comes to actionscript. Basically for a uni project I have to design an MP3 player in flash. I've modified the snow script from this site slighty, in order for it to display track names, artists and album name instead of snowflakes. The script looks like this:
Code:
this.children = new Array ();
function makeFlakes ()
snowflakes = 75;
do {
duplicateMovieClip(trackInfo, "trackInfo"+k, k);
var arr = new Array ("Album", "Artist", "Track Name");
var rand = Math.floor(Math.random()*3);
trace(rand);
var ref = eval ("trackInfo" + k);
ref.trackInfo = arr[rand];
this.children.push(ref);
k++;
} while (k != snowflakes);
}
function deleteChildren () {
for (i = 0; i < this.children.length; i++){
this.children[i].removeMovieClip ();
}
this.children = new Array ();
}
function setInfo (artist, album, trackName) {
this.arr = new Array (artist, album, trackName);
I'm not even sure that is right though. The mp3 player should look into an XML file and gather the required information, and upon changing track should delete the previous info and display the new set. So far it's not working, and I've got no clue how to get it to work. The XML code looks like this:
Code:
function selectTrack (obj) {
currentTrack= obj.getSelectedIndex ();// Obtain the index of the listbox entry that was clicked
var track= playList[this.currentTrack].filename;// Obtain the URL of the desired MP3 file
var animation= playList[this.currentTrack].animation;// Obtain the URL of the animation that goes with the music track
remainingTime= playList[this.currentTrack].trackDuration;// Obtain track duration and write it to a display field
trackInfoMaster.deletChildren ();
trackInfoMaster.setInfo (playList[this.currentTrack].artist, album, trackName);
trackInfoMaster.makeFlakes();
I don't know wether to try and work it out or just scrap the idea altogether. It would look nice, but it could leave me short on time for the project. I posted here incase anyone can give me any pointers on where I'm going wrong.
Cheers for any help
Chris
How Do I Call Text From A File That...
doesn't have a variable1=Hello
the file has data that looks like this
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 12 20 00 0.6 0.6 10.8 0.3 3.6 SE E N/A 5.3 133
2006 12 12 19 00 0.7 0.6 9.1 0.3 3.6 SE E N/A 5.1 128
2006 12 12 18 00 0.7 0.5 9.1 0.4 4.0 SE E N/A 4.5 131
Call Every 60 Seconds To A PHP File Too Much?
I have a movie that I need to update every 60 seconds, calling a PHP file, which provides update server time/date, and (on-the-fly updated) air times for an online video. Is every 60 seconds too CPU intensive?
Thanks
Bryan
Flashvars To Call Up .as File
ok, so here's the scenario. I have one interface file that will always be loaded when you choose one of say 20 courses. What i need is for the html file (one for each course) to target and load the .swf interface, and pass a variable to that one interface telling it to load the .as file specific for that course (the .as file will have functions to load specific content and execute different actions depending on that course).
I understand how flashvars works, i guess maybe i'm asking then how to change a variable into a string so i can take my variable called coursescript, and convert that to "coursescript.as" for use in an #include in the interface. Make sense?
This way i never have to touch the interface file, but leave an #include "coursescript.as" script on my interface and the html file will tell the interface that it needs to load that specific one, since the .as file is in a different directory than the interface file.
|