ActiveDen

Preloader help please!

6 posts
  • Has been a member for 6-7 years
Marcy says
Hi, I am new to Flash Den and I really need some Flash help. Here is the problem: I created a website using Flash slides and the site has turned out great! The problem is: I can’t get any preloader to work with the slide. I put the proloader in the first frame and used this code:
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!

1446 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Bought between 1000 and 4999 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Envato Staff
  • Exclusive Author
+5 more
collis staff says

Hey marcy, what do you mean that it doesn’t work, like does it just not go anywhere or does it skip through or…

6 posts
  • Has been a member for 6-7 years
Marcy says

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!

75 posts
  • Author had a Free File of the Month
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 100 and 199 users
  • Romania
+1 more
vamapaull says

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 ;)

1 post
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
Orgazmo says

Yeah! Please sends us an example and we’ll try to help.

6 posts
  • Has been a member for 6-7 years
Marcy says

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

75 posts
  • Author had a Free File of the Month
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 100 and 199 users
  • Romania
+1 more
vamapaull says

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.

6 posts
  • Has been a member for 6-7 years
Marcy says

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

209 posts
  • Bought between 10 and 49 items
  • Has been a member for 6-7 years
  • Netherlands
SilverXp says
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!:)

6 posts
  • Has been a member for 6-7 years
Marcy says

Thanks SilverXP for looking at the FLA ..it is a great mystery to all of us!

Thanks for the compliment too!

by
by
by
by
by