ActionScript 3.0 :: Saving Panel Area As Image Question?
Apr 2, 2011
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.
View 7 Replies
Similar Posts:
Apr 2, 2011
I've been using the code below to save the image in my panel.
ActionScript Code:
var bd:BitmapData = new BitmapData(vgrpBottleArea.width, vgrpBottleArea.height);
bd.draw(previewPan);
[code]......
View 0 Replies
Apr 16, 2009
I am trying to save information that I have displaying in my output panel to a .txt fille. I have tried this tutorial here: [URL] but it is not working for me.
I have the output panel displaying information such as:
PHP Code:
[URL]
I need to somehow save this information to a text file so I can forward it onto my email. Or if anyone knows a way to forward information from the output panel to your email
View 9 Replies
Mar 12, 2012
I am trying to generate image of flash charts generated by Open Flash chart library using PHP Mysql database.
I have generated image but it's in some coding format in a div on my webpage. Something like below:
<div id="img_chart_1">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk4AAAEsCAYAAAA1jTw5AAAli0lEQVR42u3dDdAkdX0n8Keu6s67..../ >
</div>
How can I save this image in any image extension like .png ?
I have to give a button on my page. So when user click on button I have to export this image in PGF file.
So I am trying to save this image with image extension and will give link of saved image in PDF file to show.
View 1 Replies
Jan 31, 2009
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);
[code].......
View 3 Replies
Apr 11, 2009
Is there a way to make the transparent area from an png image not to register when I add with a mouse event to that image? What is happening is the rectangle around the symbol is effected by the mouse event.
View 2 Replies
Jan 13, 2004
What would you use to create buttons which when pressed load an image in an image area within the same flash document?
View 1 Replies
Aug 2, 2010
I would like to add an title Icon image to a Panel, but cant find the click event on that icon,
View 1 Replies
May 23, 2011
i have created one dashboard for android in adobe flash4.5 now i want to putBackground_image on one of the panel
View 1 Replies
Jan 26, 2005
how this is done? Go to [URL] and you will see a right hand panel on the main image...now drag and pull it accross to see another image.
View 10 Replies
Jul 19, 2009
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)
View 6 Replies
Oct 14, 2010
I'm trying to create a MXML component based on the spark Panel and I would like to add an image on the right end of the title bar, so that the panel will have a text on the title bar and a small image at the right end. I'm using a skin to define the colors, background fill etc. But how do I add this image at the right end of the title bar?I would like to make that image cutomizable so that when the component is inserted, either the default image is used or a new image can be provided.
View 2 Replies
Jun 13, 2010
I've been working on a Flash site on and off for some years now and despite the fact it's been near the finishing stage for some time, the biggest problem I've had has been my custom photo gallery. The concept is simple, a panel has a group of images loaded into it, and each one is resized to thumbnail size. On clicking one of the thumbnails, it enlarges or zooms itself to fill the panel. I've only recently managed to get one image to zoom in from the centre, stopping when it reaches a specific size, and therefore have left it working this way. What I want however, is for the images to be loaded in row formation, and on clicking each one, it "zooms in" from its position to fill the whole panel. Currently I have the thumbnail movieclip duplicated, with a different image loaded into each copy, on clicking one of the images, it zooms from the centre, although obviously, this is not what I want. I've attached my source and images in a file called GalleryProblem.zip.
View 3 Replies
Oct 7, 2009
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?
View 3 Replies
Feb 26, 2010
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);
View 1 Replies
Jul 17, 2010
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.
My "save code" goes as follows:
Code:
import JPGEncoder;
Security.loadPolicyFile("195.62.199.219/pctsla/gis/supporttool/crossdomain.xml"); //see note below
[Code].....
Note: PHP cannot be installed on the server I am working with for various reasons so I need to pursue other routes.
View 0 Replies
Nov 3, 2009
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.
View 1 Replies
Apr 6, 2009
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.
[Code]......
View 9 Replies
Nov 12, 2010
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.
View 6 Replies
Jan 12, 2010
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?
View 1 Replies
Feb 27, 2012
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?
View 4 Replies
Jun 28, 2010
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.
View 1 Replies
Jan 19, 2011
How can i save a webcam screenshot to a website?
I know you can save it to your hard drive using:
var browseFileReference = new FileReference();
browseFileReference.save(video);
But how would i go about it to save this image to a website, lets say flickr or facebook or something.
View 3 Replies
Mar 25, 2011
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 ?
View 1 Replies
Jun 6, 2011
When I try to save a cropped image that I have scaled, my save function ceases to work, but works perfectly fine when the image is not scaled.
Here's my code:
var loada = new Loader();
loada.load(new URLRequest("img_one.jpg"));
loada.x = 205;
loada.y = 110;
loada.cacheAsBitmap = true;
[Code] .....
View 1 Replies
Jun 10, 2011
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.
[Code].....
View 1 Replies
Dec 21, 2010
in AS3 we use somthing like this to save image from SWF:
<AS>
import com.adobe.images.JPGEncoder;
var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);[code]....
Is it possible to save this sketch_mc in a larger size? Suppose its dimensions are 200x200 can we save it to 1000x1000 or something like that?
View 6 Replies
Dec 23, 2010
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] .....
View 2 Replies
Mar 2, 2011
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.
View 4 Replies
Nov 25, 2003
way to have a specific portion of the stage save as a .jpg to the server.
So, if a user were to draw something, and click a "save" button, they would be able to save their drawing to the server as a jpg.
View 2 Replies