Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Actionscript For Save Button..



hi i created a SAVE button for my flash but i do not know how to go about inserting actionscript to make the button works. Anybody can help me?
I want to add a actionscript to the button which enable the users to click and save the last frame as JPEG/BITMAP/whatever format.



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-31-2005, 11:35 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Save Button To Save Dynamic Mc's?
If anyone could help, I would really appreciate it.

Problem in short :
Working on interactive kiosk - have button that creates dynamic copies of my parent movieclip (picture of lion) The user would click on button to create copies and using "drag" move the lion to where she saw it on the map.

Once the lion "sightings" have been visally logged on the map, and need to be able to give them a "save" button to save what you see on screen.

Because this is created dynamically by the user, I need a way for the user to save it at runtime.

How would one go about this?
p.s I need to be able to show the new saved file from a remote pc.

Any help - you are my hero

Save A Jpg,bmp Or Png With Actionscript.
I've made a project that saves a bitmap from flash to the user computer and also on the server. The project si here and you can download the sources to.

http://www.webdesign-flash.ro/p/savejpg/

Save As 4 Instead Of 5 (w/ No Actionscript)
In a simple flash movie that doesn't use any actionscript, I discovered there is absolutely no difference in file size / preload frames (preload seconds) if it is published as either version 5 or 4. Is there any reason I would save as 5 instead of 4, seeing as choosing 4 includes a bit more of the un-upgraded masses?

I previously had been following the usual advice to save as version 5 for the most compatibility, but now can't see why not save as 4.

Actionscript To Save An Image
I have a requirement to be able to generate the same image but with different language text, this does not have to be on the fly, is it possible for a standalone or web based flash movie to save a specific object/frame as an image?

HELP Is There An ActionScript That Will Allow Me To Save To A File?
I am creating a standalone that will be sent out to clients on a CD-ROM... I'd like to write a script that would allow users to click a button and save an image on that CD-ROM to their hard drive. I know Flash Studio Pro can do it... however, I am working in a Mac-only office, so Flash Studio Pro won't help.

Thank you in advance for any help with this matter.

Actionscript To Save Swf To Desktop.
I am making a screensaver with some simple actions to make it project full screen. I got it to work, as well as a button to quit the movie, but the last thing I need is the ability to save the swf to the desktop with a button in the swf. Ive looked for hours. Our site is set up pretty strange, thus doing it the old fashioned way would require more work than I care to do. Does such an action exsist for swfs? thanks!

Save And Load With Actionscript
i am working on an interactive movie game kinda like the old dungeon and dragons books where the user has the choice of which path to take, i want the user to have the options of save and load. is there an easy way to do this with actionscript??

CS4 Save As And ActionScript Versions
I'm curious as to which versions CS4 can save an FLA as. As government contractors we are obligated to submit our FLAs as part of our final deliveries, and some customers require the version to be 8. For this and other reasons we need to be mindful when considering upgrading.

Also, will CS4 allow us to create files as either AS2 (gotta have that Tree component!) or AS3 in the same way that CS3 does?

Thanks in advance.

'Save File' Using ActionScript?
I need to incorporate the facility to save a file in swf or jpeg or bitmap format using actionscript.. is that possible?? if so, how?
the file should contain a movieclip that's on stage.. i could convert it to bitmapData and then try saving.. or if not that, then atleast the screeshot of the whole movie should get saved..

help??

Save Txt File ActionScript 2.0
hi guys, i was browsing arround trying to find a way to save a txt file from a flash made exe widh the projector, and no way... i cant find it, i have found an example, but im not into old school programming
lets say i started with 2.0 and i find it more easy
now..... i have seen this example and goes arround with fscommand, so my question is.... where can i see more commands that can be used with fscommand ? because "Save" is not documented in flash, do i have to check msdn ?
some light for this coder would be quite nice

thanks for your time

ActionScript Save Stage
Hi,

I've got a canvas thing going on here, where the user can draw what they want. I would like it if there is some way I can save the stage for them and provide a JPG output.

