Flash :: Saving Large Images Created In Flex?

Nov 25, 2009

I am attempting to capture a very large image that was made dynamically within the Flash Player (the size of the image is 2400px by 12,000px) and am running into some very serious issues... Let me run down how the image get's to that size in the first place:

User adds elements to a canvas and then when the user is finished the canvas scales up to 2400px wide and ~12,000px tall. The problem arises when I attempt to save the image to the hard drive. Now, I dont know if this will affect the recommended fix, but the rendered image wont be saved on the hard drive, it will be sent to a server. I know about the ~4050px limit in Flash Player and was thinking I could get around that by clipping the images with the ImageSnapshot.captureBitmapData() method and keeping the required Rectangle variable below 4000px then repeat that down the large image until it reaches the end where the final images will be pieced together at a later time. However... As i mentioned the error comes when it reaches the 'fileReference.save(pngImage);' method..

View 1 Replies


Similar Posts:


Flex - Saving Images From Flash To Server Using PHP

Sep 29, 2010

I am trying to save some images from Flash to Php by sending a jpgstream, capturing it in php and pushing it to a file. Not sure what I am doing wrong here.

I am putting all the images I need into an array like so: (history is just where I am keeping all the image data)

[Code]...

But this doesn't seem to do the trick. I have been going through a bunch of different tutes and code snippets, so maybe I just ogt something confused along the way. I have done this before though and don't remember it being this difficult.

View 2 Replies

Flex :: Loading A Large Number Of Images?

Aug 31, 2010

I have this code which works fine when selecting a small number of images.

