ActionScript 3.0 :: Optimize An Swf Loading Time?

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


Similar Posts:


Actionscript 3 :: Optimize Modular Flash Apps (load Time & Flexibility)?

Jan 26, 2010

I'm working on a large application that is broken up into many independent swfs. There is a master swf that loads a navigation shell and the foundational logic, and a module loading system that loads child swfs into the main display area. This is all working smoothly, and now I'm onto building the modules, and I'm starting to feel like my methods aren't as efficient as they should be.The module swfs (and corresponding flas) are located in a "modules" subdirectory of the main project's src folder. These modules share a large number of classes. In fact, most them define no new classes that are specific to just that module.The shared classes have a complicated structure of inheritance and interface usage, and are located in a view/structure subdirectory of the main src folder.

Currently, in order to use the shared classes from view/structure in my module swfs, I add the main project's src folder to the source path in each of the module flas. Besides being a bit tedious to do every time, it 1.) Redundantly compiles the shared classes into each module increasing file sizes across the board, 2.) Requires addition of new source paths to the modules for every developer who wants to work on/test the application because they are absolute values and different on every os's file system, and 3.) Doesn't allow modules to be built independently without access to the main project src folder.

View 1 Replies

Flash :: Optimize Loading Of Hd .flv Video With Large Size

Apr 2, 2011

There is a simple html page with intro video (.mp4 file). Video frame size is 1280*1024 (I need video to be as large as page up to 1280 px).

With such quality settings video file size is:

.mp4 = 42 mb (HD 1690*1080)
.flv = 32 mb (1280*1024, 25 fps)

For video playing I used as3 sample script (because there must be only playpause, replay, mute buttons with custom styles), like that

var strSource:String = "video.flv";
// create a new net connection, add event listener and connect
// to null because we don't have a media server

[Code]....

The problem is that I can't find a way to play it smoothly. It's loading in very annoying way, video is interrupted after each few seconds of playing.

I understand that the main problem is large video file size and hd quality, but may be there is some way to largely decrease .flv size or handle playback in more friendly way?

View 2 Replies

ActionScript 3.0 :: Optimize Flash For Loading External Assets (videos/pictures)?

May 17, 2010

I'm loading a lot of external videos and pictures and I'm wondering what is the best way for handling the loaded videos and images. Should I unload them after they have finished playing and reload them whenever they are needed, or it's not required since they just use the clients memory and not the cpu cycles when inactive?

View 2 Replies

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

ActionScript 2.0 :: Does Loading Same 50kb Image At Same Time Mean Actually Loading 150kb

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

ActionScript 2.0 :: Xml - Load The First Image And Keep Loading The Rest With One Loading Time

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

ActionScript 2.0 :: How To Optimize .fla

Jan 3, 2008

im working with games ryt now, im animator, my knowlegde in scripting is basic, im just curious with my project right now, i need to provide the .fla the problem with my .fla is to big, 200mb, is there any way to reduce the .fla without editing the inside of .fla,

View 4 Replies

IDE :: How To Optimize Images

Jun 18, 2009

I do many photography flash sites. I usually bring in all the images and then select each one, click their bitmap properties and adjust the quality individually.

View 2 Replies

Only Loading One Swf At A Time?

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

ActionScript 3.0 :: How To Optimize For Loop

Jul 8, 2009

Think of it as a calendar that picks up the item specified in the given date or something similar to that This sample code works, but does look like it's looping way too many times and potentially kill the system if you have many item in the k_arr...

[Code]...

View 8 Replies

ActionScript 3.0 :: How To Optimize Loaded XML

Feb 4, 2010

When using to load XML file, I have used Event.COMPLETE, Event.Progress, IOEventListener. Since listeners take up memory ressources.

I was wondering if it's a good way and habit to optimize after it has been completed locaded by removing them.

[Code]...

View 6 Replies

ActionScript 2.0 :: Optimize A += 1 So It Counts Over And Over Between 1 And 6?

Oct 4, 2002

All variables start offset by 1 (a=1, b+2, c+3, etc..)I want the values to all start over when they reach 7.You can see the lower half of code displays these images, basically rotating around a circle.What is most efficient way to script? I assume an array.

a += 1; if (a==7) {a=1};
b += 1; if (b==7) {b=1};
c += 1; if (c==7) {c=1};

[code]....

View 14 Replies

ActionScript 2.0 :: XML Only Loading 50% Of The Time?

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

IDE :: Unable To Use Swf While Loading For First Time?

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

ActionScript 2.0 :: Optimize Code For Several Buttons?

Sep 4, 2009

So I have 10 buttons, and I would like them to all do similar actions, but I was wondering if it's possible to optimize the code somehow.

When you rollover the button I would like it to alpha IN, and then when you rollout I'd like it to alpha OUT. Lastly, onPress I'd like to go to a different keyframe in the scene.[code]...

View 4 Replies

Optimize An Image Before Importing It Into Flash?

Oct 14, 2010

Is it better to optimize an image before importing it into Flash, or letting Flash optimize it during the export?

View 2 Replies

ActionScript 3.0 :: Optimize Code For 100 Swfs Or More?

Jan 13, 2011