Normally I would output the coordinates to the PHP gd library but unforunately my host doesn't support that library. Hmpf.

Anyway, can anyone suggest an alternative way of saving the stage?

Cheers

Paul

Save Or Export With Actionscript?
does anyone know of a way to export or save files through actionscript?

for example, ask the user for an input and save that variable as a .txt file while the program is executing...

Actionscript For Save File OnPress
What actionscript would I use for onPress that would prompt the user to DL a file? I have an audio file that on the press of the play icon, it would play the file. On the press of the floppy icon, it would prompt the user to save the file. Thanks

[F8] Actionscript Edit Text And Save With Php
when some one hard have example or script i have for making save but for edit is ok

for save in php
-----------------------------------------------------------------------
$Website = $_POST["Website"];
$keybord = $_POST["keybord"];
$description2 = $_POST["description2"];
$url= $_POST["url"];
$NumLow = $_REQUEST["NumLow"];
$NumHigh = $_REQUEST["NumHigh"];

// Replace special characters - you can remove the next 5 lines if wanted.
$title = ereg_replace("[^A-Za-z0-9 ]", "", $title);
$description = ereg_replace("[^A-Za-z0-9 @.-/'|]", "", $description);
$description= ereg_replace("[^A-Za-z0-9 @.-/']", "", $description);
$description2= ereg_replace("[^A-Za-z0-9 @.-/']", "", $description2);
$Website = eregi_replace("http://", "", $Website);
$Website = ereg_replace("[^A-Za-z0-9 @.-/'~:]", "", $Website);

// Remove slashes.
$title = stripslashes($title);
$description = stripslashes($description);
$Website = stripslashes($Website);
$keybord = stripslashes($keybord);
$url = stripslashes($url);
$description2 = stripslashes($description2);



if ($Submit == "Yes") {
// Next line tells the script which Text file to open.
$filetitle = "database.txt";

// Opens up the file declared above for reading

$fp = fopen( $filetitle,"r");
$OldData = fread($fp, 80000);
fclose( $fp );

// Gets the current Date of when the entry was submitted
$Today = (date ("l dS of F Y ( h:i:s A )",time()));

// Puts the recently added data into html format that can be read into the Flash Movie.
// You can change this up and add additional html formating to this area. For a complete listing of all html tags
// you can use in flash - visit: http://www.macromedia.com/support/fl...s/htmltext.htm

//$Input = "title: <b>$title</b><br>description: <b><u><a href="mailto:$description">$description</a></u></b><br>Website: <b><u><a href="http://$Website" target="_blank">$Website</a></u></b><br>keybord: <b>$keybord</b><br><i><font size="-1">Date: $Today</font><br><br>.:::.";

//$Input = "<database> <record title="$title" description="$description"><link>$Website</link><keywords>$keybord</keywords></record>";

//$Input = "<database>--> <record title="$title" description="$description"><link>$Website</link><keywords>$keybord</keywords></record><!--";

$Input = "<database>--><record title="$title" description="$description $description2"><link>$url$Website/</link><keywords>$keybord</keywords></record><!--$Today";
/* This Line adds the '&GuestBook=' part to the front of the data that is stored in the text file. This is important because without this the Flash movie would not be able to assign the variable 'GuestBook' to the value that is located in this text file */

$New = "$Input$OldData";

// Opens and writes the file.

$fp = fopen( $filetitle,"w");
if(!$fp) die("&GuestBook=cannot write $filetitle ......&");
fwrite($fp, $New, 800000);
fclose( $fp );
}
----------------------------------------------------------------------
actionscript in button save
----------------------------------------------------------------------
on (release) {
if (title eq "") {
_root.Status = "Please enter your title";
} else if (description eq "") {
_root.Status = "Please enter description Address";
} else if (Website eq "") {
_root.Status = "Please enter the URL to your website";
} else if (keybord eq "") {
_root.Status = "Please enter the URL to your kyebord ";
//} else if (documents2 eq "") {
//_root.Status = "Please enter the URL to your kyebord ";
} else {
Submit = "Yes";
NumHigh = 10;
NumLow = 0;
_root.GuestBook = "Processing.. Loading New... ";
loadVariablesNum ("GuestBook.php", 0, "POST");
//_root.Status = "Your entry has been submitted. You should see your comments appear immediatly";
gotoAndStop (2);
}
}
----------------------------------------------------------------------
now i need button Edit make modification in my save in .txt