public var fileReferenceList:FileReferenceList;
public function browseFiles(event:Event = null):void
{

[Code]....

However, when selecting a large number of images (1000+), the fileList isn't initialized yet when the SELECT event is dispatched. Is there a way to wait for the fileList to be initialized?

View 1 Replies

Css :: Setting Up Flex / AIR Project Structure For A Large Number Of Images?

Sep 29, 2011

We build prototypes and demo applications in Flex 4.5.1 and AIR 2.7 for mobile and desktop use. These tend to involve a large number of full-screen .PNG files. Lately we have been looking at ways to segment our code for flexibility and multi-screen re-use. What suggestions do people have for segmenting the project and libraries such that compile times are minimal and images are easy to replace?

View 1 Replies

ActionScript 3.0 :: Saving Large Size Image?

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

Flash :: Loader Won't Load Large Images?

Jun 9, 2011

I have some pretty large PNG images stored in a database (example 1000x15000 px, 4.5MB). I am trying to load this using the Loader class...the problem I am having is when I call load(), nothing happens. No events, no errors.I can take the same image and embed it. As long as as I set the height to less than 8000px it works fine. If I convert the embedded image to a ByteArray and try to load it, nothing happens.

View 3 Replies

Actionscript :: Download Multiple Large Files And Saving Locally - URLStream Or URLLoader?

Feb 17, 2011

This is absolutely driving me crazy. While I'm a fan of the availability of asynchronous calls in AIR, I'm finding that being forced to use them for something that should be SUPER simple is a severe limitation. So severe that I may end up abandoning AIR and writing native Android and iOS apps instead of using the shared AIR platform.

OK, now that I have that off my chest, here's what I'm trying to accomplish. I have an app that, when deployed, is relatively small. But once deployed to a user's device that user will log in using a login name/password. Once they log in, content specific to that user needs to be downloaded and saved to the local device. Since the content varies by user I can't include it in the package for deployment.

But I cannot figure out how to accomplish this: say I want to download 10 files and each file is 2-3mb and I want to show a "Downloading, please wait..." view during the download. The application cannot proceed until all 10 files are downloaded. But since from what I've seen URLStream and URLLoader are both async I cannot figure out how to block the app from opening the "View available content" and say on the "Downloading, please wait..." view.

View 1 Replies

ActionScript 1/2 :: Saving Images From A Flash Website?

Aug 20, 2010

I need the user to be able to SAVE images which is in the image gallery of my flash website?
 
Is it possible to make the SaveAs box pop when clicked on each image?

View 3 Replies

Actionscript 3.0 :: Flash - Load Multiple Large Images And Video?

Nov 22, 2009

I am creating a Flash site for a client who wants to display many (about 15) fairly hi-res photos as well as a video. I am using the Video class to display and control the video, and the Loader class to load the photos. I preload them from an XML file up front, while "loading..." is displayed.

The video plays immediately after the loader finishes, and the user can also choose to view the slideshow, which has left/right arrows which show each photo with a simple fade tween between each one.

The problem I am having seems to be that when all these assets are loaded, the video and the "fade" effects are very choppy. If I cut down on the number of photos, everything works fine; but I have to include all of them, plus the video.

I am storing all the Loader instances in an array, and when they are requested, I add them to the stage and fade them in. When it finishes fading in I remove the previous one from the stage. So they are all stored in Flash's "memory", but there is only one Loader or Video instance on the stage at any given time. Is there a better way to handle this? Perhaps some way to cache the images but not bog down Flash's memory? I would prefer to have everything loaded up front in order to avoid needing a "loading..." for every slide.

View 1 Replies

Flash :: Dynamically Loads Large Hi-res Images When The User Clicks On A Thumnail

Jun 23, 2010

I am building a portfolio site which dynamically loads large hi-res images when the user clicks on a thumnail. However I'm having problems maintaining the original image's quality when resizing it to fit the current browser. Currently I'm just adjusting the width & height properties of the image to width to the stage proportionally which is working fine getting it to fit, however I cannot figure out how to maintain image quality? Do I need to load it as a bitmap and redraw/smooth or something similar?[code]

View 1 Replies

ActionScript 3.0 :: Build A Xml Photo Gallery In Flash That Will Use Lightbox For Viewing Large Images?

Apr 2, 2009

I am trying to build an xml photo gallery in flash that will use lightbox for viewing large images. I have successfully built the thumbnail portion.My goal is to insert the swf into an HTML page and launch lightbox from the swf. Here is the code: First I use a Thumbnails class which imports the tweener class

Code:
package {
import flash.display.Sprite;
import fl.containers.UILoader;[code]....

how do I get lightbox to work when I click on the thumbnails? I found this thing called lightboxinjector that seems like it would work, but I am not advanced enough to understand the directions it gives for dynamic use. Or is there a lightbox clone that will work for this?

View 1 Replies

Flash :: Apache - Page Is Throwing A 406 Not Acceptable Status Code And Is Not Saving The Images?

Feb 18, 2010

I'm debugging a flash website that do a request to an php file named upload.php to upload some images to the server.The problem i'm having that debugging it with Firebug the request to that page is throwing a 406 Not Acceptable status code and is not saving the images.

Post Data: This website runs well on the staging server but in production server this process of the image upload fails. I only can assume that a change to apache configuration / php must be done.

View 4 Replies

Arrays :: Saving Text Content In An Created Csv File In Actionscript 3.0

Mar 25, 2012

how to save the content of an array in an csv file that already has a content. its like overwriting the content of the csv file. the array is like this (Array [1][1]). i've search and googled it but every answer i got is still wrong.

View 1 Replies

Importing Large Images Fails

Jul 25, 2009

I use Flash primarily for animation. The project I'm working on currently is a hefty 1920 X 1080 square pixel file and currently weighs in at 187mb because of all the sounds and jpg images.It's 2 minutes long.

The problem occuring is new to me as I've never worked with projects this long or in this resolution. Or with this much data (sound effects, jpgs, etc).

The problem is this: I'm trying to import a high resolution photograph (3500x2500) onto the stage or even just in the library. I'm using the photos to get an idea on where the final animation will be placed (photo backgrounds, flash animation, composited in After Effects, think Roger Rabbit).

View 1 Replies

Professional :: Bug When Exporting Large Images

Jan 22, 2012

I found this bug in Flash 8, so I just downloaded CS5.5 trial and I see the same problem. When I increase the image export resolution to get a larger image, at one point the lower section of the image became white (the image has the appropriate size but the content is not rendered in the lower section). As bigger is the image, larger is the white fraction. The amount of useful pixels always stay around 10 or 13 megapixels. Here some examples:Original image was 3375x6710 pixels in the left one and 2625x5219 en the right one.

View 3 Replies

Saving Images From Library (to PC)?

Jun 1, 2009

I have 60 images in a library within a .fla file that I want to save to my PC. (I lost the originals). Flash won't let me drag-and-drop them or anything remotely sensible like that.Suggestions posted around t'Internet talk about putting each one on the stage and going through "file-export". Besides from being very tedious, this might not be so great - the images constitute an animation and need to be precisely aligned.Incidentally, the library does have a movieclip of 60 frames - each containing a single image.If all else fails, is there some tool which will extract these images out of the compiled swf?

View 1 Replies

ActionScript 3.0 :: Saving Images From SWF?

Jul 24, 2011

Yo, just trying to figure out how to save an image from a SWF.(Yes, I've already used the search function here)I've made kinda like a slideshow thing and next to the images, there is a "Save" button. When you click the save button, it will get the image from the SWF and save it to the user's hard drive (or if easier, it will download it from an URL).

View 2 Replies

ActionScript 3.0 :: Can't Print Large Images With PrintJob()

Dec 20, 2008

I'm having an issue where when I try to print a larger image via printjob one of two things happens. One either the job fails or two the output of the image is literally diagonally cut off. I am simply passing the stage to the print job. I've tried both with and without using printAsBitmap.

View 1 Replies

ActionScript 3.0 :: How To Manage Large External Images

Dec 6, 2008

I'm creating a movie object using images. I'm using PNG file types with an alpha channel. Each frame is approx 640 x 480, each single pitch image is 36 frames creating an image 23040 x 480. If it's a multidimensional image it is 23040 x 11520. I load the image in using "img_name".loadMovie("imageFileName", 1);

The problem is it only seems to load around 2880 pix of the image.

How can I get it to load the whole image? How can I choose it to load the next section of the image?

View 3 Replies

Actionscript 3.0 :: Smooth Scrolling With Large Images?

Jul 25, 2009

[URL]

Here is an example online, I am trying something similar but am not happy with what I am seeing, perhaps it is just on my side. The scrolling seems choppy/jagged. I have this same issue doing a similar scroll with lots of big images. Is there any way to get a nice smooth scroll at a decent speed with flash?

Ive ported my as2 code into as3 but am seeing the same results. I have used tweener and tweenlite, nothing Ive tried is helping. how to achieve a smooth scroll?

View 1 Replies

ActionScript 2.0 :: Preloader - Large Images Not Loading

Oct 15, 2008

I'm building a flash based site for my photography in Flash CS3 with actionscript 2. The swf is almost 700kb so I guess I'll need a preloader right? I thought I could create a preloader scene before the main content scene and apply the following code to the single frame within the preloader:
Code:
ifFrameLoaded ("website", 3){
gotoAndPlay ("website", 1);
}
This doesn't seem to work as the large images in my gallery (contained within a movie clip) won't load unless you leave the gallery page then go back in?

View 3 Replies

ActionScript 3.0 :: Preloading Multiple Large Images Challenge?

Feb 16, 2010

[URL]This site loads in all of the large images behind the scenes, so once you click through a project, the images appear immediately.
Ben.

View 2 Replies

ActionScript 3.0 :: Loading Extra Large External Images?

Sep 28, 2011

loading large images(12000x6000). there are a number of interesting workarounds, but all a a bit clunky.
 
this is for a local application - not internet.

View 4 Replies

ActionScript 2.0 :: Add Stroke Around My Thumbs And Large Images On A Gallery?

Jul 14, 2009

I am creating an image gallery and it has a set of scrolling thumbs at the bottom and when clicked it opens an image that is the large version of it. What i would like to do is have the scrolling thumbs inside a black stroked box using the drawing API and when clicked it opens that image larger with another black box around that image. I know you have to use the drawing API but I have no idea on how to implement it at all. Also is there any chance each image could have a preloader on it.[code]...

View 3 Replies

ActionScript 3.0 :: Scrollbar For Very Large Images (tile-based)?

Aug 23, 2010

I've recently picked up some flash work after a long respite into motion graphics via after effects, and I'm slowly mucking my way through things. I've currently got more than 250k pixels I need to seamlessly scroll through horizontally, via a scrollbar and buttons. I've bitten off more than I expected! I've been searching around, and it seems like tile based scrolling is what I'm going to need, due to max bitmap restrictions, is this correct?

If I'm on the right track here, I throw myself on the mercy of the community for any tile-based scrolling resources out there that you know of, something that explains the idea and setup from a non-game point of view maybe? Sorry if I seem like another noob looking for a quick fix, I've honestly been trying to find info on this all morning. Also, feel free to smack me into shape if I'm making this harder on myself than necessary.

View 12 Replies

ActionScript 1/2 :: Saving Images To Local Machine?

Jul 2, 2009

Is it possible to save  images in to local machine while loading images in a flash component from a server. I think it's possible to save images in to local machine using actionscript3. I want to know whether its possible by actionscript2. While searching i got some tutorials regarding this but its using actionscript3.

View 2 Replies

Flex :: Workarounds For Flash Bug When Drawing Large Shapes?

Dec 12, 2009

When you use Graphics object to draw very large shape(that does not fit in 10000x10000 pixels) stroke width may become much wider than value specified in lineStyle function.For now I have only two options:

1. When drawing line you can split it into several lines. However this trick does work only for drawing lines, polylines and polygons. There is no way to apply this to drawing circles and ellipses. Well, we can approximate circles via bezier curves, but this approach seems to be very inefficient.

2. Perform manual cliping. But this require manual implementation of different cliping techiniques, and I think ActionScript does not suit well for this sort of task. And again there is need to approximate visible parts of large circles.

View 1 Replies

Flex :: Flash Builder 4 Output Window Too Large?

Jul 12, 2011

So the issue is that whenever I run the flash movie, the display in the browser (Chrome) ends up being like 30% larger than the browser is when fully maximized. In reality, it should be running in a 800x800px environment. I've tried messing with the stage size and doing things like setting it to FULL_SCREEN and NORMAL and that had no effect. However, attempting to compile the project through the command line with the mxmcl (although it gives different errors atm) show me that the window is properly sized at 800x800px, so it is obvious that the flash builder is the one that resizes it.

View 2 Replies

ActionScript 3.0 :: Optimization On Load Time (Large Images And Sounds)

Jan 27, 2011

I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.Load times on everything but one part of my site are ok.The dimensions of the part inside the frame are 968x674.I know that's relatively large for a flash file, but that can't be changed at this point.Within the page there are objects that come up when you find an item on the screen.Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.After you're done looking at it, there is an x-button to dismiss the window.There are 15 of these and they are exported to the actionscript.I add them in the actionscript via addChild.
 
The other huge thing is there is a ton on the screen.It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.There is also a man that talks and animates in the beginning and at the end.We are planning on taking out the end part and putting a text box up. URL...The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.(Just click on the cloud on the front page.

View 2 Replies

ActionScript 3.0 :: Gallery Hang Up When Loading Large Images In Firefox

Feb 6, 2009

I have a photo gallery that is XML based. In IE everything works fine. In Firefox, the gallery will load all the thumbnails and then hang up when loading the large image. The trouble is this only happens on the galleries that have a lot of images in them. It works fine with smaller galleries. Since it's xml driven, the images are not loaded until called for and all the thumbnails get loaded. I did see a post about a var being collected for garbage if it's defined inside a function, but I've tried to limit that to just declaring a new image to be displayed. My site is: [URL]. If for some reason you get a page saying that this site is under construction, click the link to the gallery again. I don't know why that keeps bringing up an old page.

View 2 Replies







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