Reduce Load Times / Design Architecture?

May 12, 2009

I'm designing a flash site with a Dynamic Gallery (loading images from a XML file). what can I do to reduce load time at the beginning, or limit loading times to individual images?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Event Handling & Architecture Design - Event Dispatched Automatically At The End Of An Animation?

Jan 3, 2010

The app I want to build is an interactive map for a site I'm designing. In a nut shell, students looking to enter an exchange program should be able to use the map-image (as in, an actual 'map of the world') to preview possible destinations (I've attached an image of the two basic states to clarify).

After an introductory animation, I want a mouse-over to trigger a function that populates the map-image with a series of buttons. I need the buttons to be distributed according to information in an XML file (ie. x/y coords, some information text, and an animation to load upon being clicked). I want each button to call a mouse-over function that loads info data from an XML field and place it in a dynamic text field at the top. Then, I want each button, when clicked, to call a function that animates replacing the map-image with an image of the corresponding travel destination. Finally, I want a button on each image that will clear that image from the stage and call the function that populates the map so the process can start again.

I'm working out of a couple of books on AS3, but I'm a little hazy on how I ought to be constructing this thing. So here's the first place I've run aground: After the intro animation, I want the user to mouse-over the stage and have a second animation play (clearing away the introductory text), and I want the conclusion of the clearing animation to immediately call the map-populate function; but I don't want a mouse-over to have any effect until the introductory animation is finished. Is there an event dispatched automatically at the end of an animation? What is the event listener class?

I'm not sure if I should be storing each of these animations in an independent .fla file or if I should create them on all one timeline and have the program redirect to specific frames.

View 1 Replies

Reduce Load Time Of SWF?

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

ActionScript 3.0 :: Reduce CPU Load In Game?

Mar 22, 2011

Having a problem with a game, The cpu load at the start when all the elements are on the stage is between 120 - 150%. Far too high. I reduced the frame rate from 30 to 24 and now the cpu load is around 100 - 125% which is still too high for my liking !! I'm wondering if this code can be optimized, I'm sure this is the cause, it's running within a movieclip class on 15 movies at the start.. 

[Code]......

View 3 Replies

Actionscript 3.0 :: Reduce Image XML Load Time?

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

ActionScript 2.0 :: Reduce Load And Loop 'AS' Based Streaming Video?

Aug 11, 2006

I'm in the process of including a 1 minute .flv into a flash doc. I don't want to stream the video since i want the video to load almost instantly and do not have any room for streaming progress bars also i can't use flash8 and to get video to stream in flash 6 is a pain.

What i have planned to do now was slice up the 1 minute video into 6/ 10sec clips. Put each clip in a seperate external movie which will range from 50-100kb each in kb's. I want to preload the first video and then play it, then in the background load external video2 while external 1 is playing. then play external 2 at the end of external video1 and do the same for the rest of the videos. Its a lot more work but i think this way i can reduce load time and have the video play almost straight away.

What do you guys think? is there a easy way to do it and achieve the same results or should i continue with my concept above, and if i do what i have planned is there any code that you can direct me too that will load a movie / hide it and play when called for?

View 10 Replies

ActionScript 2.0 :: XML Load - Layout Position Of Design

Dec 22, 2005

The flash e reading from a XML file and all the works (portfolio company) are divided in 4 parts (multimedia, design, 3d animation and pos-production). In the beginning of the site I have all that 4 options (4 buttons), but no matter is my choice this is always loading in first place de multimedia content. Why? E.g. If I click the button design, goes to the layout position of design but the content is the multimedia one. Each area as a different layout position. Here goes the ActionScript code that I'm using to populate the content:

[AS]
var boxes:Array = new Array();
//Defines space between movieClips thumbnails
var gridx:Number = 32;
var gridy:Number = 32;
var isto = this;
function resetBoxes():Void {
[Code] ......

View 3 Replies

Flash :: SWC File Fails To Load In Design Mode?

Feb 10, 2012

I am exporting an SWC via Flash Professional CS5 version 11.0.0.485 with the latest Flex Component Kit (2.0.0) installed in the Extension Manager. In Symbol properties, I'm Exporting for Actionscript in Frame 1 with the Class name equal to the Symbol name.

I've imported the SWC into Flash Builder 4.6 with all the different available SDKs.

With all of them I get an error in Design Mode

"SWC File Failed to load. Any component dependent on this SWC will not be displayed in the design mode."


If I instantiate the component via the Source it runs ok and in the browser I see the component.

I know I could just say "whatever, I don't need Design mode" but I'd like to know what is happening.

Any ideas?

View 2 Replies

CS3 Load Same MC Unlimited Times Read Please

Sep 23, 2010

i have this movieclip that needs to load many times but only if its called.here is the xml example why it needs to load many times.Url...if a user post a comment it inserts to database via mysql.and then get pulled back via xml.I have upload the fla file to let you see what it does but the main clip needs to load every comment. but it loads one i need to loop it some how.[code]

View 3 Replies

Load An Image Multiple Times?

Jun 27, 2011

I have a image of a person that I would like to load a certain number of times in a row to show a total of how many people took part in this particular event.  In total I need 166 replications of this image, is there any actionscript I can use to do this without having to create a key frame for every separate image?

View 7 Replies

ActionScript 3.0 :: Load Movies At Certain Times Of The Day

Dec 5, 2011

im trying to do this in AS3? Is there any way to do this in AS3?.

myDate = new Date();
time = myDate.getHours();
if (time < 1) {
loadMovie("night.jpg","contentMC");

[Code].....

View 9 Replies

ActionScript 2.0 :: User-Indicated Load Times?

May 9, 2005

I'm trying to develop a Flash music player for my website, but I don't want all the songs to load at once. I only want them to load if the user clicks on it. An example of this is a site that offers theseAnyhoo, I don't want to use a Radio Blog because I'd like mine completely customized to my specifications.On to the actual queston: How do I make it so that a song in the music player will load only if a user wants it to load and clicks on it

View 3 Replies

ActionScript 2.0 :: Pages To Load Therefore It Changes Colour 9 Times?

Feb 20, 2006

I've searched the threads to find something that may help but as i'm not too good with AS i'm not sure what Is relevant to what I need. So i'm hoping someone can put it simply for me.

I have a pattern in the background of each page on my website which sits on the Index page. When each new page is loaded, on release of the relevant button, the background pattern should change colour. I have 9 pages to load therefore it changes colour 9 times.

What sort of code should I use? I'm not familiar with changing colours in AS!

View 3 Replies

ActionScript 3.0 :: Script To Load Movie At Specific Times?

Nov 12, 2008

I've got a simple flash-based .exe that I'd like to load and play a move between a certain time of day. For example, the loaded movie should play everyday between noon-1pm and 2am-3am. The movie should then unload and go back to the original movie at the end of each time period. How and the world do I write the script for this?

View 2 Replies

ActionScript 3.0 :: Load Library Objects At Two Specific Times?

Oct 3, 2009

I want all my libray object that are classes to load on frame 2 except for one which is the preloader class I want this to load on frame one.

I can go into my publish setting and set frame two for all the classes to load, but then my preloader class isn't available until frame two.

can I write a line of code that will make the preloader class available on frame one instead?

View 2 Replies

ActionScript 3.0 :: Load External Image Multiple Times?

Nov 23, 2010

I am trying to create an interactive 3D canvas, e.g. it loads up the person image and loads it into several - pre warped- movieclips... trouble is when I run this:

ActionScript Code:
function imageLoaded2(e:Event):void
{
canvas_wrap_mc.canvasF_mc.addChild(imageLoader2);

[Code]....

It only executes the last one instead of them all, when I remove the last one (canvas_white_mc)... it goes to the next last one canvas_black_mc...

I'm obviously doing something wrong, and everything about addChild and loading external images for me is a bit loose weave!

View 4 Replies

ActionScript 2.0 :: Play Movieclip At Random Times On Load.

Mar 28, 2005

Is there an actionscript to play a movieclip at random times? This is when it reached the end frame of the timeline.

View 6 Replies

ActionScript 2.0 :: Play Movieclip At Random Times On Load

Mar 28, 2005

Is there an actionscript to play a movieclip at random times? This is when it reached the end frame of the timeline.

View 6 Replies

ActionScript 2.0 :: Cannot Manage To Set Different Times When Image Load To Stay In Screen

Jul 4, 2008

the aim of this script is to make a slide show, loading images form an external file (called: images) they fade in, then fade out, then load the next swf in the Next Level.My Question is that I cannot manage to set different times when the image load to stay in the screen (1, 2, 3 sec (1000, 2000, 3000 miliseconds) and then to fade.They Need to fade in, stay 1,2 or three seconds, and then fade out... but its not working, I used the SetIntervalID but nothing after loading the 1.swf this will call a 2.swf with a different time of the image to remain, lets say 5 sec, and then this swf will call the 3.swf and remain 8 sec??[code]

View 5 Replies

ActionScript 2.0 :: Loop A Flash Piece 3 Times And Stop After 3 Times?

May 11, 2005

I have a flash piece that I want to loop 3 times and then stop.

View 2 Replies

AS 3 :: FirstOne() Executed 3 Times And Then SecondOne() 3 Times?

May 30, 2010

i'm new to AS3. how do i go about executing a custom function n number of times and then executing another function n number of times repeatedly?

eg.

function firstOne():void { }

function secondOne():void { }


i need firstOne() executed say 3 times and then secondOne() 3 times and then firstOne 3 times again and so on. i'm trying to move a movieclip 3 times to the left and then 3 times to the right continuously.

View 2 Replies

Flash :: MMO For Facebook Architecture

Jan 25, 2010

architecture of the social multiplayer browser game with flash.

View 1 Replies

Flex :: Best View Architecture In It?

Aug 11, 2011

I have started learning flex 4 and I got myself thinking about how to change views. So I have a question what do people usually use - states or views (ViewStack). The type of web application I am making, can use both, but what do developers use in big projects or maybe they use non of the mentioned before?[code]...Best view architecture in it?

View 1 Replies

Flex :: MVC Architecture Development

Nov 22, 2011

I have a mobile application that I want to try and reorganize so that it's easier to read and update and follows better practice.I want to implement an MVC pattern, but I'm getting a little tripped up on getting there. I'm just hoping for some help with rebuilding the architecture. Here's the outline of my application:

Level1) MainView has a column of 5 buttons that when clicked lead to View1, View2, View3, View4 or View5.

Level2) Each of these views is the same: a list, but each is populated with different data. Selecting an item brings the user to another set of views SubView1 - 20. that each are again populated with a list.

Level3) However, any selection made on a List in a SubView leads to a view that is always the same for all selection paths - but is populated with different data. Basically a button, another list, a text input and a textarea.

From what I gather, I should be able to use a lot less files and achieve something of the same result:The model being a single class for data? The controller being a class or that controls the business logic, and a view that calls the controller?

View 1 Replies

ActionScript 3.0 :: Website Architecture Using MVC Concept

Jan 2, 2010

I'm developing a library + workflow for easy (hierarchical) navigation management inside website or application. From popular - can be somehow compared with Gaia Framework and PageManager from Soma Framework (I do personally don't like these implementations because they quite limit development even if they say they don't). I used to develop website so that each section(sub-section, sub-sub-section...) is an instance of a custom class (that extends DisplayObject: Sprite, MovieClip or whatever Flex container even), that contains logic and data in "single layer" manner... and all the view coponents aswell (texts, thumbnails, whatever).

Each of those sections is implementing INavigableObject interface and has navigationHelper (way of composition pattern), which helps with all navigation stuff. So. This approach was OK. But with my last project I felt need to use MVC design pattern, so I decided to refine my navigation stuff. And so therefore I have a question: how does hierarchy looks like when using MVC (any implementation.. custom one or any popular framework like PureMVC..) for website development?

View 2 Replies

Flex :: Pageless Architecture - Any Way To Refresh Ads

Feb 4, 2011

I've got a Flex 3 website. I set-up adBrite in an iFrame to serve ads, and it works fine. I've got 2 ad zones in 2 iFrames. My problem is that as Flex has a "pageless" architecture, I only get credit for one hit even if the user clicks every button on the site. In short, I get one pageview instead of several. adBrite said that if I can figure out a way to refresh the ads when the user selects a new item in my navigation menu, they're cool with it. They suggested just refreshing the whole app.

View 1 Replies

Java :: Android Flash App Architecture?

Jun 17, 2011

I am creating an app in flash for Android. What would be the correct architecture for this? Would I wrap the flash in Java, and the java would control the adverts and menu?

If so, when, for example, clicking Save on the menu, the java would need to get data (in this case, an image) from the flash app. Is this possible? If so, how? ![enter image description here][1]

View 1 Replies

Linux :: Architecture Of Multitouch In Flash On OS

Jan 24, 2012

Does flash support multitouch in Linux OS? How flash receives multitouch events from Linux OS?

View 1 Replies

Flash - Transform Tool Architecture?

Jan 27, 2012

I'm trying to get familiar with design patterns, modularity, unit testing and etc... (with ActionScript). I'm developing a simple "Free transform tool" right now, just as a exercise, but I don't like the solutions that I come up with so far, so I'll try to walk you trough my line of thoughts. When I come up with the idea I was thinking "What to write so I can test this great Unit testing framework FlexUnit", the first thing that I saw was guess what.. a free transform tool. :) When I was thinking about the architecture of the tool I run every scenario trough "How can I write unit tests for that thing?", so I come up with some kind of twisted MVC meta pattern:

