00:00
00:00
Newgrounds Background Image Theme
Upgrade Your Account!

HO HO HOPE you become a Newgrounds Supporter this year!

We're working hard to give you the best site possible, but we have bills to pay and community support is vital to keep things going and growing. Thank you for considering!

Become a Supporter so NG can see another Christmas!

does anyone know how to make animated preloaders in adobe flash cs6?

768 Views | 12 Replies
New Topic Respond to this Topic

does anyone know how to make animated preloaders in adobe flash cs6 because i wanted to make one for no reason but yes, does anyone know?


I know there are tutorials on newgrounds and youtube but... I don't even want to know, does anyone know


Flash portable is trash in first time, later it gets better

BBS Signature

A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.


I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)


Flash portable is trash in first time, later it gets better

BBS Signature

At 10/1/22 08:38 AM, Gustavotonogamer wrote:
At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.

I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)

1 tip that might help you: experiment a lot. It helped me when I was learning programming. You have the "test download" feature in flash to simulate preloading. Create an empty frame, and create an empty movieclip on the first frame. Use onClipEvent(enterFrame) and trace to print out everything you can. You know the function names are


_root.getBytesLoaded()

and

_root.getBytesTotal()

trace() the above and then you will probably soon find a solution.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

At 10/1/22 10:11 PM, Gimmick wrote:
At 10/1/22 08:38 AM, Gustavotonogamer wrote:
At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.

I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)
1 tip that might help you: experiment a lot. It helped me when I was learning programming. You have the "test download" feature in flash to simulate preloading. Create an empty frame, and create an empty movieclip on the first frame. Use onClipEvent(enterFrame) and trace to print out everything you can. You know the function names are

and
trace() the above and then you will probably soon find a solution.


ok :)


Flash portable is trash in first time, later it gets better

BBS Signature

At 10/1/22 10:11 PM, Gimmick wrote:
At 10/1/22 08:38 AM, Gustavotonogamer wrote:
At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.

I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)
1 tip that might help you: experiment a lot. It helped me when I was learning programming. You have the "test download" feature in flash to simulate preloading. Create an empty frame, and create an empty movieclip on the first frame. Use onClipEvent(enterFrame) and trace to print out everything you can. You know the function names are

and
trace() the above and then you will probably soon find a solution.

I didn't find the solution so that means one thing... I'm just really bad at programming (some things I program but it's hard)


Flash portable is trash in first time, later it gets better

BBS Signature

At 10/6/22 06:40 PM, Gustavotonogamer wrote:
At 10/1/22 10:11 PM, Gimmick wrote:
At 10/1/22 08:38 AM, Gustavotonogamer wrote:
At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.

I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)
1 tip that might help you: experiment a lot. It helped me when I was learning programming. You have the "test download" feature in flash to simulate preloading. Create an empty frame, and create an empty movieclip on the first frame. Use onClipEvent(enterFrame) and trace to print out everything you can. You know the function names are

and
trace() the above and then you will probably soon find a solution.
I didn't find the solution so that means one thing... I'm just really bad at programming (some things I program but it's hard)


Could you paste whatever code you've tried out so far?


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

At 10/6/22 09:26 PM, Gimmick wrote:
At 10/6/22 06:40 PM, Gustavotonogamer wrote:
At 10/1/22 10:11 PM, Gimmick wrote:
At 10/1/22 08:38 AM, Gustavotonogamer wrote:
At 9/29/22 06:13 PM, Gimmick wrote:A preloader basically stops the flash at the first frame (which should be as light as possible so that it loads quickly), and periodically checks whether the bytes loaded is equal to the total size of the flash file. If it is, then it lets the user start, otherwise, it waits until it loads everything. This is basically done by using getBytesLoaded() and getBytesTotal(); the first tells you how much you have loaded, the second tells you how much there is in total, and from the two you can calculate the % that has loaded and show it to the user.

I understood nothing but I'm going to get a preloader already ready (wow, it's hard to program)
1 tip that might help you: experiment a lot. It helped me when I was learning programming. You have the "test download" feature in flash to simulate preloading. Create an empty frame, and create an empty movieclip on the first frame. Use onClipEvent(enterFrame) and trace to print out everything you can. You know the function names are

and
trace() the above and then you will probably soon find a solution.
I didn't find the solution so that means one thing... I'm just really bad at programming (some things I program but it's hard)

Could you paste whatever code you've tried out so far?
stop();
gotoAndPlay();
on(release){


on(release){
	gotoAndPlay("Scene 2",1) 
}

on (release) {
 gotoAndStop(2)
}

maybe only ¯\_(ツ)_/¯


Flash portable is trash in first time, later it gets better

BBS Signature

At 10/7/22 06:17 AM, Gustavotonogamer wrote:maybe only ¯\_(ツ)_/¯


What did you want this code to do?


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

At 10/7/22 01:19 PM, Gimmick wrote:
At 10/7/22 06:17 AM, Gustavotonogamer wrote:maybe only ¯\_(ツ)_/¯

What did you want this code to do?


ahh I read wrong


Flash portable is trash in first time, later it gets better

BBS Signature

At 10/7/22 01:19 PM, Gimmick wrote:
At 10/7/22 06:17 AM, Gustavotonogamer wrote:maybe only ¯\_(ツ)_/¯

What did you want this code to do?
onClipEvent(enterFrame){
       _root.getBytesLoaded()
       trace()
}

Flash portable is trash in first time, later it gets better

BBS Signature

At 10/7/22 01:39 PM, Gustavotonogamer wrote:
At 10/7/22 01:19 PM, Gimmick wrote:
At 10/7/22 06:17 AM, Gustavotonogamer wrote:maybe only ¯\_(ツ)_/¯

What did you want this code to do?


_root.getBytesLoaded()

returns a number.

trace(<something>)

allows you to print something, but it has to be put in between the brackets:

trace(_root.getBytesLoaded())


Here is a Python tutorial page that explains functions in more detail. The same principle applies even in Flash.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

At 10/7/22 03:29 PM, Gimmick wrote:
At 10/7/22 01:39 PM, Gustavotonogamer wrote:
At 10/7/22 01:19 PM, Gimmick wrote:
At 10/7/22 06:17 AM, Gustavotonogamer wrote:maybe only ¯\_(ツ)_/¯

What did you want this code to do?

returns a number.
allows you to print something, but it has to be put in between the brackets:

Here is a Python tutorial page that explains functions in more detail. The same principle applies even in Flash.

i will try


Flash portable is trash in first time, later it gets better

BBS Signature