Customized preloader

Lost: ouch i think you hit his blood box with that one, i tried helpin him out cuz i had a related issue, maybe that’ll help him.

Do you think i should even bother trying to visit actionscript.org and trying their actionscript tutorials? or should i just continue my pace and learn as i need to use?

BTW i like the work on your photoshop portfolio and ur signature swf is kick ***

slik: If you want to learn as much as you can now, then by all means, go for it :slight_smile: I just know a lot of flash designers learn stuff as they go along, but maybe it is good to have the knowledge before you need it, it will save you the trouble later :slight_smile:

So if you want you can do the actionscript.org tutorials, and the kirupa.com tutorials, and www.bit-101.com has some great physics tutorials.

Thanks for the compliments on my Photoshop work and my footer :beam:

In school my teacher sat me down on illustrator, gave me 1 tutorial and said by the end of this i’ll have taght you everythingyou need to know about illustrator. It was a pen tool tracing tutorial. He was right.

When i sat down in front of photoshop for the first time i asked him to teach me that too he said " i don’t even know it that well enough to teach, you can’t learn it, it has to learn you" Took me a while but i figured out what he meant by it, i learned it on my own and 3 years later i can say i’m pretty good.

I think that’s the approach i’ll take on flash…

Physics was a cool class, but i’d rather throw things off a cliff to learn about gravity than to press F9 and jot down _grav. = 9.8 its just not as fun hahaha:bad:

Yes, Flash is exactly like that.

And that is wise words on Photoshop, and true. And what that is also true for is that you can follow any tutorials to make effects you want, but how you use those effects in the future are up to you. It is your style, something you do, not something you completely copied. Experiment, and figure out your style. That is almost like the Photoshop has to learn you statement… right?

exactly.

That’s why instead of just using kax’s preloader i simply read the code and placed it into my file now everything is kopasetic, he may not be able to explain with words but he sure as hell explained in his fla.

Yeah, but do you know why his works? Do you understand all the code?

If so then… great :slight_smile:

he may not be able to explain with words but he sure as hell explained in his fla

:blush:

yea the code is pretty basic

Bloaded = (_root.getBytesLoaded() / 1024)
Btotal = (_root.getBytesTotal() / 1024)
square._height = ((Bloaded / Btotal) * 100)
if (Bloaded == Btotal) {
gotoAndPlay(“Scene 2”, 1)
} else {
gotoAndPlay(1)
}

basically its defining the total file size and loaded size, then he’s establishing the square height as it relates to the amount loaded, and then when the total = the amount loaded, it calls to play scene 2 on frame 1
Pretty simple :rambo:

But why is he divding the getBytesLoaded() and such with 1024?

Actually that is something I want to know, that makes no sense to me…lol. I know there are 1024 bytes in a kilobyte, so that would be <B>*</B>1024, but besides that, there is no use for that part, since the only thing the code is doing is checking to see if the values are equal. There is no reason to divide it by 1024, it should just be getBytesLoaded() and getBytesTotal().

i guess he’s trying to simplify the appearance so that rather than it showing the bytes total in bytes it’ll actually show it in kilobytes ie 12 of 64k rather than 12288/65536

yes? no?

Well yes, but the code above has no numbers displayed, it just changes the the _height of an object by dividing the Bloaded and Btotal :wink: And for that it doesn’t matter if you simplify.

Ack… im thinking too much, I think I am confusing bytes and kilobytes and stuff…lol.

But either way, with the code shown above, there is no reason to divide by 1024, I know that.

what if i add a dynamic text box under the preloader and call for display of the bytesloaded, then would 1024 be of any help?

Well then yeah if you want that.

But then that wouldn’t be the original code, so my whole disagreement with /1024 still counts… just not for your edited version :wink:

… editing is so cool

=)

:crazy:

maybe he copied the code from somewhere else too and never really paid the 1024 much mind.

oops :crazy:

guess I get used to write the code for the preloader that way … didn’t pay attention either

BUSTED!!! LOL
thanks a bunch for the fla you really helped me out:nerd:

lol :stuck_out_tongue:

what can I say … my life is a mess!!

all our lives are… we’re artists.:geek:

LOL… how true, how true :wink: