FORUMS: list search recent posts

preloading certain frames

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
joel rapo
preloading certain frames
on May 26, 2010 at 4:40:19 pm

hello all,


i have my portfolio website which is a 1.5mb big flash presentation and i thought about making a preloader.
the problem is that making a preloader for the entire site will take too long to load. i have tried that.
so i thought about making a preloader for each "page" or section of my presentation. for example- just for syneron, or just for m-systems (with each of them have a few different pages in the presentation, but their size is manageable).

the problem is that i cant find anything is the preloader code that will let met control what frames to preload (for example, frames 100-200).

i have to tell you guys in advance that i don't know anything about html,js or likewise. all i know is some flash and dreamweaver i learned myself to put up this site.

thanks in advance,
Joel


http://www.joelr.co.il


Return to posts index

Adam Ashby
Re: preloading certain frames
on May 28, 2010 at 12:06:17 am

I don't know about loading certain frames, but you could try to preload a percentage of it. The following loads 50%. I think flash player loads starting from frame one then on. ???

this.addEventListener(Event.ENTER_FRAME, loading);

function loading(e:Event):void{

var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;

if (loaded == (total * .5)){
this.removeEventListener(Event.ENTER_FRAME, loading);
this.gotoAndStop(2);
}
}


You might want to load in images dynamically or break up certain things into other swfs and load them in dynamically when needed.



Adam Ashby
mutli-media artist
http://www.adamashby.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]