Create an account


Loading

#1
I was trying to make a loop but it takes way too long to load.
http://thewiktor.webs.com/freshnfoxy.swf
As you can see there is a preloader but for some reason it doesn't work and sometimes the loading bar doesn't load at all and it's just a white screen and the loop lags for a few seconds at first before playing smoothly (like a gif).

Any tips on making a preloader (ActionScript 2.0) and how to make it fully load before playing?
Reply

#2
(21-01-2015, 15:36)thewiktor Wrote: I was trying to make a loop but it takes way too long to load.
http://thewiktor.webs.com/freshnfoxy.swf
As you can see there is a preloader but for some reason it doesn't work and sometimes the loading bar doesn't load at all and it's just a white screen and the loop lags for a few seconds at first before playing smoothly (like a gif).

Any tips on making a preloader (ActionScript 2.0) and how to make it fully load before playing?

First of all: also a preloader has to load. If the preloader is too big, it wouldn't make sense Tongue
Second: Always use AS3!
Third: It looks like your loading request doesn't operate really well. The reason, why the first seconds of your gif is lagging could be, becouse your flash is still loading.
Use the commands: "stop();" and "if (total == loaded){play();}" and it should work.

Here are also two good tutorials:
http://www.republicofcode.com/tutorials/...preloader/
https://www.youtube.com/watch?v=gfcRm6SAYJI

have fun,
Freiweg
Reply

#3
(21-01-2015, 17:53)khavatarie Wrote:
(21-01-2015, 15:36)thewiktor Wrote: I was trying to make a loop but it takes way too long to load.
http://thewiktor.webs.com/freshnfoxy.swf
As you can see there is a preloader but for some reason it doesn't work and sometimes the loading bar doesn't load at all and it's just a white screen and the loop lags for a few seconds at first before playing smoothly (like a gif).

Any tips on making a preloader (ActionScript 2.0) and how to make it fully load before playing?

First of all: also a preloader has to load. If the preloader is too big, it wouldn't make sense Tongue
Second: Always use AS3!
Third: It looks like your loading request doesn't operate really well. The reason, why the first seconds of your gif is lagging could be, becouse your flash is still loading.
Use the commands: "stop();" and "if (total == loaded){play();}" and it should work.

Here are also two good tutorials:
http://www.republicofcode.com/tutorials/...preloader/
https://www.youtube.com/watch?v=gfcRm6SAYJI

have fun,
Freiweg

Thanks for your advice, but 'always using AS3' might be a problem because I use the ancient Macromedia Flash Professional 8 Tongue
Reply

#4
As an apprentice or student you can get the whole Adobe CC Softwaresuite for 12€/month Smile
Reply




Forum software by © MyBB Theme © iAndrew 2016