Inserting A Save Command In Actionscript
Hi all. I'm pretty new to Flash, though I've been using it for a few years, on and off, to do simple animation, so I apologise if this question has been asked before.

Basically I'm creating an animation where a user can colour in a drawing, by selecting the colours. I've got more advance ideas for that, but it's a while down the line. I want to give the users the ability to save the image as a GIF (for use on a message board), and if possible also save the FLA, so they can modify it later - I doubt the second option is possible.

I've gone through the ActionScript commands, and searched on Google, but I can't find any tips on how to add a button which will Export or Save the drawing, once the user has coloured it.

Is this possible?

How Do I Save ActionScript Animation As Movie
I am a Flash developer and motion graphics designer. I have created a lot of Flash movies with Actionscripted animations and I'm dying to convert them to video. Whenever I save as Quicktime MOV, I lose the animation altogether, probably because the Flash Player is required for the scripted motion. Is there ANY way to convert ActionScript animation to video short of videotaping your screen?

Can Actionscript Load/edit/save Cookies?
I have this game that I created. I only want people to be able to play it once a day (Chance/luck game). Can this be done with actionscript? If so. how?

Thank you very much in advance!

I Want Actionscript To Save To An External Text File
I have a button and i want to make it so when I click that button, whatever is typed into a dynamic text box (called "speech"), will be saved to a document called "data.txt" . Could somebody show me the code? Thanks!
-WLM

How To Save Stuff To A Text File With Actionscript
How do you make actionscript write to a text file that can be loaded by a dynamic text box?? (I know how to do the loading..)


I basically want to learn how to have an input box (Admin section basically) that I can go to my website select a text file from a drop down menu, the text file will get loaded into the input box, Then I be able to save the changes that I've made.

If anybody knows how to do this, I'd greatly appreciate it!!

How To Save A Move Clip As A .jpg Or .gif File Using Actionscript
i have a move clip which is running in the browser. i want a save button in that move clip, and when i press that button the movie clip should be saved as a jpg file.

Note: The move clip is running in the browser, and the size of the movie clip is 800X600 Pixel

Dynamic Jpeg Creation & Save (using BitmapData) From SWF Using Actionscript - HELP
Hi everyone,

I've built a little online Flash application where I want to save a portion of the SWF file to the server as a jpeg when the user clicks a button.

I approached it by using BitmapData to record the RBG values of every pixel in my movie (600 x 400 = 240000 pixels). This means I end up with an array of 400 pretty big strings (one for each row) to send to my ASP page that creates the image (the ASP page works fine by the way).

Basically, I'm completely stuck now because it takes so long to send the data that the application is unusable and the bandwidth on my server will be through the roof.

I found an example of a different application that uses the same principle. The creation of the jpeg from his Flash interface seems absolutely instant, and the e-mail arrives very quickly:

http://demo.*****.com/flashcard/stateless/

He surely can't be sending all the data, pixel by pixel, as I am doing, as it only take a second or two for his application to process this stage, so my question is: am I missing something? Is there some really simple way of creating a jpeg from an swf file using actionscript that I don't know about, or is there a way of compressing the data so much that it is much quicker, or is there a 3rd party plugin which allows jpegs to be dynamically created and sent to an ASP/PHP page?

I am completely stuck on this so any help would be really appreciated.

Thanks in advance,
Jim

Problem With FLVPlayer In Flash CS3 (need To Save Out As Actionscript 3.0 SWf File)
I am using Flash CS3 and am trying to publish a SWf file that makes use of the "FLVPlayback" component. I need for this SWF file to be published as an Actionscript 3.0 file, so I have set my publish settings to Flash Player 9.0 and Actionscript 3.0, but keep getting an error as follows:

