ActionScript 2.0 :: Creating A Button That Takes A Screenshot And Saves It?

Jul 9, 2010

I have been searching for a way to create a button that when pressed, opens the "save as" dialogue box and saves a screenshot of the stage of an .swf.

I am using this for a game in which movie clips can be moved around the stage. When the button is pressed, it would take a screenshot of the stage with the movie clips in the position they were moved to and then save this screenshot.

The screenshot would just be a picture (such as .PNG, .jpeg, etc.), not the actual .swf file.

Is this button possible to create with just Actionscript in Flash?

View 1 Replies


Similar Posts:


Javascript :: Youtube's Report Bug Tool Takes A Screenshot Of Screen?

Dec 2, 2010

If you go on the bottom of the page there's a "Report bug" link.

They let you highlight parts of the screen and sent it along with the bug description.

View 2 Replies

ActionScript 3.0 :: Creating Offline Flash Application Which Takes The User's Photograph And Stores It Into A Designated Folder?

Mar 20, 2011

I am creating an offline Flash Application which takes the user's photograph and stores it into a designated folder.My problem is how can i Store the photographs WITHOUT using any server side languages. (As its a standalone offline application).I know about the JPEGencoder classes and all.I can't use FileRefrence because it asks the user where he wants to store the image while i want to save the image in a pre-defined folder automatically.

View 2 Replies

ActionScript 2.0 :: Back Button That Takes To The Last Scene Visited?

Oct 28, 2003

First off, i just want to say that I'm pretty much a newbie when it comes to Flash MX ActionScript.Okay, here here's my situation... have included a menu that will take the user to any of the 10 scenes. Moreover, in each of these 10 scenes, I added a BACK, NEXT, and HOME button for navigation purposes.My problem is this... was at 'Scene 1' and I wanted to jump to 'Scene 7', so I go to my menu and clickedon the button that would take me to 'Scene 7'. Okay...now that I'm at 'Scene 7' I want to go back to 'Scene 1'. BUT THIS TIME I WANT TO USE MY NAVIGATION BUTTONS. So I press the BACK button from 'Scene 7' and it takes me to 'Scene 6'. (I already know why it took me to 'Scene 6' instead of 'Scene 1'.) BUT, I WANTED IT TO GO BACK TO THE LAST SCENE VISITED!

View 5 Replies

ActionScript 2.0 :: Back Button That Takes To The Last Scene Visited

Oct 28, 2003

I just created a Flash MX document with 10 scenes.

I have included a menu that will take the user to any of the 10 scenes. Moreover, in each of these 10 scenes, I added a BACK, NEXT, and HOME button for navigation purposes.

My problem is this....

I was at 'Scene 1' and I wanted to jump to 'Scene 7', so I go to my menu and clicked on the button that would take me to 'Scene 7'.

Okay...now that I'm at 'Scene 7' I want to go back to 'Scene 1'. BUT THIS TIME I WANT TO USE MY NAVIGATION BUTTONS.

So I press the BACK button from 'Scene 7' and it takes me to 'Scene 6'. (I already know why it took me to 'Scene 6' instead of 'Scene 1'.) BUT, I WANTED IT TO GO BACK TO THE LAST SCENE VISITED!

So my question is this...

How do you get FLASH MX to remember which Scene you last visited?

Is there a script that I must add to force it to remember the last scene visited?

View 5 Replies

ActionScript 1/2 :: When Click A Separate Button That Takes Me Back To Frame 1

May 22, 2011

[Code]...

I am also having issues with the logo loading a second time when I click a separate button that takes me back to frame 1 with the code that creates the empty movie clip.

View 2 Replies

ActionScript 3.0 :: Nested If Else - Get A Functioning Invisible Next Button That Takes You To The Next Image?

Jun 22, 2010

I'm working on an image viewer that contains 14 projects, each being their own external swf.I am determined to get a functioning invisible next button that takes you to the next image in the current project or to the next project if you are on the last frame in that project.The current code works well enough starting at any project and clicking until you get to the next. When the next project comes up it stops working.