How can I make this code smaller adding 100 swfs or more.

var seccion:String="home";
var loader:Loader = new Loader();
function loadSection():void {

[code]....

View 4 Replies

Optimize Flash For Search Engine?

Sep 15, 2010

Is there is a way to optimize flash for search engines??

View 4 Replies

How To Optimize Frame Rate In Flash

Jun 7, 2010

I'm building an application in Actionscript using Flash assets, and my frame rate becomes very low (~7 fps) when I attempt to render 20+ assets on the screen, even though most of those assets are stopped movie clips. I've tried setting .cacheAsBitmap to true, which helps a bit, but not enough. What else can I do to get the frame rate up? I've noticed that some movie clips seem to impact it more than others, but I'm not sure how to alter them to make them easier to render.

View 2 Replies

Optimize My Homebrew Flex Game?

Jan 5, 2011

I have a question about making flash games in Flex.Right now I am developing a 2D fighting game, here's the link[url]...

However, I am not sure how efficient I programmed the main loop.

Since I have never read a tutorial or seen any other Adobe Flex games out there, I didn't know how to implement them. I have a Timer instance that calls an update function every 24 frames, which updates all of the game objects and views. [code]...

View 1 Replies

ActionScript 2.0 :: Optimize The Tween Effect?

Sep 12, 2009

i want to know if there is any way i can optimize the tween effect i'm doing. below if the code:

ActionScript Code:
stop();
// import classes needed
import fl.transitions.Tween;

[Code].....

View 6 Replies

ActionScript 3.0 :: How To Optimize Graphics On Stage

Jan 3, 2010

I build games, which tend to run slowly when there are more than a dozen or so graphics being moved about the stage. I feel that my code is clean (I have researched code optimization) but not sure how I can make improvements with graphics. Currently, all graphics are created in Photoshop and imported to Flash as .png (I need semi-transparency, hence the .png format). I then set the image quality to low inside the library.

Every image usually resides within its' own sprite or movieClip. My games seem to slow down a fair deal when an image is introduced (such as a semi-transparent cloud drifting across the screen). Is there a special way to handle images when performance is an issue? I've only heard of stuff like cacheAsBitmap and other such fancy terms.

View 4 Replies

ActionScript 2.0 :: Optimize Last Section Of Code?

Sep 9, 2010

[code]...

This is all working fine. How can I further optimized the code (make it shorter) for last section?I created the loop for root.d and root.e of xml using for loop and while loop but then it does not add the xml values to the attachmovie text. I don�t know why?

View 5 Replies

ActionScript 3.0 :: Use Apparent To Optimize SWF Files?

Oct 16, 2011

I'm just installing Apparat, and I'm interested in using it to optimize my SWFs.

On its google code page some optimizations are listed out .. sliding window, flowgraph ... so is it possible to make use of these optimizations? how?

I have heard of the -reducer command, does it perform the optimizations? are there other commands you can use? or do you have to build apparat yourself and access it via scala?

View 0 Replies

ActionScript 3.0 :: Dynamic Variable - How To Optimize

Jan 27, 2012

I have this code:
ActionScript Code:
variables.ex1 = this["ex" + exerciseID].text;
variables.ex2 = this["ex" + exerciseID].text;
variables.ex3 = this["ex" + exerciseID].text;
variables.ex4 = this["ex" + exerciseID].text;
variables.ex5 = this["ex" + exerciseID].text;
variables.ex6 = this["ex" + exerciseID].text;
variables.ex7 = this["ex" + exerciseID].text;
But I want to optimize this. I want those variables "variables.ex1, variables.ex2, etc" are dynamic.

View 1 Replies

Actionscript 2.0 :: Optimize Last Section Of The Code?

Sep 9, 2010

XML.onLoad = function(loaded) {
if (loaded) {
buttonArray = [b,b1,b2];

[code].....

View 1 Replies

ActionScript 3.0 :: Optimize Class For Better Performance?

Aug 7, 2009

I've been working with AS3 now for a few months and am making good progress in it (I'm a AS2 transfer student). However, on a project I'm working on I'm having a little issue with performance within the browser. I was wondering if anyone had some tips on how to optimize the following code as I include this object about 600 times in my flash to make a waterfall (which causes resource drain in the browser)?[code]...

View 6 Replies

ActionScript 3.0 :: How To Optimize FLVPlayback Playback

Sep 22, 2009

got some FLVPlayback playback problems on IE7. Videos start after too much time. try and click on the right banners:

[URL]

Did you ever had some similar problem? Do you think that maybe there's some solution? Does FLVPlayback do a progressive download by default? Could raising the default bufferTime (0.1)

View 2 Replies

ActionScript 3.0 :: Use Apparat To Optimize SWF Files?

Oct 16, 2011

I'm just installing Apparat, and I'm interested in using it to optimize my SWFs.On its google code page some optimizations are listed out .. sliding window, flowgraph ... so is it possible to make use of these optimizations?I have heard of the -reducer command, does it perform the optimizations? are there other commands you can use? or do you have to build apparat yourself and access it via scala? I typed "reducer help" on the command line, and it seems that this program performs some of the listed optimizations:[code]

View 1 Replies







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