I have a game where you can throw snowballs, get a score, and a accuracy at the end.I want to be able to let the use save the score to a jpg.The code works fine, image saves right to the computer.it get the movieclip.height and movieclip.width (which is about 300x 100 px)But when I look at the image it makes a 300x100 jpg image but puts every data thats being written in the top left corner.
How can I show an image that I have just captured with the webcam?I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:
ActionScript Code: foo = new BitmapData(640,480); foo.draw(myvideoobject, scaleMatrix);
I have been working on porting a Flex vCard import solution by Lode into Flash/Air using as3corelib. Everything is working fine (full name, organisation, title), however I am struggling to work out how to retrieve the actual email address from the parsed data.
I've got an image being changed based on a variable, and although the variable part and the actual image change is correct, the new image is coming up to the right and down from where the holder image was.
I am having trouble loading an image where i really want. Here is the code that i am using:
[Code]...
The CELL movie clip it has 3 more movieclips inside, i want to load the image in a particular one inside the CELL movie clip... the previous code works, but seams that it is loading in the cell movie clip... The other 3 movieclips are A, B, C... i want to load the image in cell.c
I am trying to make a flash application that can save (to the user's local hard drive) a screen shot of the canvas (or more accurately part of it).I've dabbled with Quasimondo's Bitmap Exporter which did some funky stuff to render an image, ship it to a php script on the server, and bounce it back to the client. But not only is that inefficient it also has two other major flaws:
1) it's written in actionscript 2 so I can't use any actionscript 3 abilities.
2) it breaks as soon as one of the images on the stage is defined as a variable brought in through $_GET rather than hard coded. (the image comes in fine but then the rendered finished product is a blank white image)
Im currently trying to work the imageSnapshot function in flex. Ive been looking hard but I cant seem to find a solution to my problem. I wish to take a screenshot of one of my components, to capture the final output of my program, since a plain "printscreen" cuts off some of the output due to it scrolling. My current code looks like -
<mx:ApplicationControlBar dock="true"> <mx:Button label="Take snapshot of Profile" click="takeSnapshot();" />
[Code]....
Now i think this is taking the image of the viewstack which I want... But Im stumped on what to do from here! Is it not possible to now just copy the image to the clipboard, or produce a new window in my browser with the entire image inside?
I'm using sephorith's excellent export jpg with flash and php set up which can be found here:
[URL]
I have this working, taking a simple grab in my flash movie and finally displaying the image in the broswer as a jpg. This is all fine, however, instead of displaying the image in the browser, I want to just save it into a folder. I know very little php, but in the file provided, he uses the line:
[CODE] // print out the correct header to the browser header("Content-type:image/jpeg"); // display the image imagejpeg($img, "", 90);
I am working on a web-tool that allows users to add pre-loaded tiles of data as overlays to Google Maps. I then want users to be able to save their work. I'm approaching this as them saving a series of images that they can then import to work and add text etc to a layout they choose. If you want to see it in action, it's available here: [URL]
My issue is saving the map image.
I started by trying to use BitmapData.draw() and the JPGEncoder class in the as3corelib and this works for the 2 legend images. It also works for the map when testing on my PC (and changing the Global Security Settings). As soon as you put it on the server it hangs at the BitmapData.draw() line, and I've since found out that this isn't resolvable:
code.google.com/apis/maps/faq.html#bitmapdata
I went back to trying to use map.getPrintableBitmap (code.google.com/apis/maps/documentation/flash/reference.html#Map.getPrintableBitmap; which I'd previously discarded due to poor resolution). I can still pass this through JPGEncoder and am now happy with the result. However, the code only runs when no overlays have been added to the map.
Is it possible to save image from Flash with ActionScript3 without using of any server side script? I need the download image functionality on application distributed on a cd so I can't use any server side scripts.
change the following php/AS3 to make it save the dynamically created masked image to the server instead of offering it for download? You have to pass it variables from the as3 AT THE BOTTOM OF THIS POST...
PHP - <?php if(isset($_FILES['Filedata'])) { // basically if file data exists to actually upload.
I built an information terminal for the shop of a friend of mine which uns as fullscreen application.On this terminal the swf file is running as a stand alone file by unsing the flash player directly.I want to save a snapshot (jpg) from a webcam if someboy presses a button.This does work as long as I run my application (swf) by using the browser (Firefox , Apache and localhost).But if I try to use it as it should be used no image is beeing created.
There was an error when first testing the application which forwarded me to an Adobe site where I had the possibility to grant files permissions, which I did for the file (the SWF) that needed it.Did I do something wrong, or is there some permission thet I have to grant before it works as it should be?
I have a project where the user uploads a large 300dpi image, then manipulates it (drag it, rotate it, position it). And the user can reuse this 300 dpi image, basically to make something like a t-shirt pattern. Then when the user is ready, they save this t-shirt pattern, and the save format is a large 300dpi png. This saved png file is for printing. Now I figure I can have PHP take bitmap data (as binary I assume) and the php can create the png. Is it a good idea to use Flash for this? I will have to scale down the users loaded 300dpi image so they can position. Then I assume scale it back up when it comes time to save Does anyone think Flash can't handle this?
Is it posible to save a flash scene into an image and save it on client-side hard drive ? Without PHP. I dont care if user has to change flash security options.
I followed this question:flash Actionscript 3 and php image upload.I copied the code:[code]It works great, I just need to know how to save the image under a specific name, how do I pass an argument to the php script? or is that not necessary, can I change it before calling the script?How would I then call URLrequest to show user the file he uploaded ?
I have an image loaded from an url and added to canvas as child. Then I am drag and dropping another image on it which also uses the senocular transform so the image can be transformed on the canvas. I have coded in such way that the transform handles shows up only after it's dropped on canvas. The image shows up correctly. But I am trying to save the result image (that is the main image and the dropped image on top of it), I only end up with the main image that was loaded earlier. The dropped image doesn't show up.
Below is the code for handleDrop() that is fired on dragDrop event and prepares the final image.
I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb.
My actionscript is: import com.adobe.images.PNGEncoder; import flash.display.BitmapData; import flash.utils.ByteArray; // Go to PHP Page.// bitmap_btn.addEventListener(MouseEvent.CLICK, gotoPHP); function gotoPHP(event:Event):void { [Code] .....
how do you upload the image for temporary savings and then save it down to the local map?
My Situation: Making an flash website for my father in law and we got a server/domain which has got no database... Which make it impossible to basicly just save it to a database.
so I will make a admin place where he can go on and save the image to a map specified. and then it will upload the images by it self...
So how do I move the image from the local computer to the server where the website is. He wount have access to the server so he can't manually go in and put the images into the folder he needs an admin way of the website to save the images into the folder by remote access.
Currently the user can draw with a pencil and fill in colors with the mouse. There is a print option where the user can print out what they drew and colored.
What I'm trying to do is save a specific movie clip as a jpg or a png.
i've seen a few good examples to save out a png of the current flash display area from a webbrowser from a flash, such as:[URL]what they normally do is stream the image data through a png encoder to a web server somewhere and then decode the image data back to current webbrowser and then trigger the web browser SAVE function, by prompting user to select a path and file name to save, like a download.however, the difference is when you click that save button, you can save your png image directly to a certain location with a fixed file name, such as on your local computer:
I've been using this code to save my panel area as an image.
var bd:BitmapData = new BitmapData(vgrpBottleArea.width, vgrpBottleArea.height); bd.draw(previewPan); var ba:ByteArray = (new PNGEncoder()).encode(bd); (new FileReference()).save(ba, "MyLabel.png");
This panel named previewPan consists of several images and what i'd like to do is just save the middle portion of the panel. the vrgrpBottleArea width and height the diamentions of the final image i want to save.
I load image to control than I applie some effects, and when I save image it's saving without effects. What should i do?
Here is the code:
private var byteArr2:ByteArray; private var fileRef:FileReference = new FileReference(); public function process():void
[Code].....
UPDATE Appears new problem as I am using var data:BitmapData = new BitmapData(currImg.width, currImg.width); saved image is small(size like image control) but I need to save image with original size. With var data:BitmapData = Bitmap(currImg.content).bitmapData; it worked
I'm rather inexperienced with flash and as3, and I've been given a task of writing a program that downloads images from URLs that are provided, and saves them to a specified location on the user's computer.
The idea is to be able to download multiple images (user selects them) and download them all to a single directory (which the user selects first) so that he doesn't have to download them one by one. Also, putting them in an archive and downloading as one file wasn't an option.The only solution I found is using FileReference.save(), which won't work for me because it opens a save dialog.