Btw, you shouldnt happen to know how I can get this preloader to work for the transitions aswell? Having some problem getting it working, because it the transition preloader works abit different.
Thanks,
fatnslow
Btw, you shouldnt happen to know how I can get this preloader to work for the transitions aswell? Having some problem getting it working, because it the transition preloader works abit different.
Thanks,
fatnslow
lot of ppl asking questions about the transitions tut… ill hav to have a look at it… but if you can grasp the basic concept of what ive done (sorry if that sounds patronising or owt… its not intended if it does! :S) chances are you could adapt it to the transitional preloader thingy… ill hav a look for the tut wen i get time k?
Prophet.
Thanks, that would be great. I have used the transition tutorial on the index2.fla I posted over. I have tried some, but it is alittle bit to much for my lvl in as atm.
Thanks in advance,
fatnslow
Thanks, that would be great. I have used the transition tutorial on the index2.fla I posted over. I have tried some, but it is alittle bit to much for my lvl in as atm.
Thanks in advance,
fatnslow
Hey, Prophet.
Are you able to have a look at the transition thingy?
Thanks
Hey, Prophet.
Are you able to have a look at the transition thingy?
Thanks
SORRY!!! i went all quiet on u ther dint i… :S
promise ill make time 2 have a look within 24 hours!
Prophet.
Hehe, no problem. Thanks for all the help
bytesLoaded = Math.round(this.getBytesLoaded());
bytesTotal = Math.round(this.getBytesTotal());
//getPercent = bytes_loaded/bytes_total; // Just to remember what the old one was
realPercent = (bytesLoaded/bytesTotal)*100
_root.loadBar._width = fakePercent*2; //max width is 2*100 = 200
_root.loadText = fakePercent+"% Loaded"; //no need to round or times as fakePercent is incremented by 1 each time rather than being loaded/total
if(!firstTime){
firstTime=1
fakePercent=0
}
if(intervalStarted!=1){
intervalStarted=1
clearInterval(fakePercentInt)
fakePercentInt = setInterval(function(){
fakePercent++
trace(realPercent)
},20) //again, change the 100 to a speed of your choice ;)
}
if(fakePercent>realPercent){
clearInterval(fakePercentInt)
}
else if(fakePercent<(realPercent-5)||realPercent>=100){
intervalStarted=0
}
if(fakePercent>=100){
gotoAndStop(3)
clearInterval(fakePercentInt)
}
should work ok judging by the code in this tut:
http://www.kirupa.com/developer/mx2004/transitions2.htm
sorry i didnt reply as soon as promised but i had my first car crash yesterday at about 2.50 pm (ie. before i got home) and my car was a write off… so for once i had a pretty good excuse!
Prophet.
Hehe, no problem.
But I can’t see where I should have this code? That is the code I have in the first frame of my main movie. But how can I get it to replace the transition preloader, the one that comes up after the “in” transition has played.
Understandable?
Thanks for the help
replace the preloading code on the frames of the swfs with the above and things should run forcibly i hope
Prophet.
Ok, now I have a main.swf that on button press loads profile.swf using this code.
on (release)
_root.content.loadMovie (“profile.swf”)
and in the profile.swf I have the preloader in the first 2 frames and the text in the third. But when I click on the profile button in the main.swf, the content box gets white and it doesn’t display the preloader, but after the preloader are done, it shows the text…
Understandable
So, why doesn’t the preloader show up?
Thanks,
fatnslow
:: Copyright KIRUPA 2024 //--