next_btn.addEventListener(MouseEvent.CLICK, loadnext);
function loadnext(evt:MouseEvent):void {
if(firstswf != null) {[code]...

It doesn't seem to throw out any errors...

View 14 Replies

ActionScript 2.0 :: Defining OnRelease Handler - When A Button Is Pressed, It Automatically Takes Effect?

Oct 7, 2009

I have written some actionscript:

ActionScript Code:
stop();

/* QUESTION */
question1_txt.text = "Question 1. 'question goes here'.";[code]....

but the functions dont work in the way they should.instead of only working when a button is pressed, it automatically takes effect.

View 3 Replies

ActionScript 3.0 :: Saves PHP Instead Of JPG File?

Dec 16, 2008

I'm using the JPGEncoder and PHP to export a JPG of a movieclip instance out of my flash movie. Basically the end user hits a "save" button and they should get prompted to save to desktop.

Currently my code is prompting the end user to save my PHP file and not the JPG of the movieclip. Here's my AS3 code

ActionScript Code:
import com.adobe.images.JPGEncoder;
var serverPath:String = "";
function createJPG(m:MovieClip, q:Number, fileName:String)

[Code].....

View 9 Replies

ActionScript 2.0 :: Incorporate A 'Save' Button Which Takes A Snapshot Of Their Drawing Which They Can Then Save To Their Computer

Nov 21, 2009

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 Replies

Actionscript 3.0 :: If Function - When Click On The Button Takes To Another Page Without Showing The Click Animation

Sep 11, 2010

I created a movieclip animation that only activates when i rollover the movieclip button. I further extended the frames and created another frame animation that i active only when user clicks the button. So i have a roll over/out animation and click animation in the same movieclip in the same layer. Now the problem is that when i click on the button, its supposed to take me to another page, and it does, unfortunately without the click animation. That means after i click on the button its supposed to first finish the click animation and then go to another page. But when i click, it takes me to another page without showing the click animation

SO I tried the If function, but i seem to make a mistake somewhere and i dont know what to do. Now there is no error in script, but onw there is a problem in link, the button finishes the click animation but it does not go to the tarrgeted"about" frame. here's the code

[Code]...

View 1 Replies

Asp.net :: Webplayer Saves File Instead Of Playing It

Jun 7, 2011

In order to play videos (Flash Format) on the website I use JW Player on my pages. But I seem to have some problems with it. On certain Firefox browsers when clicking on the player it chooses to download the file instead of playing it in the browser. On the same computer I tried it on Internet Explorer and there my webplayer is showing badly, it stands in the top left corner (whereas it should be in the middle of the page) and flickers a bit.

Because everything is in development the webpage is only available through our servers. In other words, I can't provide you any link with details. So my question is, why do some browsers download the video instead of playing it? And is there a possible free alternative to JW Player to play flash videos?

View 2 Replies

ActionScript 3.0 :: JpgEncoder Saves White Jpg?

Jul 5, 2009

I'm using the jpgEncoder for a webcam snapshot app, my script was running right when my code was into my FLA on a layer, BUT I wanted to take it away in a document class, and now I'm having 2 issues :

a) when I shot a picture, the image doesnt stay frozen even with the line [attachCamera(null)]

b) I get a white image saved on my server.[code]

View 4 Replies

Actionscript 3 :: Generating Password Saves For Oldschool Games

Aug 25, 2011

I'm making oldschool-styled flash game and as it's so oldschool, I want it also to have password saves. Unfortunately I can't use usual solution - array of passwords and corresponding levels, one of which is to give hard time for guys on Arcadeprehacks and the other is that I want to make possible to save in-game and load with all score and lives.I need some solution to encode number values to string, which values are:

-Lives - up to 2 digits
-Score - 10 digits
-Level number - 3 digits

It can also take 2 additional values which can be numbers or text, anything else will be converted to string.It can't be converted to ANY string - only numbers and capital letters can be in it.

View 4 Replies

Flash :: Movieclip Saves Bitmap At Wrong Coordinates?

Oct 8, 2011

I have a MovieClip inside a stage that is mostly(not accurately) centered to the middle of the stage.

When I try to save the MovieClip into a bitmap in order to upload it to facebook, I either get a cropped image or a white image(blank). Here is the code for generating the bitmap:

var source:BitmapData = new BitmapData(board.width, board.height);
source.draw(board);
var bitmap:Bitmap = new Bitmap(source);

The result I am getting is the yellow area in the following image:

[Code]...

View 2 Replies

ActionScript 3.0 :: Saves An Image Out And Sends Back To Html Page

Jan 31, 2011

I have a cs3 project that works fine that saves an image out and sends back to a html page.We updated the project to cs5 and now it does not redirect back to the right URL. Only differences are in the below script. I been lookingat this for days without getting any where so would like some fresh eyes to have a look to see if there is glaring issues with the code.[code]

View 1 Replies

Flash Saves File On Windows - Not Linux - FileReference.save()

Aug 13, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15. Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty. I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data. I was thinking there was a permissions problem, but if that were so, why should Linux even let me save the file? It is going to slow things down immensely if I cannot code something and test it on the same machine...

[Code]....

View 3 Replies

Actionscript 3 :: Flash Saves In Windows Not In Linux / FileReference.save

Aug 14, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15.Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty.I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data.Then I broke the FileReference declaration out of the function into the class level, hoping to avoid a known bug, but the same problem persists.Hoping to set up a workaround, I added the debug Flash player to my path and ran the file from Flash without the benefit of the browser, and it works.So now a Flex problem has become a Firefox problem, maybe owing to a shady procedure I used to install the plugin without really understanding what was happening.I am running Firefox 5.0.In essence my workflow is fixed, but perhaps people who performed the above will not be able to use projects with FileReference.save()?[code]

View 1 Replies

ActionScript 2.0 :: .txt Files - Export The Text From Flash And Saves It Onto The Users Computer

Sep 6, 2007

I have this function within my flash program that allows a person to make notes, at the moment they notes are just saved from a dynamic textfield to variable and hover around in flash output space, now I really need to get it so that when they click 'save' it exports the text from flash and saves it onto the users computer. I really don't want to use fscommand... and I know it can be done with PHP but trying to find a suitable tutorial is harder than I thought... so I would wondering if anyone could recommend a good tutorial or has done it before and can give some tips?