A view that's holding all components (rotation area, drag area, resize buttons)A model (or something like that) that holds the necessary logic (setSize, setPositiom, rotateAroundCenter, etc..).And a controller that add listeners to the view components, update the mouse cursor when its over a component, get the mouse coordinates when is interacted with a component, do the calculations and call methods from the model that will update the view and the object that is benign transformed.

I was thinking: "Ok its flexible, i can switch M, V or C at any time, I achieved my main goal, because I can make lots of unit test for the model, where the important calculations are, so its great..".I just have started implementing it, but I think most of those thoughts are wrong. Yes I can change the view and add new skin but it's not flexible at all, if I want to add "skew" (or any other) functionality I should rewrite (or If I'm lucky just extend) M, V and C.Yes I can make bunch unit test for the model but controller's calculations will be hard to test.

So now I'm thinking for something like the Decorator pattern that will allow me to create whatever combination of controls i want to use and keep their logic separated, but I want to have the option to re-skin the controls themselves and to keep the logic separated so I can do the tests.I realize I want to create some kind of "ultimate transform tool", but I'm really trying to push my limits and learn something.

View 1 Replies

Flash :: Getting 'Not Supported On This Architecture' Error Message

May 29, 2009

I'm having a problem with Flash and InDesign (both CS4), installed as a bundle in one go from Adobe Master Collection discs, When trying to launch InDesign or Flash, I get a message that they are 'not supported on this architecture'.

I'm on a MacPro with 2x3GHz Quad Core and 4GB running 10.5.7.

All the other CS4 Master Collection apps have installed and run fine.

My volume is formated as Mac OS Extended (Journaled).

View 3 Replies







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