"WARNING: The component 'FLVPlayback' requires ActionScript 2.0."

Has anyone encountered this?? I am doing something wrong? I'm pretty comfortable within Actionscript/Flash 2.0, but am only beginning my first steps into the relam of CS3 and AS3.

I have also attached a screenshot of the files that represent my FLVPlayback component (or so I assume). (see this link for attachments http://www.actionscript.org/forums/showthread.php3?t=140886)

Thanks all,
Mark



http://www.actionscript.org/forums/showthread.php3?t=140886





























Edited: 07/03/2007 at 11:37:27 AM by marke

Save Or Export Flash Movie As IMAGE With Actionscript
Hello Flash GURU's,
Lets assume that I have a movie clip named myimage_mc and I need to use actionscript 2.0 to export/save this movie as an image, is it possible ?

Save Or Export Flash Movie As IMAGE With Actionscript
Hello Flash GURU's,
Lets assume that I have a movie clip named myimage_mc and I need to use actionscript 2.0 to export/save this movie as an image, is it possible ?





























Edited: 08/14/2008 at 10:35:30 AM by TALAL MANAA

How To Save Strings On Runtime In A .txt File From Actionscript Of Flash 8?
I need to know the action script code for writing & saving in a .txt file with Flash 8 on runtime. It would be best if there is a way to save strings one by one somewhat like Array.push() function; from which the strings could be called on runtime from the .txt file according to their index. Putting in other way, i need a way to create array as an external file but want to use & amend it as comfortably as an usual array in flash. Plz plz plz plz plz help me. I really really need it!!!!! or im

Save Button
Dear People,

I dont know how to do this :
I have made a Kind of Calander with check boxes but i want to let people save online what they fill in. WILL be Saved

People help me I need help

Greeting Blondislekker

Help With A Save Button
I need help making a save and load button that works. i've made the button but i dont know how to program it to actualy save.
please help
Codien Flame #1

Save As Button
hey there!

i'm linking from flash movie to an external quicktime movie ... so if i click the link a new window opens up displaying the quicktime ... but instead of doing that i want the browser to download it like i would rightclick and save as ... i need that because i display the movie first as an flv and afterwards i want the user to be able to download it ...

so ... any help is appreciated ...

thanks
flow

Save Button
I am clueless on how to make a save button, does anyone know how to make a save button?
It's for my button clicker game.

Reset Button/save Button Help
i need to know how to make a reset button reset all of the movieclips that have been placed on the screen. I can do it individually but i need something to do all of them. Here is my script for it so far. but this doesn't do anything

on (release) {
reset.onRelease = function() {
removeMovieClip("container"+i);
};
}


also does anyone know how to create a button to save the screen as a jpg or another picture file????

Help - Having A Save Button On My .swf File
Not sure if this is possible but...

I have a .swf that works as a template, it has input fields with dynamic text so that peolpe can go on to it and preview their information, instead of the generic info I have on it. Is it possible to have a button on the .swf so that the person previewing their info can save a copy of the .swf with their info. If so, what do I need to do.
I appreciate any suggestions. - You guys RULE!!!!

Save/Send Button
I'm wondering if anyone knows how to create a Save/Send button that will send data to file somewhere: PHP, XML, text...I'd rather have PHP, but if anyone has any suggestions or knows how, please let me know.

This is what I want to do. I want to create buttons for the user to click on that will create more buttons that contains a numerical value. I want to save each of these to database somewhere, but have no clue how. Thanks.

Button To Save Image?
hey all! I was wondering if there was a way to create a button or something that would take a screenshot of your flash movie and save it as a jpeg or something to a user's desktop (or a place they specify) I'm creating a type of paint-palette and I want users tobe able to save images of what they make. Any help would be great! thanks!

Blazepdf Save Button
Does anyone have any pointers on why this function aint working, when i follow the tutorials at http://blazepdf.com/ and publish my movie the save button will not do anything.

As anyone found this extension successful.............

[CS3] Right Click And Save Button?
Anyway to make one? I searched using "right click" but didn't see anything. Yes, I know I can zip the items and it makes users save. I don't want to zip the files.

Thanks.

Save And Reset Button
hey all. i have a question about this widget that i want to put on my myspace. there are letters that i want to move around, but i can't get them to save and reset. there is a lot of code here (possibly too much), and any help is appreciated.

thank you.
-ap

New Button Mixs With Old Ones At Save.
Hello, I have a flash template. When I create a new button it is ok, but if I save, close and re-open the project, my new button is replicated to a specific old button replacing it, somtimes it replaces another symbol that is a movie, somtimes the old button replace (copies itself) to my new button so my new fancy button gets tranformed in a simple big gray square that is what the old symbol has.
Those two old symbols are:
1) Button: a big gray square
2) Movie: an instance of (1)

