stop();
loadingBar._xscale = 1;
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void {
var siteLoaded:Number = _root.getBytesLoaded();
var siteTotal:Number = _root.getBytesTotal();
var percentage:Number = Math.round(siteLoaded/siteTotal*100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay.text = "loaded " + siteLoaded + " of " + siteTotal + " bytes";
if (siteLoaded >= siteTotal) {
clearInterval(loadingCall);
gotoAndPlay(15);
}
}
I have tried the code in other movies and it works just fine.
Please help, I can’t put this site up until I get this fixed and my client ie anxious.
Thanks so much!
- Attended a Community Meetup
- Australia
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1000 and 4999 items
- Contributed a Blog Post
- Contributed a Tutorial to a Tuts+ Site
- Envato Staff
- Exclusive Author
Hey marcy, what do you mean that it doesn’t work, like does it just not go anywhere or does it skip through or…
Thanks for responding..
It just acts like the site does not have a preloader, and you have to wait for the site to load without seeing any preloading activity first.
I’ve tried the preloader and code in mock sites and it works just fine, so I don’t know if the problem is with using slides. This is my first time designing a website with slides…so, I don’t know!
- Author had a Free File of the Month
- Author was Featured
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 6-7 years
- Item was Featured
- Microlancer Beta Tester
- Referred between 100 and 199 users
- Romania
If you can post a link to your FLA file I will download it and I will take a look and see where the problem is 
Yeah! Please sends us an example and we’ll try to help.
Thanks so much for offering to help.. here is where you can grab the file..
www.swoopty.com/helpme
Hope you guys can figure it out.
Thanks again
- Author had a Free File of the Month
- Author was Featured
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 6-7 years
- Item was Featured
- Microlancer Beta Tester
- Referred between 100 and 199 users
- Romania
That is a very buggy way to make a Flash site… Try to make it in the time line… if you don’t use ActionScript… Don’t use a lot of scenes… The project is not that easy to understand… you have to work clean so others can understand your work if you have problems…
I really don’t know what is with this loader problem… why xscale? and in the same script you use width… and stuff like that….
You have to make your own ActionScript stuff so you can understand it… (or buy stuff from this site, because the Flash developers around here really know what they are doing)
This preloader script is not made my you… I’m sure… Make your preloader with if/else instead of using the setInterval stuff…
I don’t really know what is with your project… some classes are missing or I don’t know what… but I get some errors when I try to export the ActionScript to frame 2.
Hi Vamapaull,
Ya I know it’s a weird way to make a Flash site, but I have never used slides before and wanted to try them.
You’re right, I didn’t create that code myself, but it does seem to work in other Flash projects, just not the slides one.
Maybe I will just remake the site in the timeline, that is what I’m used to anyway.
I’ve just gotten a Total Training video tutorial on Action Script 3.0 to help me understand how to code myself. I really am not much of a coder, I like the design part the best but I know that the industry is changing; desiginers need to do both and vice versa.
Thanks for looking at it though, I appreciate it.
Marcy
Hi Vamapaull,Ya I know it’s a weird way to make a Flash site, but I have never used slides before and wanted to try them.
You’re right, I didn’t create that code myself, but it does seem to work in other Flash projects, just not the slides one.
Maybe I will just remake the site in the timeline, that is what I’m used to anyway.
I’ve just gotten a Total Training video tutorial on Action Script 3.0 to help me understand how to code myself. I really am not much of a coder, I like the design part the best but I know that the industry is changing; desiginers need to do both and vice versa.
Thanks for looking at it though, I appreciate it.
Marcy
I don’t know why the preloader isn’t showing up…
Good luck Marcy, you’re site is looking very nice anyway!:)
Thanks SilverXP for looking at the FLA ..it is a great mystery to all of us!
Thanks for the compliment too!
