Jump to content


Preloaders


  • You cannot reply to this topic
5 replies to this topic

#1 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 07 August 2006 - 10:26 AM

I feel retarded because I cant even make a preloader, even with the help of tutorials. I dont know why but theres always things I do wrong. Maybe I'm putting the code wrong or the code doesnt fit my animation or something but it just doesnt work. Can anyone link me to some tutorials for advance preloaders that are easy to understand? Or maybe give me some hints on why mine dont work?

#2 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 07 August 2006 - 11:28 AM

Did you look through http://www.pixel2lif...2/preloaders/1/

Nobody can help you if they cannot see what your doing, maybe upload your fla so we can see where your going wrong. Someone will take a look for you K most likely funkysoul

#3 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 07 August 2006 - 01:30 PM

yeh, post the code, and we will have a look at it

#4 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 08 August 2006 - 12:00 PM

The error:

**Error** Scene=site, layer=preloader, frame=5:Line 4: '{' expected
function preloader():Void {

**Error** Scene=site, layer=preloader, frame=5:Line 15: Unexpected '}' encountered
}

Total ActionScript Errors: 2 Reported Errors: 2

The code on the frame:

stop();
loadingBar._yscale = 1;
var loadingCall:Number = setInterval(preloader, 50);
function preloader():Void {
var siteLoaded:Number = _root.getBytesLoaded();
var siteTotal:Number = _root.getBytesTotal();
var percentage:Number = Math.round(siteLoaded/siteTotal*100);
loadingBar._yscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._y = loadingBar._y - loadingBar._height;
if (siteLoaded >= siteTotal) {
clearInterval(loadingCall);
gotoAndStop(6);
}
}

I got all the instances names right and everything. Thanks for everyone's help!

Edited by cng, 08 August 2006 - 12:00 PM.


#5 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 08 August 2006 - 02:13 PM

erm.. which flash version are you using, I just copied and paste that code, and I don't get any errors..
and normally you should put this code on frame 1 top layer, since that is the first being loaded

Edited by funkysoul, 08 August 2006 - 02:14 PM.


#6 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 08 August 2006 - 02:46 PM

View Postfunkysoul, on Aug 8 2006, 07:13 PM, said:

erm.. which flash version are you using, I just copied and paste that code, and I don't get any errors..
and normally you should put this code on frame 1 top layer, since that is the first being loaded

Thanks, I've found my problem (not Action Script 2.0). I was sure I did everything right and publishing with Flash 8 but I forgot about the AS.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users