ActionScript 3.0 :: Advanced Pre-loading Techniques - Reduce The Loading Time To The Minimum Possible?
Sep 21, 2010
I have a game built and I would like to reduce the loading time to the minimum possible.One of my ideas is to load the essential assets and some lower quality images the first time, leaving the higher quality images and some of the functionality out at first (for instance things like buttons that change the background color), and once the player enters the game, the rest of the functionality and its assets (images and sounds) will be loading in the background using the Loader class.So once the non-essential assets and the high quality images have loaded they will fade in and substitue the lower quality assets in the most subtle way possible.
Also... Would it be better to have various instances of a "Loader" class and try to load everything at once, or load stuff in order with a single instance of the "loader" class listening to the Event.COMPLETE event ?
View 1 Replies
Similar Posts:
Feb 25, 2007
i have a fairly large flash file and i'm wondering what i can do to reduce/compress this anymore to make it load a little quicker??
View 2 Replies
Jan 18, 2011
I have created a spark ButtonBar which is dynamically populated with XML and skinned to look like a standard TabBar. When I used the TabBar in Flex 3, the width of each Tab would shrink or grow to the size of the Label, plus a little padding either side. When using the spark ButtonBar in Flex 4, I find that no matter how short the label (even an empty string), the Buttons will be at least 70 pixels wide, and will expand for longer labels. I have tried setting the minWidth to 20 in various places, including on my ButtonBarButton skin, but this has no effect.
View 1 Replies
Mar 2, 2005
I tried searching for an answer to this on the forums and it seems you can't duplicate a movieclip that has a dynamically loaded jpg in it, I mean you just get a duplicate empty movieclip?What I want to do is have 3 copies of a pic, each tinted a little differently, and have them converge and reveal the "composite" of this pic. Do I then have to use loadMovie 3 times?Does loading the same 50kb image at the same time mean you're actually loading 150kb?
View 5 Replies
May 21, 2008
i was creating my portfolio using xml gallery script from this site. the thing is that it loads one picture at a the with a preloader between each load. is there a way to load the first image and keep loading the rest so there will be only one loading time? here is my action script:
[Code]....
View 3 Replies
Mar 30, 2010
I downloaded and am using kirupa's flash gallery with xml. It works/looks great. but i'd like to have it behave a little differently. i've seen sites where the thumbnails continue to change their alpha indicating they are loaded and loading while i'm viewing an image. are there any tutorials/samples out there for that? i simply want to see how it would all work together. maybe having 10 thumbnails and an image using xml.
View 1 Replies
Jun 7, 2011
I've made a *.swf file of the sprite sequences of 1000 images with (780 x 480) size. After that I embed this with another one class to show but every time it crushes during run time because of insufficient memory (assume that I have 2GB memory space). Which is the best way to implement such big sprite sequences in AS3 by avoiding the memory problem?
View 3 Replies
May 10, 2010
I am new to Flash CS5 and I have created a slide show. I am trying to reduce the .swf file size for faster loading. I have been trying to adjust the size using the jpeg quality slider, but it doesn't seem to function whether I set it to 0 or 100 or anywhere in between. Publishing always generates the same size swf file.
View 3 Replies
Apr 26, 2011
I have a Flash 8 a/s2 site but I feel the load time when a visitor visits the site is too long. The site does have music, pictures and videos but they are all loading externally.
Is there a way I can reduce the load time of the SWF?
View 4 Replies
Apr 23, 2011
#Hi, does anybody know if there is a way to export faster other than changing pu/overclock/memory? Maybe a especial video card or GPU?I notice that when I export Flash just use 25% of processor, any way to improve this?I have a fast processor (phenom 3.4) and enough memory (4GB), but still need more speed.
View 1 Replies
Jul 18, 2010
I'm programming an xml image gallery for a photographer in As3.All thumbs load in from XML-driven external source and then if you click a thumb it loads (the same way) an image.Being that she is a photographer I'm assuming she will want large good quality images in the gallery. If there are large image files say 2mb or so, apart from changeing the image res/size is there a way to reduce the load time when those image are called or should I add a warning that the files are large and people will have to wait?
View 2 Replies
Aug 4, 2010
My UILoader component seems to only want to load one swf at a time. ie if it loads "gallery-sketches.swf" first then it wont load "gallery-graphics.swf".If it loads "gallery-graphics.swf" first than it wont load "gallery-sketches.swf". They work just fine individually but one cancels the other out when you put them together.Here are my errors (the "2","9" and "5" are tracing a random number generator and I'm 99.99% sure they have nothing to do with the error):
2
galleryClick
9
graphicsClick
[code]...
View 1 Replies
Apr 2, 2012
My fla-file (27mB) is graphic resources to a project, split into pieces is very problematic.Publication time on my computer is 4 minutes. I tried setting "preferance / publish cache" - not result.
View 16 Replies
Jul 12, 2006
I have some XML AS that creates buttons and loads data into some text fields. Also loads an image when you click a link...It works great most of the time! But I have noticed sometimes it just doesnt load the text and I need to click onto another frame and click back to make it work... I am guessing there is some small thing missing from my code?
[code]...
View 3 Replies
Feb 12, 2010
I am loading an external swf animation and playing an audio which should be synchronized with the loaded swf i have used the loader class for loading swf and sound channel to load sound, when the audio gets fully loaded only we are calling function to load swf, at that time audio remains stopped when the swf too gets fully loaded, we are adding swf int stage and playing the audio. In local system it works fine but when we upload it its not synchronizingly properly for the first time The issue what i see is that swf (only one is there) gets loaded frome inbetween ie the first ceration animations are missing. and audio is playing from the begining why is it so....
View 1 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick.
The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.
Question: Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in??
what happens: you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies?
to see how the movie runs at the moment this is the link: [URL]
you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.
I can't seem to get the mouse scroll to work the same function as the click at the moment also.....thats for another day
View 11 Replies
Oct 18, 2010
I'm trying to learn something new: "contentLoaderInfo" and need some advice. I'm loading a bunch of thumbs so far, and will be loading the large version of those images later (after I get this part working) for a gallery.
I declared all the loaders and the URLRequests. And listeners like this: loader1.addEventListener.COMPLETE, processLoaderOne; loader2.addEventListener.COMPLETE, processLoaderTwo;etc.
If I try to load them all in successive statements,
loader1.load(URLRequest1);loader2.load(URLRequest2);loader3.load(URLRequest3);loader4.load(URLRequest4); and in the functions (processLoaderOne, processLoaderTwo, etc.) if I try to place the content on the stage by saying: loader2.x=loader1.x+loader1.contentLoaderInfo.width, it doesn't work.
I get this message: "Error #1009: Cannot access a property or method of a null object reference."
But if I "daisy-chain" them together by loading one loader (and use contentLoaderInfo.addEventListener(Event.COMPLETE, processLoaderOne) ) and put a load statement to load the next subsequent loader as the last line in that function, it works OK.
Is there any way to use the first method, loading all the loaders at the same time? And using Event.COMPLETE in their addEventListener declarations?
View 8 Replies
Nov 13, 2009
I have a flash file that loads 3 straight XML files, one after other.And in every single code I have the sucess condition, like this:
ActionScript Code:
if (success){
doRightStuff();[code].........
Later, I added a function and an Interval to do the verifying:
ActionScript Code:
goBack = function () {
gotoAndPlay("untilItWork1");[code]..............
Didn't work also. Las try was a completely stupid addition: a variable counter that increased it's value 100 times (doing the XML calling and loading everytime), to check if the problem was some delay issue. 5 minutes later, it didn't work also.The second time I load the f**king page, it works like a charm.
View 1 Replies
Nov 22, 2009
I have a main movie in which I load two types of external movies, pages and themes. My main swf slows down which each click of one of the menu items. I've tried doing and unloadAndStop for the external swf's but that does even put a dent in the flash player memory usage as shown by System.totalMemory trace.
A theme will load in an empty movie clip(acting as a container) on the stage, then a page will load in another empty movie clip on the stage. For example, pageContiainer movie clip will receive page1.swf. themeContainer will receive themeNeutral.swf.
I'm thinking this should not be an issue, as each movie clip simply receives an external swf, which is then replaced by another external swf upon a given load command. But I can't seem to get the looaded SWF(s) out of memory and the System.totalMemory just keeps going up and up.
[Code]...
View 0 Replies
Jan 31, 2010
i'm making a website and it has some parts with flash such as the background. You can see the site here: [URL] You will see that the preloading of the background is too long beacuse i have 4 images as background in the library. the images are 950 x 650 pixel jpegs that in the library use the Photo(compression). So when the swf is on loading it take a lot of time.
View 0 Replies
Feb 26, 2009
I am building a flash site and currently I'm not using an timeline or any images in the library. I'm using the image loader class to load in all images for each page. The trouble is that images load one by one. I want them to wait until they are all loaded before appearing together on the stage.First: Is this best practice? What do professionals do when it comes to loading images / pages.Second: Even if I add a preloader they still load individually. Here's some example code which loads the contents to my map.swf
public function Map()
{
img = "PageBack.png";
[code]....
View 7 Replies
May 15, 2004
I have two swf file and I load the them at the same time in main.swf. but both the movie get load at different time because of the dissimilar size and the movie which loaded 1st play 1st and the movie which gets loaded 2nd play 2nd. I want the both the movie to complete its loading and play at once. is there is any way?
View 1 Replies
Oct 21, 2010
I am primarily a programmer, a games programmer by trade who happened to pick up Flash on the side and later through a series of coincidences became a full time flash developer. Most of my work thus far has been code heavy, and has focussed on such things as interacting with web services, localization with xml files, flash video, streaming video, networking etc.
My employer recently lost one of its contractors who built a lot of animation heavy flash apps for them, and as I know my way around the Flash IDE quite well, and have created fairly complex animations in the past, they have asked me to assume a more animation orientated role. To this end, they have offered to send me on courses to get up to speed with Flash animation.
As I know probably 90-95% of Flash's capabilities, and am comfortable with animating / easing / masking / filters / tweening and how to produce these effects programmatically, my interest would lie in a course that teaches fairly advanced uses / best practices of flash. For instance, I find that there are many ways to do things in Flash, but only a few approaches that will get you there without the entire IDE coming to a grinding halt (shape hints is a good one, or perhaps an approach has forced you into a corner with many tweened animations which now need a small alteration made to all of them).
View 5 Replies
Oct 15, 2010
I am loading a photo gallery with an external swf. The swf loads and then there is a delay before the 1st image starts to load. There is a preloader for the swf - that finishes loading - then there is a delay and after a few seconds, the preloader for the gallery starts to load.
Why is there a delay before the image gallery preloader begins?
View 9 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick.The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in? what happens:you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies?? URL...you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.I can't seem to get the mouse scroll to work the same function as the click at the moment also..
View 32 Replies
Sep 14, 2009
I am Developing a flash website.It has lots of images in various pages.Is this possible to load all the images at the preloading time itself as it wont take much time while showing those images. Can I have a empty movieclip on stage with visible false. and using a for loop can I load all the images into that?
View 1 Replies
May 15, 2010
We uploaded a simple flash site in URL... and when it starts downloading for few seconds it shows white space rather showing the perloader. and the background of the website is blue but it show white during this transtional time.
View 1 Replies
Apr 13, 2011
I have a video that plays for 1.30 secs. After it has finished playing I would like to automatically load a MovieClip onto the stage, how do I create a timer element to this?
View 5 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick.
The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.
Question: Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in??
what happens: you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies???
to see how the movie runs at the moment this is the link: [URL]
you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.
I can't seem to get the mouse scroll to work the same function as the click at the moment also.....thats for another day
View 9 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick.
The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.
Question: Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in??
what happens: you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies?
to see how the movie runs at the moment this is the link: [URL]
you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.
I can't seem to get the mouse scroll to work the same function as the click at the moment also.....thats for another day
View 2 Replies