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?
Preloaders
Started by cng, Aug 07 2006 10:26 AM
5 replies to this topic
#1
Posted 07 August 2006 - 10:26 AM
#2
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
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
Posted 07 August 2006 - 01:30 PM
yeh, post the code, and we will have a look at it
#4
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:
I got all the instances names right and everything. Thanks for everyone's help!
**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
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
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
Posted 08 August 2006 - 02:46 PM
funkysoul, 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
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
