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


Similar Posts:


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 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 :: 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 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

Flex :: App With Large Number Of UI Objects Is Slow

Jun 10, 2009

I'm building my first Flex custom component, in Flex 3. It is a data table based on the 'Grid' container class, with a simple text Label in each cell. (DataGrid and AdvancedDataGrid were not appropriate starting points for my needs.) The component works quite well using smallish tables, but I tried stress-testing it using a larger table, and have been disappointed by the results.

The component creation process has some slow spots, but those are in my power to optimize and aren't my primary concern. What worry me more are what appear to be limitations in the Flex framework itself.

This 'large' sample table has a bit over 7000 cells in it. This is largish, but still 1-2 orders of magnitude less than the biggest I need to accommodate. In standard Grid structure, the main portion of the component consists of a Grid with 400 GridRows of 16 GridItems each, plus a few other smaller ancillary Grids.

Once the table renders, I find the following:

Mouse-related events are slow to fire. Specifically, I have rollOver/rollOut event handlers registered on each table cell, to let me highlight the cell under the pointer. On a small table, I could move the mouse over the table very quickly, and the highlighting would follow the pointer in real-time. With the larger table, the highlighting is very jerky, changing only about twice per second, skipping over many cells.If I place the mouse cursor over the component and leave it there, my CPU is pegged (one processor core, anyway), and stays that way until I move off of the component, when it drops to idle. My component isn't doing anything at all at this point.

It feels like Flex simply cannot scale to support component trees that are this large. I shudder to imagine how it would behave with 100,000 cells. Perhaps I'm pushing the Grid beyond its intended use, but having an object per table cell doesn't seem like an unreasonable model, and ~14,000 objects in the tree (a GridItem and a Label per cell) seems pretty modest.

View 5 Replies

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

Actionscript 3 :: Flex Dynamically Loading Images Does Not Allow Images' Id

Oct 20, 2009

I need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID.

<comps:ExercisesScroller id="scroller" x="300" y="100"
ex1="@Embed(source='assets/Exerc_1.png')"
ex2="@Embed(source='assets/Exerc_2.png')"/>

and so forth this works. But instantiated in CDATA it does not work:

import components.ExercisesSCroller;
private var custScroller:ExercisesScroller;
private function init():void {

[Code].....

View 1 Replies

ActionScript 3.0 :: Can't Round Or Subtract A Large Number

Nov 23, 2010

When getting the rotation of a movie clip I sometimes get a number like this: -1.4033418597069754e-14
 
And this number seems to break simple math.  see my code below:
 
var thisRot:Number = rotation;
trace("thisRot: " + thisRot);
//outputs - thisRot: -1.4033418597069754e-14

[Code].....
 
How can -1.4033418597069754e-14 round down to 0? And Math.round(thisRotAbs) also results in 0.  So how can this be? And how can 180 - -1.4033418597069754e-14 = 180?

View 3 Replies

Data Integration :: Manipulate A Large Number Of XML And GIF Files?

Aug 1, 2006

I had to manipulate a large number of XML and GIF files. In this case I will need to use a compressed file, like zip. if the flash can access this type of data like the Java do.

View 1 Replies

ActionScript 3.0 :: Lineheight In TLFTextField Is Getting Set To A Very Large Negative Number?

Aug 24, 2010

how or why it is happening??
 
example:
 
var myText:TLFTextField = new TLFTextField();
//lots of initialization to myText.
var myFormat:TextFormat = new TextFormat();

[Code]....
 
The last statement is the one with the trouble

View 1 Replies

ActionScript 3.0 :: Large Number Of Movieclip Slowdown The Application?

Jan 10, 2012

I have a scrollbar function.In the content area i attached movieclips.Those moviclips have dynamic textfield.The scroll bar working for small list of contents.up to 500 or 600 moviclipsWhen i attached 2000 or larger number of movieclip the Entire flash get slows. How to i fasten them with same number of movieclip. why flash player slow when attaching large number of movieclip? it takes near by 58% cpu usage at this time.What is the reason for

View 2 Replies

Actionscript 3 :: Why Is The Dynamic Type Of Large Int Values Number

Feb 25, 2012

I have noticed that if I create an int with a large value, the dynamic type of the object seems to be Number. Example:

[Code]...

View 1 Replies

ActionScript 3.0 :: Number Arrays - Cannot Do Calculations For Large Values

Jun 12, 2011

I've been making arrays from numbers produced by the Collatz conjecture. But when the number where we start calculating exceeds over 1x10^16 program can't do any more calculations. It loses it's capability to handle odd numbers. Heres a part of my code that makes calculations:

ActionScript Code:
var a:Number;
var result:Array = new Array();
var count:int = 0;
function calculate(e:TimerEvent):void{
[Code] .....

View 6 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

Java :: Break Up Square / Rectangle Into Large Number Of Randomly Sized Squares / Rectangles

Oct 13, 2011

I'm trying to break up a square or rectangle into a large number of randomly sized squares or rectangles so that none are overlapping.How to fill a square with smaller squares/rectangles?The solution seems to be either through bin packing or some sort of tree map.But what I'm looking for is the actual algorithm in Java, Javacript , actionscript or even C.

View 3 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

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 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 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 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 3.0 :: Load A Number Of Images Eg 4 Images Animate?

Oct 2, 2010

I am using actionscript 3. I can load an image in a class but how do Iload a number of images eg 4 images that animate.?These 4 images are a walking sequnce of a character. I am unclear after googling an loading multi images in as3( just love google).

Loading a single image I load this into a loader Once loaded I load the image into a bitmap and add to a sprite I then add the spite to the stage Q)Now for 4 related images I load 4 loader or 4 sprites or 4 bitmaps or do every thing 4 times?I want to do collisions eventually and I need bitmaps but bitmaps seem useless to use other than collisions.Googling for answers isnt helping me clarify this!

[Code]...

View 11 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 :: 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

Flex :: Custom Preloader Images Loading?

Jun 22, 2009

I am writing a custom flex preloader which extends the IPreloaderDisplay class. How can I load the images from web in my custom preloader?

View 2 Replies

Actionscript 3 :: Loading Images In Flex Cause Memory To Go Way Up?

Jun 29, 2009

Loading images into Flex (size < 100kb) causes IE7 memory increase by a megabyte per image. What's going on here? Here is the code I have -- this for each image:

[Code]...

View 3 Replies

Flex :: Monitoring Progress Of Loading Images?

Dec 23, 2009

I am attempting to monitor the progress of an image scroller I've built and all of the images (thumbs) load separately. What would be the best way of figuring out what the total progress of the images that are loading? I was thinking it would be cool to use a generic loader and apply it to a function such as
myScroller.loadImages();

View 3 Replies







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