Actionscript 3 :: How To Create A Save Button In Flash
Feb 14, 2012I have a game and I used Flash cs5 ActionScript3. I want to create a save button for the game. When the player loads the game, the saved game will open
View 1 RepliesI have a game and I used Flash cs5 ActionScript3. I want to create a save button for the game. When the player loads the game, the saved game will open
View 1 RepliesI have a game made by Flash CS5 ActionScript3. I want to create a button in the game where I can save the current timeline of the game. For example, I stopped at frame 5 and save the game. So when I load it, I should instantly return to frame 5.
View 2 RepliesI'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've designed a painter program where the user can select different colours and 'paint' a custom design on screen. What I would like to do is incorporate a 'Save' button which takes a snapshot of their drawing which they can then save to their computer.
View 0 RepliesWe used Flex to build the web app below. It lets the user build an interactive activity and click "Publish as Flash" to save a SWF file on their local computer.http:[url].........
Problem: When saving the file, the "Save As Filetype" drop down is empty and end users can accidentally delete the swf file extension in the filename.How can we lock down the extension so it will always have SWF in the extension?
Technique 1? Set "Save As Filetype" to SWF by default.
Technique 2? Click "Publish as Flash".User specifies the filename.File is saved on the server. User presented with prompt to download file. File is downloaded from the server using the traditional browser windows explorer dialog box (the same dialog box if I downloaded a program from cnet's [url]...........)
I just started doing AS3 for Flash and I'm trying to create a flash app that has 2 things inside. An InputTextBox which is called txt_userinput and a Button called btn_submit.Bascially, the user just need to type in some word in the InputTextBox and press btn_submit. The data will then be sent to a testing.TXT in my DESKTOP. My .FLA file is in MY DOCUMENTS while the testing.TXT is in my DESKTOP.
Question 1: Question is, how do I make the data from txt_userinput to be sent to the .TXT in my DESKTOP?For example, the user typed "Hello, how are you?" in the InputTextBox. In the .TXT file, I want it to show "Hello, how are you?".
PS: testing.TXT file is already created in the desktop, just waiting for flash to write the data in and keeps on adding more data in the future in the following format.
How do you record / save a button press in Flash as3 and send it to moodle via scorm? I have two buttons, 'choice1' & 'choice2', and would like the users' choice to be recorded to SCORM. I just need to send 'some text' to moodle when the user presses either button.
Have been pointed to 'cmi.interactions' but after spending the entire day trying to find a working example, I'm completely lost. There appear to be no coded examples anywhere.
How do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
Is there a way to create and save .as file using JSFL?I know that you can save and rename Fla documents, but what about .as classes?
View 1 RepliesIs it possible to use AS3 to create and save a swf file automatically?By this I mean that I have a folder of images (100+ sequential images) which form a full animation sequence. I could import the sequence directly and use the IDE to do it - but I have 100+ folders so that not really an option!
So as a theory, could it be possible to create an app that inputs the parent directory, reads through the folder, imports each image onto its own frame and exports the swf to a designated area?Its possible using php but MING is unreliable and wont precess interlaced jpg file and other swflib functions are quite poor.
I've managed to make a snapshot and have it display on my stage.
View 3 RepliesI am in need of creating a search button for my flash project. I have created a single .fla file and from that I publish a single executable file. Within this project are various amounts of information on diffferent frames. How can i create a search box on my maing frame that when inputted into it will search my project for the text entered?
View 2 Repliescreating an AS3 Facebook share button? I need to be able to customize the title, description and picture.
View 3 Repliesit possible to create a button in flash that when clicked the flash interface extends to fit fullbrowser?
View 4 RepliesI'm looking to create a flash based popup window when a button is pressed within the flash movie. Not a javascript based html window or html browser window, but a window that is in the flash movie that is entirely flash based. I looked all over the internet and can't seem to find anything on this, and can't find anything on this board either. I am new to flash and actionscripting in general. I would also like to use the Tweener external class, or the flash tween class would work too.
View 1 RepliesI'm really really stuck with this. I have a flash paint application, and I want to add a button that saves the picture that has been drawn as a jpg using a PHP script. I've done the drawing bit and the PHP bit, I just can't get the button to work. This is my code:
[Code]...
Whats wrong with the following code,There is an error at
saveButton.visible = false;
discardButton.visible = false;
[code].....
i m developing facebook app in which user can set background wallpaper and from friend selector also add friend's album images to board and than click save to create jpg, my problem is all things are perfectly running on locally, but on the server when i add wallpaper and click save the jpg is created fine, but when i add friend album image to the board and click save button the code not working properly it seems to happen nothing but when i delete image from board and than click save the button is working properly,ovide code if necessary ,[url]....click on create poster button and it goes to flash file
View 0 RepliesI need to create a button to save a part of a swf(or a the whole swf) into jpg.
View 1 Repliesthere are source files of a function which save the files on mouse drag, i just want that this function will start working on button click?
I am uploading the all source files for you!
the all functions are working very fine, but i want to know is it possible to capture the stage area when we click on a ENABLE button?
I just want that Snapshot functions will start working on button click, when we click enable button it should drag and save images, and when we click disable button it should stop the function.
i'd like for user to be able to save a snapshot of the swf by clicking a btn. for example, i have a piece of paper that the user has typed on. is there a way to save an img of the swf?
View 1 RepliesI have use for button Save this function:
Code:
private function btnSaveHandler(e:MouseEvent):void{
dispatchEvent(new ControlPanelEvent(ControlPanelEvent.CLICK, ControlPanelEvent.SAVE));
But this not work, why?
Is it possible to create a button in flash and use it in a php form? or even an html form? if yes, how???
View 2 RepliesI have a borderless video that is going to be on a website I'm designing. I can add the play, pause, stop buttons but I need to add an exit video button. The video is going to auto play when a user goes to the website. The video is placed directly over a form, so I need the user to be able to click the exit video and have the video disappear allowing users to use the text fields in the form. I have tried many methods, but to no avail.
View 3 RepliesI'm using Flash CS4 and Flex 3.4.0. I'd like to create a vector-graphic button in Flash and use it in Flex.I'd tried to install the Flex Component Kit, but it won't add me the 2 commands I need for the conversion as stated here.
View 2 RepliesI'm trying to make the code below reusable. I need multiple toggle buttons in my flash project. Right now the code below works on one button. If I continue and create more buttons, and follow the format below, I would need to create separate functions for each button.
I would like to put the reusable code in a separate ActionScript file and not in the FLA file. I am trying to put the rolloverToggle, rolloverToggle, and toggleClick in a class that I'm making.[code]...
I would like to create a button that makes my flash fullscreen.But this line:
stage.displayState = StageDisplayState.FULL_SCREEN;
does not work. Why?(I'm opening my swf directly in Chrome.)
Edit: There seem to be consensus that I should embed in HTML.
I want to create a kind of "flash button" in a web page. It just like the volume controller of windows operating system. When we click the button or the bar and hold it to roll down or roll up then we can change the volume. Actually, I want to use it to control the speed of switching picture in a web page. For example, intially, the images will switch from one to the other in a default speed--image/5seconds. There is a kind of slide bar just like I described above, I can roll the button to left or right to control the speed of switching.
View 2 RepliesI have a Flash file for a client who is asking that I create a xml file that will allow him to change the URL of single button in my Flash file at anytime he desires. I've been researching and can't find a step by step.
View 5 RepliesWhen I create a simple button in flash with AS3, I get a "flash" when I click on the button that echos the background color (so if I am going from one bkg color to another, you can see it). The flash is the rectangular shape behind the button.If I create the button with AS2 code, it doesn't happen![code]
View 2 Replies