Actionscript :: Launch An External .pps File With A Flash Button?
Jun 29, 2011
I have a flash application in which there is a button. On clicking that button, a pps file should play. What I did is published the flash file in a projector format (.exe), created a folder named 'fscommand' and put the pps file inside that folder, and tried to launch the file lying inside that folder from this flash file by using following codes:
on (release) { fscommand ("exec", "file.pps"); }
Another way I tried which I found is:created a .bat file named launch.bat, put it in that folder & tried to launch the pps file via this .bat file using following codes:
Actionscript code:
on (release) { fscommand ("exec", "launch.bat"); }
'launch.bat' file code:
START "file.pps"
But still it's not working.
View 1 Replies
Similar Posts:
Jan 15, 2006
So I read through Kirupa's XML/Flash thumbnail gallery tutorial and have since modified some of its actionscripting to display my online design portfolio. How do I make it so that 'LAUNCH PROJECT' is a link? Here is the modified Actionscripting (I have one of each for the 3 sections):
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code]....
As you can see at the bottom of the actionscript, I added a gotoURL action, hoping that simply by making <launch> read <launch action="gotoURL" variables="http:url...> that it would become a link. I, however, have had no such luck. Perhaps I have to add something more. How do I make it so that <launch></launch> has the ability to link to an URL?
View 2 Replies
Mar 16, 2009
if it is possible to launch a phone call from a Flash SWF File? If yes, is JavaScript involved ?
View 5 Replies
Oct 12, 2010
I'm making an interactive cd in flash, I'm wondering how I can prompt the user with a way of saving video files (.mp4) to their computers.
Ideally they would click on a 'download video' button and then would be prompted with the usual window allowing them to choose where to save the file and name it.
Is there a way to do this within flash?
I've been using fscommand to launch files, can it be used to save files as well?
View 4 Replies
Jan 15, 2007
im trying to play a frame in an external .swf with a button from my main flash file.
View 5 Replies
Feb 9, 2009
I can make a flash movie (adobe Flash CS3) and use the flv, swf, script file, html file, but when I launch it from the web page it opens a new window. How can I launch a flash movie so that it plays in the original web page?
View 0 Replies
Apr 26, 2004
How to run an exe file using flash? it's like clicking a button then it will open the exe file
View 1 Replies
Aug 27, 2008
I'm making a flash project that will end up as an .exe file on a CD..I was wondering if there was a way to launch a pdf in this file. I know on the web, I could use the:[code]but I don't think this will work in an .exe file? Does anyone have any way to accomplish this?
View 4 Replies
Apr 26, 2004
How to run an exe file using flash? it's like clicking a button then it will open the exe file
View 1 Replies
Jun 30, 2011
I have had Flash CS5 since it came out, I have updated the program regularly.When I open Flash it gives me the Unexpected File Format Error. Even though I am not opening any files.
View 1 Replies
Nov 5, 2009
how to create a button that will launch a new email window.
View 1 Replies
Jun 21, 2010
I am interested in creating a page on my website where visitors can download a pdf file. I have never done anything like this.good tutorial or website tat has info regarding the code necessary to make this work in Flash AS3.
View 3 Replies
Jul 24, 2005
I'm developing an interactive CD. I need to be able to allow the user to open Word and PDF files. I'm not sure how to do this. I've tried using getURL, but that doesn't work. I'm a bit saturated and can't think how I can do what I need.
View 3 Replies
Jun 1, 2010
I have an .fla created with a single key frame. In the frame I have a button instance (its own layer), a layer called "act" where my actionscript is entered, and an swf FLVPlayback instance (its own layer).
I simply want the button to show when launched, upon being clicked to launch my movie, and the button to disapear. My FLVPlayback points to an rmtp stream that works fine and is setup to autoplay = true.
currently I am using this code but the button doesn't disappear and the movie begins to play before the button is pressed. I have also switched the movie to autoplay = false but pressing the button does not play the movie.
the code on the "act" layer is (my_btn is the button and my_mc is the movie):
my_btn.addEventListener(MouseEvent.CLICK, btnClicked);function btnClicked(e:MouseEvent):void{my_mc.play();}
View 14 Replies
Feb 10, 2010
OK my project uses an xml file called Chart-app.xml inside this XML file there is a tag called <version></version> which I keep in the format like: <version>1.2.128</version> I am wondering if I can set it to append to the third number every time I run my project. So if I ran it now it would be 1.2.129, then if i ran it again it would be 1.2.130
View 2 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Apr 9, 2011
Using AS3.0, how do I load an external swf file when I click a button? Also, how can I get rid of that swf file when I click a different button on a menu?
View 1 Replies
May 31, 2009
I'm creating a flash portfolio, I have small image icons, each icon when clicked on loads a diff. swf file, image gallery that loads bigger external images. I would like a different external text file to load every time a diff. image gallery loads, for some reason I cant find the answer to my problem,
I would like to add some actionscrpt to each icon/button so it will load a new txt file when clicked on.
(each image icon is a button and has the instance name of icon 1, 2 etc.)
the code goes like this;
stop();
menuHolder.loadMovie("retail/photoViewer.swf")
loadMovie ("retail/photoViewer.swf", "_root.menuHolder");
[Code]....
View 3 Replies
May 31, 2009
I do not know how to right the code to load an external swf file when a button is clicked.
View 3 Replies
Jun 28, 2009
I am having trouble making a button load an external .swf file I have a made a flash file, and in the navigation; once a Button is pressed it should load another .swf file but I can't get the Button to load another .swf despite numerous attempts, and Google searches!!
View 4 Replies
Mar 24, 2011
I admit I am WAY in over my head here and its been WAY too long since I've used AS2.0 to remember anything about what I'm doing. I have a dyaminc table on the screen that is holding a movieClip that contains the following code.
Quote:
this.attachMovie("info_btn","NigeriaTrain4_5",this .getNextHighestDepth(),{_x:13, _y:85});//add button to the stage and places it on x & y axis
NigeriaTrain4_5.onRelease = function()
{//give button function
[Code]....
View 9 Replies
Oct 17, 2011
I've got button events that load swf files into the main movie. Within the loaded swfs are additional buttons. When these buttons are clicked I want the targeted swfs to replace the current swf. I guess I don't understand how to reference the Loader var within the main movie.
Currently, when the links are clicked in the loaded swfs, the movies are loaded on top, rather than replacing them.[code]...
View 0 Replies
Oct 10, 2006
Im trying to open an external text file with the help of button. It works locally on my computer. But as soon as i upload it on my site, it does not work any more. Im not sure, if im putting the wrong path.
on (release) {
_root.flying_pages.empty_holder.loadMovie("1.jpg") ;
loadText = new loadVars();
[Code]....
View 1 Replies
Oct 23, 2006
how to control the visibility of certain buttons from an external file (like scroll bars). I have been able to do this with button function using a loaded variable and if statements on button release, but I have been unable to replicate this with visibility. I really need the button to be visible or not from the initial load of the .swf file. Any suggestions? I currently have to open flash and change the action script within the flash file and export a new .swf, and I want to be able to do it by changing a .txt file.
View 1 Replies
Jan 3, 2007
I have added this code to a button in my flash file. When the viewer presses the button a external .swf file will load. The problem is how do I specify where it loads. For example, when the viewer hits the button the external swf file default loads at 0,0. If I want it to load somewhere else on the page is there a way to make it load at a certain specified location? Here is the code I am using on the button.
Code:
on (release) {
loadMovieNum("test.swf", 1);
}
Now this works fine and the swf file is loaded correctly but it is always at the top left corner. How can I go about loading it in a specific place on the flash file? Is there a way to create a holder that would make it load in that certain area?
View 1 Replies
Jan 22, 2007
On the main timeline I have a movie clip ("Sound Full") on it. The movie clip is being used as a complex rollover button for "revealing" a full sound interface. When the mouse rolls over, the word "Sound" fades out and the panel appears. When rolled off, of course it goes in reverse. I've seen it done in many places...including www.iso50.com.
Anyway, on the timeline for "Sound Full", I have three layers being used for the following...
1) Actions
2) An instance of a graphic symbol ("Sound Text")
3) An instance of a movie clip symbol ("Sound Player)
The Actions are a few lines of code to rewind or play based on whether or not the mouse is over the area or not (as learned directly from [url] And for the instances, I just used motion tweens to have "Sound Text" fading out as "Sound Player" fades in. It's like 5 frames in all. Very quick effect.
The timeline for "Sound Player" is only one frame. Each piece of the player has its own layer (play button, stop button, etc.) and the top layer (also reserved for Actions) has a single line of actionscript where I have written:
[code]...
The problem is that when I test the whole movie...the rollover effects works beautifully, but the buttons in the interface aren't clickable or working at all. I discovered that if I simply tested "Sound Player" by itself...it works perfectly, except there's obviously no rollover effect since "Sound Player" is nested inside of the movie "Sound Full" which is what does the effect.
Does this make sense? Hopefully it does. Anyway, so my question is...
1) Am I missing a basic fundamental rule of Flash in order to make it run smoothly?
2) Is the "tweening" of "Sound Player" possibly messing it up? (Remember, I noticed that when the include line for the external actionscript file was in the same frame as the indiv. player buttons it worked fine.
3) Do you need to see the .fla file to help me out?
4) Bottomline...can you help me out?
View 2 Replies
Sep 8, 2010
myData = new LoadVars();
myData.load("myText1.txt");
myData.onLoad = function() {
[Code].....
I thought i would be able to load the files from the press of a button.
this doesnt work i can load the external files from the btns,
Problem this is not working.I cant understnd the reason why. when the above code works fine. Problem is i do need to load the external varaibles with a button press.
//loading external file 2
myData = new LoadVars();
myData.load("myText1.txt");
[Code].....
View 4 Replies
Jan 10, 2005
I'm loading text from an external file (a notepad). Now all I want is to be able to change the text by loading text from another external file when a certain button is pressed. Basically, I got this as my default text which loads automatically at the start:
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
title.text = this.title;
info.text = this.info;
body.text = this.body;
};
But now I want to load text from a different file (data2.txt) by the press of a button. I also have a transition animation so work with me. It would be...
b3.onRelease = function() {
if (_root.section != "photos.swf") {
//I also got this pic (swf) that changes on the button release//
_root.section = "photos.swf";
_root.transition.gotoAndPlay("closing");
So what exactly do I add to be able to change the text source?
View 1 Replies
Aug 2, 2005
I need to have a button load it's GetURL() deal from an external file. XML? Txt?
View 2 Replies
Sep 20, 2005
What I need is an AS code for a button which first play an animation ( a motion tween) and then load an external swf file.
View 2 Replies