ActionScript 3.0 :: Save A Movieclip As Jpg Image Using JPGEncoder
Feb 11, 2010i am trying to save a movieclip as jpg image using JPGEncoder using following code,
[Code]....
i am trying to save a movieclip as jpg image using JPGEncoder using following code,
[Code]....
I'm trying to encode and upload two (or more) images from Flash using JPGEncoder. I can upload a single image with no problem, but have never needed to upload two or more encoded images. This is the code I'm using to encode and upload a single image.
[Code]...
I have created a customized dress up avatar using flash. Now I have to do that a registered user can make his avatar. After user creates his/her avatar how can I save the customized avatar in a database?
View 1 RepliesI have been using [URL] to create an flash file that creates a picture of an movieclip. But this only allows me to download the image from the flash, not upload it to a ftp server and to a database. The php file looks like this
<?php switch ($_POST[format]) { case jpg: header(Content-Type: image/jpeg); break; }
case 'png':
header('Content-Type: image/png');
break;
if ($_POST[action] == prompt) { header(Content-Disposition: attachment; filename=.$_POST[fileName]); }
echo base64_decode($_POST[image]); ?>
and I want the function if ($_POST[action] == prompt) to upload the image to an ftp and a database?
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
The above is reporting error:Type was not found or was not a compile-time constant: JPGEncoder. Call to a possibly undefined method JPGEncoder.
Im using the as3CoreLib JPGEncoder class to save a jpg of my swf from flash.Right now I have the quality of the jpg set to 60 like this:ActionScript Code:var jpgEncoder:JPGEncoder = new JPGEncoder(60);I'm trying to set the quality number to a variable to be defined a function that will calculate the compression value needed to get the jpg to 20k.
View 2 RepliesI'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]
In AIR/AS3 Flex Mobile for Android project.How can I capture an "image" of whats visible on the view then just save that image as anything like jpg/pdf to the SD card?Basically a screenshot on Android using AS3.
View 1 RepliesIs it a way to use jpgencoder/pngencoder classes from adobe in AS2 projects?
View 2 RepliesI'm using the jpgencoder to save a few thumbnails out from flash. The first time I save an image it works just fine, but the second time I try, the image saves but I get absolutely no events fired off from the URLLoader that I'm using with it. If I refresh and try it again, then again it will work once, but not twice. Here is some sample code of what I'm doing:
Code:
var jpgURLRequest:URLRequest = new URLRequest("JPEGEncoder.php?path="+path);
var loader: URLLoader = new URLLoader();
jpgURLRequest.contentType = 'application/octet-stream';[code]....
FileReference is great, but what about downloading an image rather than uploading? Is there a way to do this in Flash 8? Say, being able to save a certain movieclip as a JPG? Or rather BMdata of that movieclip as a JPG?
View 6 RepliesI have been developing a dress up game and would like to add a feature where the player can save hi/her creation as a image from the swf file.
View 1 RepliesI want to save an image using PHP. Everything seems to work fine, but when I try to open the picture, I get an error message: "it is not possible to open the file, the jpg file may be corrupted".
ActionScript Code:
var myBitmapData = new BitmapData(myLogo.width, myLogo.height,true,0x00FFFFFF)
myBitmapData.draw(myLogo)
// initialize the quality of jpeg and encode "bitmapdata"
[code].....
how can i save a png image with actionscript? i usualy generate jpgs, but this time it has to be transparent, how can i do this?
View 1 RepliesI wanted to create a flash application like this [url]...but the only difference is I want to save my image into the default folder with different names. I don't need for prompting to save the image but instead it will automatically saved in the default folder when you click the save icon
View 1 Repliesas3corelib functionality is awesome and I have used the great tutorial at Henry Jones.com to create an example with a quick interface...
[URL]
Now this is a bit wierd here because it works on 70% of location tests but seems to be dependant on the internet provider allowing uploads. It doesn't work at my mates house but works at work and my house etc...
The second thing is that I need to know what the as is to save the mask to the server instead of downloading it to your machine.
I need to know if is posible to capture an image or a screen region and save it using action scrip.
View 2 RepliesThrough FMS streaming I am receiving a stream from other user attached camera which I am playing in my file through video component in flash.
When the other user stops the streaming by closing his attached camera then last captured video image picture is saved in video component.
I want that to remove and place a graphic instead.
Have also tried seek(0),video.clear(),pause() etc.
In my Flex application I load an image into the Image control. After loading the image I can apply filters like color transform or grayscale etc and then I want to save the image with the filter applied. I am having trouble saving the image with the filters applied. With the following code the Image gets saved without the filters.However, if I use [code]...
View 1 RepliesHow to save flash images that we can view as a slideshow in jpg format?
View 1 RepliesNow Im saving to text format, and I got a error: TypeError: Error #1009: Cannot access a property or method of a null object reference.[code]
View 1 RepliesI have a Flash Application that sends an image (using as3corelib) to a PHP script that previews it in the browser, which works! But, I would actually like it to permanently save it the a server folder (uploads, etc.) instead of temporarily saving it. I can't find the right variable in the PHP that actually sends the image to a server so it could save it.
<?php
switch ($_POST["format"]) {
case 'jpg':
[code].....
I'm trying to make a character creator application using flash actionscript 2. I'm quite done with the character's moveable parts, however my main concern is on how to save the image as jpeg/png. Is there any way that I can save an image without the use of php? I would like to save my characters image using a button, and save it directly to my pc.
View 1 RepliesI have a flash where users drag and drop icons around a matrix to indicate their opinions. I would like to have an option for them to save the positions of the movie clips that they have dragged and dropped so the next time they open it, they are where they left them.
View 5 RepliesIm using the load movie method to load in an image to another movie clip. This image is stored in the same directory as my flaash file. Would it be possible to save this image after certain 'modifications' have been done to it?? Im not familiar if there is any way to save out this image that has been loaded in using loadMovie?
View 4 RepliesHow to save the image in server?
how to save the image in server?Do we required PHP to save or can we save directly?
I have an application I'm building. It a sort of diagram builder. Now how can I get it to save a bitmap of it locally (not sharedobject). Or even a xml file for saving or something?Program is preferably run on local client's computer.
View 2 RepliesI want to save an image using PHP. Everything seems to work fine, but when I try to open the picture, I get an error message: "it is not possible to open the file, the jpg file may be corrupted".
[Code]...
You can see here a simple palette i made for a kids' site where they will be able to color some "ready to paint" templates.Is there any suggestions on how to save the image after coloring it?The lines are made in flash and the coloring is done by setting the rgb on movieClips which have the shape of the gaps.One suggestion, from me, is to "save" the rgb values each time someone clicks on the image and then by knowing the shapes, "background" colorizing them and saving them.But how am i going to do that saving thing?P.S. The page will be on a ColdFusion Server.
View 4 RepliesI'm creating a flash fun thing where you dress up a character by just dragging and dropping little images, everything is working fine.
I want to add an option to save the image you have created, I can do this but the problem is you have to set a movie clip to capture, the thing i want to capture is a few movie clips layered on top of each other(the finished character).[code]...