ActionScript 2.0 :: Toggle Button To Open External File
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
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();
I am currently finishing off a flash project that I began using FlashMX (with action script 1).It is a language teaching tool which will be viewed both online, and will be also put on CD.I would really like the swf to fill the user's entire screen.I have tried a few things with javascript in the html file that haven't worked. I would greatly appreciate any tips on how to:
1. Create a toggle button for full screen in my flash file
2. Make the swf take up the entire browser window (width="100%" height="100%" doesn't seem to work)
3. Create a standalone version for CD that fills the user's entire screen
Im building a portfolio on Flash.I have created my menu buttons and need to open files with doc, pdf, avi and swf extentions.So far I have been using the getUrl command and it seems to work for the pdf and swf. How can I get this to work for the other types?
i am working on a flash-based report project (we'll run it on CD) for past week, I'm new to AS3 , got in so many troubles because of it. but finally got it working fine. but there is a problem with the final act, i want to open a PDF file using flash alone. it was very easy using AS2's getURL function and worked like a charm but its a different story in AS3, i worked on it so much that it gives me a headache whenever i think about it.I searched and read almost every article on the web concerning this, the only think that works for me is navigateToURL,but it opens the file in web browser and that I'd rather not have.so i want to ask if there is a way to actually open a PDF file external source such as H.D.D using pure AS or I'll need to take a look on zinc and air?this is the code i used for the linking job :
Actionscript Code: myDataGrid.addEventListener(Event.CHANGE, clicker);function clicker(evt:Event) { var SSL:String = evt.target.selectedItem.item; var path:String = "Books/"+SSL+".pdf";
i have made one aplication in flash and i want to add a button to open one doc file that is in the same dir. this will not to publish for web is for a aplication on a cd rom.
I have a webpage that currently display a powerpoint slides.The problem is that other can download the slides which I really dont want.
following issues:I dont want to convert the ppt slides to .swf then convert them to flash but rather let flash open the .ppt directly and display on the webpage.
I am using SWF Studio already which allows me to open an external .bat file by clicking a button in flash.I now need to open another file but this time i dont know the exact name of the file but it will be the only .cfg file in the folder.Does anyone know of a way to open a file just by the file extension alone without specifying the name?Here is my origional code for opening the .bat file:[code]i have tried using the above code and just replacing the "\Test Link.bat" part to "\*.cgf" but that doesnt do it.
In my Flash application users must be able to download or open PPT files nested in application's subfolder.When I run .*swf file, it works fine (Save file dialog appears), but if I run .exe file, nothing happens.[code]I suspect that "navigateToURL" function doesn't work in this case.
I am new to flash and I don't understand much about action script. I want to open one swf file from another using a button I have called ready_set_go. The project is not going to go into html format I only want to open the file locally. What is the code I need to do this?
i want to open a SWF file to a button but in a completely new window however Im not talking web related i.e. not linking to a web page like...
on (release) { getUrl("www.blah.com") }
whateva it is...don�t want that... I want it so it simply opens a completely new window within flash which I can close... the reason for this is I have a SWF file which is protected and i cant create a back button within it... so I need it to open a completely new window so i can get back to my main page..
I have an Intro with two buttons for language. When you choose the language, it shoul open de spanish site or the english site.How is the script for opening the a .swf or .html?
i have made one aplication in flash and i want to add a button to open one doc file that is in the same dir. this will not to publish for web is for a aplication on a cd rom.
function main9Click(event:MouseEvent):void { var main9URL:URLRequest = new URLRequest("N:ICTNationalsUnit 2PagesCars"); navigateToURL(main9URL, "_self");[code]....
I need to make it open so when you click on that button it opens the file
I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?
I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.
I'm developing Flash for a CD.I want to create a button for the user to click and then have a choice to save or open file (like PDF or Word file).
i have the following code: Code: myButton.onRelease = function() { getURL("abc.doc"); }
I can't see anything wrong with the above. I intend to use the code for a CD ROM.abc.doc will sit on the CD ROM. When I click on the button, it opens a browser window and tries to go to google.com.I had it working the other day.
I'd like to learn how to use Components in Flash, and the documentation and tutorials I find are beyond my comprehension. I usually go to FlashKit and just rehash someone's code... but again, I'd love to learn how to use Flash Components.So I did a tutorial on the toggle button, but it was:1. Click button, and a window pops up at different location on canvas2. Click button again, and the same window dissapears.This is for a videogame, and I'd like a button to be click and that same button be populated with a new graphic. What I mean is, the graphic is a skull, and I'd like to have it start as a dark skull (as if a negative value) and when you click it the skull appears... click it again and it's gone (or that negative or dark skull representing it's off).So this differs from the tutorial I did because the pop-up window is the button itself, and the window that pops up would obstruct me from click it again.
I'm simply creating a button in flash that should alternate between a 'play' graphic (i.e. > ) and a pause graphic (i.e. || ) every time its clicked. That's all!
In shockwave I would simply type a line of code that would set a new memberNumber or memberName to swap the graphics on mouseUp. How do I do it in Flash? I called a friend and he though I had to do something like create a movieClip inside a button or vice versa. It all seems rather complicated for such a simple task.
What would be the best way to make a toggle button -- like one where you switch it on, and it stays on until you switch it off. I have two jpegs one for on and one for off.
i have been stuck with this for days so thought i'd try this forum. on the main timeline i'm trying to have an on/off music toggle button. here's the code on the first frame:
[Code]...
whenever i click the toggle button it restarts the sound and downloads it again. can anyone tell me where my code is wrong or what i have to add?
I need to add text on screen (for hearing impaired) to a simple movie I created. I just need to have text toggle on and off. I don't know how to actionscript the mc or button. Working in F8, publishing to F6.I did see the visibility on/off rollover thread... but I'm not actionscript saavy and can't make the leap to an onpress or onrelease button, rather than a rollover.