Preloader problems

  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

Hi
I am using a preloader which i kinda modded for my own use. It was one which i got from kirupa, made by lostinbeta 8)

anyway, I inserted the frames into the from of my movie...It works!...

but when i put it onto the front of a movie clip with was loaded into my main .swf it just gets stuck on the "Loaded" sign, so it does preload it, it just doesn't pass onto the next frame which has the content on it.

so it works when it is simply opend, but not when it is on the front of a movieclip loaded into another.?

any help would be a bonus....

Nucleo
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

you're going to need to modify the original preloader code to
apply itself ONLY to the MC you're loading. I think he took care
of that by using 'this' throughout that code, but I may be wrong.

If it's stuck on loading, check your frames...where is it supposed
to continue playing after it loads?? what frame? and did you
make sure you labeled it correctly? You could also post the
code itself here so we can see what you're using.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

That tutorial has updated code to fix this issue in the tutorial (I changed "_root" to "this"). It is the final .zip file at the end that doesn't have the updated code... which my guess is you must of decided to just use that.
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

WHOOHOO!!

thanks alot unflux, lost...

changing all the "_root." to "this" did the trick and it works fine now...

thanks..back to flash... :D
-----------------------------------------------

a little off topic, i am making a flash game with some friends, well i say a flash game...

it aint really, more a football management game, anyway, it will probably be up for review when it is done..

kinda diving in the deep end, im fairly new to flash, now its gonna use php, logins, registrations and MySql...

lol, should be fun
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

hi again

another query about the peloader...
whenever i run it on the net and with the controled speed in flash the preloader always starts at about 80%

so it shows when the movie is almost finished...
i checked and the preloader is about 2kb max and the movie about 100kb, so it should show with the controled net speed thing on flash ( :P )

any idea's?...
  • solaris
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: NC

Post 3+ Months Ago

it might be because the preloader only loads whats actually on the stage/scene in the movie, and not what you have included in the library, or it could be an issue of placement, where it starts to load, varying what it actually loads / leaves out.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

that's because the preloader is loading everything it can show
during its own frames, and trying to load the rest of the movie.

what i mean is, if you have a large graphic or a lot of text to
show along with the preloader's own graphics, it will have to
load those first, then the preloader will display. Kinda
backwards, I know....but i learned this the hard way myself.

when you say 2kb max -- what are you doing with the
preloader to begin with? Can you put up an example?
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Basically, to sum up what Unflux said...

The preloader is part of your movie, it is the first part of your movie that is used to load the rest of your movie after that. So a preloader should be a low file size so it can load quick enough to be visible to the viewer before the movie is fully loaded.
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

this is practicly it...
http://www.inucleo.co.uk/preloader.zip
then it moves onto the next scene where the movie is...
this script i used was meant to move to another frame, but i changed it to move to dif frame once it has finished loading...
any ideal's?...


a number of different preloaders have done this to me before...only just decided to ask lol
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

ok, there is the source file /\
||

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.