preloader (ifFrameLoaded) + sharedObject
i cant provide u guys with .fla right now coz im in school but i'll provide u guys with full information. ill try. ok my swf is divided into these frame labels.. frm its starting point
preloader (frame 1) --> header (frame 10) ---> menu (frame 15)
im using ifFrameLoaded script for my preloader. in the preloader frame an animation lays while "header" loads. once its loaded, it will play header.
however, i also have this script below the preloader's script on the first frame
Quote:
//visit history
var visit:SharedObject = SharedObject.getLocal("visitHistory");
var counter:Number = visit.data.visits;
var frameName:String = "";
if (counter == undefined) {
counter = 1;
visit.data.visits = counter;
frameName = "preloader";
} else {
counter = counter + 1;
visit.data.visits = counter;
frameName = "menu";
}
myCounter.flush();
this.gotoAndStop(frameName);
so assuming that its the first user'svisit, it will load the preloader animation then the header where there is animation of the menu n finally a static menu. if its the second user's visit, it will play the static menu straight away.
however, the code dosnt work. what happens is be it or not its the first or second visit, it will load preloader -> n jump to static menu. so i changed the,
Quote:
if (counter == undefined) {
counter = 1;
visit.data.visits = counter;
frameName = "header";
i changed the first frameName to "header" instead of "preloader" and now its working. first preloader -> header -> menu for first visit. but on 2nd visit, i thought it wont play preloader anymore since its stored in the cookie. but itdoes and its pretty annoying :( for 2nd visit, it plays preloader -> static menu
im not sure the ifFrameLoaded code makes this happening. becoz i have that set up to go to "header"and not "menu"
so im pretty stumped now :| how do i initiate a preloader and still use sharedObject to not play animation for 2nd time visitors, or basically to avoid from header to be reloaded each time user clicks a link.
sorrie for this really long explanation. hope someone cares to explain :)
preloader negates my sound
i decided to use this preloader
www.lukamaras.com/tutorials/preloaders/green-sphere-mathematical-preloader.php
but there is a small problem with it......
when the movie is finally loaded and playing, my music does not
and i have no clue why.
so i think i want to make an entirely new preloader that does almost the sam thing (loads an external movie using a placeholder) but id like it to have a bar, with the percent loaded and the amount of bytes loaded/total bytes
can somebody help me achieve this?
.....im not very talented in actionscripting, so it will probably have to be explained in a little more depth than most tutorials