I would like some help. I know it is quite strange and difficult to explain, if you need please ask me for more clarification.

Thanks,
Gabriel

Button To Save An Image
lo there,

how to do a button to save an image (or other file) to the disk?

any tip? any tut?

cheers

Save Button Notification
I'm creating a RIA, and one of the buttons in my main movie is a "Save" button. After the user saves their work, the button is disabled. I want to be able to change the "Save" button back to enabled if the user changes anything in any of the components in any of the loaded mcs. Is there a way to do that without making a listener for each component to send a message to the "Save" button??

Thanks!!!

Save Target As...button?
Hello, I have an image gallery, which loads images using 'loadMovie' . My question is, I want visitors be able to save the images by clicking on an icon that brings out the save dialogue box (the box that popups when you right click in IE and click on Save Image As...), I can tell the button to open the image up another window, which will open the image in another window and the user will have to right click on it and save target as (which is kinda innconvenient), is there an actionscript that can tell the button to go directly to Save Target As or Save Image As option? Any help/suggestion will greatly be appreciated

Button To Save An Image
lo there,

how to do a button to save an image (or other file) to the disk?

any tip? any tut?

cheers

Image Gallery Save Button
Can I add a button to an image in a gallery to let the user download the image to their hard drive?

Button Save Time In Asp? Any Help Is Good
Ok ive got everything else i need for my site except this:

I have 6 different buttons and i need to store the time the
buttons are released into an asp file, different info for each button.

so what all do i need to do? i can make everything in the
asp but what AS do i put in the flash? any explanation is a
good explanation.

Help Save The Day: You Can Answer This Button Link.
Greeting's FK,

Here is what I am trying to do and I have been having a problem:

I have a buttton in my flash movie, I want it to open another webpage BUT WITH NO ADDRESS BAR.

HERE IS THE URL:

http://corp.pictureu.com/trafik/buyerpress.aspx

Can someone please tell this newbie, how to do this?

Thanks,

The GG

Save/download Image Button
is there any way to create a button in a flash movie to copy/save/download an image. (jpg)

since the rightclick/save as- is not available when viewing a flash movie.


I don't want to open an html page. ( and then give rightclick option)


also would like to avoid link to zip file in case someone doesn't have a decompressor program.

any other ideas??

thanks

Save Target As ... From Flash Button
Hi,

I'm trying to allow users to download a video file, an .mp4 file. To get round different browsers trying to play the file from a simple get URL command I wanted to mimic the "save target as" option from a right click on a pc or "download linked file" from a mac.

Can anyone suggest a method for acheiving this.

thanks
ashley

How To Implement A Button To Save A File
I'd like to implement a button to allow user to save a file (say, html), not open the file. getURL with _blank opens it. Is there anyway to save on click?

Dress Up Doll * Help With Save Button
Hi Guys
I am making a drag and drop dress up doll game. I would like to add the feature to save the dressed up doll on to the user's hard drive. How can I do this?
Thanks in advance

AS2 - Button To Save Files To Computer
Ok, newbie asking..

I did one button in flash to save one .xml to the computer, the thing is, when i download, it open on the IE, dont give u the option to save somewhere in your computer!

so, what do i do?

thanks
Uili

Copyright © 2005-08 www.BigResource.com, All rights reserved