ActionScript 3.0 :: Script To Make An Save/load Button?
May 22, 2010What actionscript would you write to make a save/load button?
View 1 RepliesWhat actionscript would you write to make a save/load button?
View 1 RepliesWhat actionscript would you use to make an save/load button?
View 1 RepliesI've managed to make a snapshot and have it display on my stage.
View 3 RepliesDoes anyone know how to make a save/load menu like in Line Rider to work?
View 7 Repliesi want to create some 1 button for save and 1 button for load all shared object in my projectthis is my code for save and load and i want to create 1 button for save and 1 button for load last check point
ActionScript Code:
import com.dVyper.utils.Alert;
import flash.events.MouseEvent;
[code].....
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 Replieshow to make a load button for a game. What i mean by this is that there are games that go on for a long time and when you exit them and come back to the game the next day,you can load your previous progress.
View 1 RepliesI am starting off by creating a very very basic flash document, with about 10 frames in it, just to get myself used to controls etc. i have got my buttons working to go from one frame to the next, and i am now wondering how to make a button load a movie clip, the movie clip is actually just a circle i drew and converted, but i would like this to be invisible, and then to load, or "play" when a button called "1" is clicked
View 4 RepliesI am trying to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library? Basically i want to no how to make a button load a sprite from the library when clicked. Does anyone no the script for this?
View 5 RepliesI have a movie clip on my stage and within that mc, I have a button mc.I click my button (on the stage as I'm working) and I wrote this actionscript:on(release){getURL("javascript:signUpClickVideo(); ");}The button functions fine to load other pagesexample:on(release){getURL("index.htm");}When I try to load Javascript, it doesn't respond.I've done a little trouble shooting with how the document loads in the JS.
View 1 Replieshow can i make a flash button template that load vars from direct xml? like height/width/text/color/curve/background or transparent background also i will have more than one of these buttons on the same page, so they must take the vars directly fromt the xml.
View 0 RepliesI'm using the tutorial from Kirupa found here: http:[rl]....What I want to do is to make a button load the script directly instead of going to a specified frame and load the actionscript from the frame. Is that possible? In this way I could have all elements on one frame, instead of having a frame for every set of images.Here's the actionscript that I want a button to load:
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code].....
how i can make the button when i press it do not load movie number twice(x2)?. and when you press again the button load the movie ,i just want to load just one time, the movie and when u click on it don't play again.
View 3 RepliesI've been searching for a way to do this without using html. For some reason i can't have my enter site button load the main movie from the splash page and go full screen at the same time. here is my full screen code: (where do I put my loadMovie script to make both events happen at the same time)
_root.enter_btn.onPress = function(){
if(Stage["displayState"] == "normal"){
Stage["displayState"] = "fullScreen";
[Code].....
I'm trying to make a button to load an input text field for email addresses. I've been trying lots of different approaches but nothing seems to be working.Code:Quote:
on (release) {loadVariablesNum("subscription.php",0,"POST");
gotoAndStop("thanks");
}
I just need the button to communicate with the PHP code I have setup.
The swf posts the content to save.php but i dont have a save.php I need to create one but i donno what do put in the save.php as code to get it posted there. Here is the code that requires the save.php to post:
Code:
loc3 = new flash.net.URLRequestHeader("Content-type", "application/x-www-form-urlencoded");
(loc4 = new flash.net.URLRequest(p.rooturl + "/save.php?name=" + arg2 + "&type=" +
[code].....
I have a MovieClip inside a ScrollPane. Inside this MovieClip i have buttons. What i want to know is: how to click a button inside a Movie Clip, that is inside a scrollpane, and make it load a swf outside the scrollpane?
View 2 RepliesI'm having a brutal time with a FLA. The wait time to open this thing is ridiculous, and alot of the time the program will just become nonresponsive. Its only this one specific file, as others open fine. It also has nothing to do with the hardware on my system, as we've tried the file on a variety of machines.The FLA itself contains very little bitmap art, most is vector. It's about 16mbs, but publishes down to a SWF thats about 300kb. There were some complex vector elements which were removed in a fruitless attempt to get this thing to move faster. Trying to "save as.." results in flash writing to a file extremely slowly. The resulting file will progress in size from 2 - 4 mb with about 10 minutes wait time in between. Its becoming nearly impossible for us to work in the file. how I could debug Flash itself to find out whats going wrong on load/save?
View 3 RepliesI have a project that requires me develop an application that will load a PDF file, manipulate and edit it then save it as PDF file again.
View 4 Repliessave/loading with Php and MySQL. Every user should have hes own save under hes username and password.
View 1 RepliesI know Flash applications cannot store data locally for security reasons, however, Macromedia has addressed this issue:
[URL]
But I don't understand that at all...
So, probably using what that link says, what's the best (easiest on the user) way to store data to a consenting user's computer? I don't mind if it has a prompt for permission, but it should not rely on too much software that nobody has (java and shockwave seem ok). The goal would be to store data across sessions, so that it would remain available if one returned to the application after closing it and going offline.
This would be useful for saving a character's HP, experience, and location variables in a game for example... possibly ending up with a .txt file that looks like:
name: Aesir
level: 2
exp: 50
zone: Cave of the Poo
x coordinate: 10
y coordinate: 30
gold: 5
Or something simple like that.
So lets say I have a online game where I will have everything that is going on in the game, assigned to variables. I want people to play the game from their own computers through the website and I want them to be able to save and load their place in the game.f this is the first time they have saved, it will ask them to make a login and a password.ll of the data should be stored on my server
View 3 RepliesIw allready done the register and login thingy now save/loading with Php and MySQL. Every user should have hes own save under hes username and password.
View 1 Replieshow to make a swf to take snapshot and save it as jpg?
View 3 RepliesI want to create a clip dynamically (for example with createEmptyMovieClip) and after assign object and motion to it, save or export it as a .swf file.
View 1 RepliesI know it's possible to load and save a local file using CS4 and Flash Player 10, but my question is if I can load a SWF local file without using 'browse' and 'load' methods and then save it. I really pretend to "copy" a specific SWF local file into another folder on my HD and I think this is possible loading first this file and then saving it. For this reason I don't want the dialog box appears (with browse method). ('maybe with 'Loader'?)
View 2 RepliesI'm almost retarded, but I understand the basics of ActionScript 2.0. I'm busy with a game. Now I'd like to save characters, and later on reload them again. The characters will be composed by drag&drop scripts. Where haircolor, face, eyes etc. can be chosen. Now my problem is: I really haven't got a clue what this is called, save and load? Or where to start at all
View 2 RepliesI need to know how to save and load a very small amount of variables to a computer running my swf file. It is so that a person can keep their progress in a game if they decide to close the .swf and reload it later. It has nothing to do with a server. The most related thread I have found was [URL] but it has no solution.
View 4 Repliesneed save a MovieClip in XML format, then i wrote this code below:
private function getDegrafaData(e:MouseEvent):void {
var xml:XML = _canvas.getObjectData(FormatType.DEGRAFA);
_saveFileRef.save(xml.toString(), "My_Sketch.xml");
[code].....
I'm using my dynamic library to load all the photos & descriptions from an XML file. The photo upload is being done by a PHP page that edits the XML every time I upload/change/delete any data. The problem is, the *.swf seems to get saved, and doesn't check the XML after the edit is being done. (it works fine if i load the page again from another PC). How do I make my swf not getting saved with the loaded content? I just want the applet to load + check the xml + load everything written in there every time any PC loads it.
Here is the *.fla.
album.zip
The XML looks like this...
Code:
<photos><image><addr>
*photo name textnode*
</addr><desc>
*photo description textnode*
</desc></image></photos>