Web site with the loading bar

Hi all

I have a site I created in AS3. Currently, there is a home page main before entering the site (this is index.html). This is a short animation, and then you click a button to enter the main website. It takes you to a second page HTML (home.html) where the rest of the site is built in flash.

I want to be able to have everything on ONE page and have a loading bar precede everything. The website itself has a charger inside to display text and different images, and I fear that the amount of time it takes to load to start (the short animation) and to go to the site even (most of the images) is seriously detrimental to the flow of the Web site.

My questions are essentially the following:

How can I put the animation in the same location as the Web site? Do I need a charger in a charger?

How to make a bar of load shot all this?

Thanks for your comments. I hope it is something simple that I still have to learn. Thank you.

-Ted

kglad wrote:

you embed not home.swf index.html.  You "load" home.swf into index.swf using the loader class.

Thus, for example, in index.swf:

yourbtn.addEventListener (MouseEvent.CLICK, f);

var ldr:Loader = new Loader();

var urlR:URLRequest = new URLRequest ("home.swf");

addChild (ldr);

ldr.contentLoaderInfo (ProgressEvent.PROGRESS, loadprogressF);

function loadprogressF(e:ProgressEvent) {}

View your preloader using

e.bytesLoaded and e.bytesTotal;

}

function f (e: Event) {}

LDR. Load (urlR);

}

Tags: Adobe Animate

Similar Questions

Maybe you are looking for