preloader help

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

Post 3+ Months Ago

ok, i have a preloader on my site, but it only seems to preload the 1 page u first open, is there a way or command you can put in to make it pre cache all the external .swf documents, which are imported as new pages?

may seem a dumb question to all you people who are good with flash, but i am new and the only way u learn is if u ask :P
  • 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

here's a great site for you to reference and study from. The forums there
are equally as good. I would spend some time going through some of
the tutorials and then trying to do some of the more advanced notions
like preloading external swf's. Just my suggestion. :)

http://www.kirupa.com
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

yea, lol, i used that site alot, i got all the code i needed from that site, i will look for preloaders as well thx
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

can some1 please tell me if my preloader works now?...i have loaded the site many times on my comp so i dont see if it works properly
http://www.geocities.com/sharpycrew/swf/main.html

thanks :lol:
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9084
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

It loads pretty much immediately for me, but that might be because I am on a broadband connection. It might work better with someone who has a dialup connection as far as seeing if the preloader works. You can check yourself by deleting your cache completely and then going back to your site.
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

errr (dumbass questions comming up) ..............how?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9084
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Goto:

Tools->Internet Options->Delete Files

Then check "Delete all offline content" and then hit OK.

I am assuming you are using Internet Explorer. If you are using Netscape or something else my instructions probably will not work for you.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

another way to check it, is flash has an internal speed reducer that
simulates a slow internet connection so you can get an idea of how it
might load for someone on dialup.

While in your movie in flash, hit ctrl+enter to see the test movie, but then
hit ctrl+enter again and it will load as if on a slow connection.

Hope that helps. I use it all the time. :D
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

yes but?....i am still having no luck, the preloader i have now seems to show up when it is 90% loaded. which maked no sense?

i have installed it correctly, in the right place, just as http://www.kirupa.com said?
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

the only thing i can suggest, without looking at your code or design, is to
go through and make sure it's coded correctly. My feeling is that it's not.
  • SainT1337
  • Newbie
  • Newbie
  • User avatar
  • Posts: 7
  • Loc: <Classified>

Post 3+ Months Ago

Hello

Normal and Advanced preloaders are easy with a tutorial but haven't come accross a totorial where you can preload multiple scenes... check code below:

Code: [ Select ]
ifFrameLoaded ("Intro", 40) and{
    ifFrameLoaded ("Fade in") {
        ifFrameLoaded ("Example", 40) {
            gotoAndPlay ("Intro", 1);
            play ();
        }
    }
}
  1. ifFrameLoaded ("Intro", 40) and{
  2.     ifFrameLoaded ("Fade in") {
  3.         ifFrameLoaded ("Example", 40) {
  4.             gotoAndPlay ("Intro", 1);
  5.             play ();
  6.         }
  7.     }
  8. }

Multiple ifframeloaded doesn't work, maybe I'm missing a and or something like that ?!?!

Any help will be appreciated.

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

Post 3+ Months Ago

well, ifFrameLoaded is a deprecated function in Flash MX, which means
that in future releases, it may not be a valid function to use. So,
I would recommend learning some other technique for preloading your
flash movies.

However, since you asked, I think this is what you need to get this to work. I don't have the file open in front of me, so it may not work first
shot, but i'll try -

are you using seperate scenes? one for the preloader and one for the
main movie? if you aren't, this is partly why it's not working. You will
need to do that first.

Here's the code for what you want though.

Code: [ Select ]
ifFrameLoaded ("intro", 40) {
    gotoAndPlay(1);
    play();
}
  1. ifFrameLoaded ("intro", 40) {
  2.     gotoAndPlay(1);
  3.     play();
  4. }
that should be all you need to preload using scenes.

http://www.kirupa.com is a great reference to get you started. I would
recommend going through some of the tutorials there. :D
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Yes, ifFramesLoaded() is a deprecated function, which is a good thing for different reasons. One being that just because all frames are loaded doesn't mean all objects in the library are fully loaded, and another being that the new method is MUCH more versatile in checking if a movie is loaded.

The new method of course uses getBytesLoaded() and getBytesTotal(). Now these functions are more reliable because they go by file size, not frames loaded. If the full file (getBytesTotal()) is loaded (getBytesLoaded()) then you can do what you want from there. Using this ability you are able to create more advanced preloaders that check how much of the file is loaded, displaying a percentage, displaying how much is left to load, creating load bars and other variable loading animations that can go by how much is loaded. Pretty much all you can do with ifFramesLoaded is keep checking if all the frames are loaded while playing a looping animation. That is quite lame ;)

There are a few tutorials at kirupa.com that go over these methods, you should definitely check them out as others here have previously recommended.
  • uknightuss
  • Graduate
  • Graduate
  • uknightuss
  • Posts: 196
  • Loc: Los Angeles

Post 3+ Months Ago

This thread describes pretty much exactly what I am going through with loading external swf files into the root movie. I am trying to design an intro for a wedding photography website similar to this one(WARNING-TURN YOUR SOUND OFF FIRST: http://www.davidjayweddings.com/index_content.html

My intro would be displaying approximately 20 images and this is the mockup of the first few images that i have done so far: http://www.cadencephotography.com/wed/wed.htm

my question is to lostinbeta or to anyone else who can answer:

If you use actionscript with the getBytesLoaded() and getBytesTotal() functions to make a preloader for your movie, does it account for the additional sizes of the external swf's that are being loaded into the movie as well? If not, then is there a way to preload the external swf's without automatically playing them in order to help prevent gaps between swf loads, or unexpected behavior/skipped frames/sequences on slower connections?

I have set all my images as .gif extension and am attempting to do this project with seperate movies for the different sequences in order to keep everything as speedy as possible, which i'm sure most of you designers can understand! It's possible that I don't need to use seperate movies, but I dont want to end up with one single swf file that is 1Mb or larger.. Don't want users waiting around for things to download.. An additional reason for the seperate movies is because my FPS is at 30 and I have 20+ images to show and don't want to end up with a massive timeline + layer stack...

Any help will be quite appreciated, thank you.
  • uknightuss
  • Graduate
  • Graduate
  • uknightuss
  • Posts: 196
  • Loc: Los Angeles

Post 3+ Months Ago

Still have the same question as my last post on this topic, just keeping this thread on top of the forum list. Hopefully one of you flash guru's will take some time to answer this :roll:

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 11 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
 
cron
 

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