View 1 Replies

ActionScript 3.0 :: Explosion Generator With Many Options To Play With And It Saves A Transparent Png Sprite Sheet

Jul 8, 2010

Here's a link to a particle explosion generator with many options to play with and it saves a transparent png sprite sheet: [URL] The same particle engine is used in my latest game:Tank Rush. But since my next game will use only sprite sheets for effects, I created this generator out of the tank rush engine.

View 2 Replies

Flash :: Writing A JSFL Script That Resizes Flas And Saves Various Versions, With Appened Names?

Oct 18, 2011

I am writing a JSFL script that resizes flas and saves various versions, with appened names.
I can get a "Save As" prompt to pop up using fl.saveDocumentAs();But I can't seem to get flash to generate a new name for the FLA.I just want to save "document.fla" as "document_foo.fla" ,(and later "document_qux.fla"), preferably without interrupting the script with a "save as" prompt.

View 2 Replies

Actionscript 3 :: Write Script For Clicking Button Using Following Code For Creating Button Dynamically?

Nov 11, 2011

i have to generate a button dynamically... and have to keep a click handler for the same how to write script for clicking buttonim using following code for creating button dynamically

var btn:Button = new Button;
btn.label = "Print";

View 2 Replies

ActionScript 3.0 :: When Press "breckenridge" Button It Takes To "breckenridge" Scene And Stops On The First Frame

Mar 2, 2010

Using Actionscript 3 Have a button called "breckenridge". I also have a scene called "breckenridge". On a keyframe is the following code.

[Code]....

When I test the movie and I press the "breckenridge" button it takes me to the "breckenridge" scene and stops on the the first frame. Then I get the following error message

[Code]..

my main timeline, what I am assuming is my first scene called "aspen", stops at frame 300. What gives? Okay, I know everyone hates scenes because it causes navigation problems. However I have this .fla split into sections and I intend to add more stuff to each section in the future. The easiest way I can think to organize these sections with out having a hodge podge of added stuff jumbled on one time line is to break it into scenes.

View 3 Replies

ActionScript 3.0 :: Creating A Button Dynamically But Could Not Get The ID Of The Button

Jan 2, 2009

I am creating a button dynamically, but i could not get the ID of the button.

PHP Code:

b1.label = "Close";
b1.addEventListener(MouseEvent.CLICK, closePopUp);
b2.label="Other Information";
b2.id="stateBut1";

[Code].....

It says that acesss to undefined property stateBut1. Now how should i call the id in my function.

View 1 Replies

ActionScript 3.0 :: Button Class Not Creating A Button?

Jan 9, 2009

I have some AS3 code which I was hoping would create a re-usable button class but it does not. I just get a blank canvas. I am not getting any errors. Code is attached. Anyone see what is wrong?

View 2 Replies

Flex :: Getting A Screenshot Of A Google Map

Aug 5, 2011

I have a Google map in my flex app that I need to occasionally export to an image file. Every time I try to call the, Map.getPrintableBitmap() or ImageSnapshot.captureBitmapData() functions I get the Error #2123: Security sandbox violation.I've tried adding various security allowances like:[code]I'm asking for a bitmap representation of a component that's already been drawn on the client's screen. Clearly all the information necessary to provide that bitmap is already present in local memory.[code]

View 3 Replies

ActionScript 3.0 :: Save 300 Dpi Screenshot?

Jan 19, 2009

I want to save a screenshot of my flash application at the highest resolution as possible ( 300 dpi or more).[code]...

Do you know how to improve the resolution ? Is there any encoder that can make higher resolution pictures ?

View 9 Replies

ActionScript 3.0 :: Take Screenshot Of Mc And Send?

Aug 5, 2009

Is it possible to take a screenshot in as3 of a movie clip and send it to another file via local connection? I have been trying for a couple of days so far and still I am pretty much lost. I followed the byte array.org live jpeg encoder and tried some of the code he uses but all I am getting is the bottom right corner of the mc when it is sent to the other side. What is the easiest way to do this? I'm not even that interested in actually encoding it, just sending the image to the receiver.

View 0 Replies

Enlarge Photos From Screenshot?

Dec 25, 2009

I'm building my first website in Flash, and it's a porfolio website. I'm trying to set up my portfolio page to show screenshots of my graphic design projects, and when a user clicks on them, it enlarges the photo.

I am looking for it to be done like this website below when you click on their photo samples, it enlarges it, where you can also go to the next photo.

View 1 Replies

IDE :: Screenshot / Convert Dynamic Swf To Jpg

Jul 29, 2004

I've exhausted all of my possible avenues for research and I am curious if any one has stumbled upon a piece of code or program that will convert a swf to an image format. It needs to happen at the click of a button within the swf itself. I've seen code for capturing the drawing API through PHP, but nothing for capturing straight pixel for pixel, not that a particular method is important. But at the very least all elements on screen need to be captured, ie. library items, input boxes etc. The method isnt important, I just need to get screengrabs of the swf at any time.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved