Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloader q 1

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
I've 1 main swf that contains the main part of my site. In here I've 2 buttons which load 2 other swf into the main swf. The problem is that the preloader works fine for the main swf but when I try to use the same preloader for the 2 swf that I load into the main swf it some how does not work. Now in all 3 of my swf i've the following preloader.

3 layers:
Top layer "Actions"
Mid layer "preloader mc"
Bottom layer "Main Movie"

Top layer "Actions" has 2 keyframes. First keyframe has the following actions.

ifFrameLoaded (2) {
gotoAndPlay(2);
}


2nd keyframe has the following action.

stop();

Mid layer "preloader mc" has only 1 keyframe in frame 1. In this frame I've a MC that loops over and over again.

Bottom layer "Main Movie" has 1 keyframe located in frame 2. In this frame I've my main movie.

If theirs an easier way of doing this I'm up for ideas. Thank you in advance for your help.

 
The reason you see the very top top part before any thing else is because that's a flash bg that will spread to match the size of your screen. I will have to look at the code and make sure I've all of the instances and code placed in the right areas.
 
Still not seeing the second preloader!

Did you clear the first few frames of that loaded movie? Otherwise the first frame (streaming) could be simply hidding you preloader from view, if it's behind that frame.

Regards,

oldman3.gif
 
yup, I've it on frame the pane and bg layers on frame 5.
 
Did you not get the e-mail I sent you yesterday? If not then both fla. files are in that folder.
 
Ok! Just checked it and got contactbase3.fla...
But shouldn't I look into the main movie also? Regards,

oldman3.gif
 
I don't think you need to but feel free to check it out.
 
Do you really want to have it displayed where you've now placed it? It's just above the 5 on the left, very small, and IMHO, nobody will see it, which in a way defeats the purpose, don't you think?

If you do, the reason it's not showing up is that your calling it with _root.preloader1.gotoAndStop(2);, and it's simply not located there on _root. It's located within a bunch of unnamed instances, so the right call would be:

_level0.instance2.instance24.instance45.instance59.preloader1.gotoAndStop(2);

Would be much easier if you just put that preloader clip on the root level, keep the previous call I had, and position it at the bottom of the screen roughly where the "to be loaded" movie will appear.
Decision is your's.

If you named all of those unnamed instances, don't forget to correct the call to the preloader with that new path! Regards,

oldman3.gif
 
oooooooooooooo, ok! Thanks!

Can I ask you a question? Do you work for tek-tips or do you just have allot of free time. I see you're helping allot of people out on these forums and I think that we are all very grateful for your help. Also do you've a website with your work that I can view?
 
No, I don't work for TT. I'm not even in the web business. I'm a freelance film editor. Only have a lot of free time because I'm getting close to retirement. And no, I don't have a site of my own, other than for storing examples files to help others with Flash. Regards,

oldman3.gif
 
YEA! I got it working, only one small problem.. the main loader seams to only play for a split sec. where as the web.portfolio plays for about 3 sec or so. I had to have my roommate download a bunch of mp3s so I could test this over the net.

File sizes: main- 41.3kb
webport- 62.4kb
 
Just checked it on my 56k dialup (only connected at 33...), and everything seems to be working fine!
Remember to empty your cache each time you want to check the preloader. Once the files are in the user's cache, you should never see it again. Regards,

oldman3.gif
 
Cool, thank you for your help.

Have you ever thought about going into the web design besiness? You seem to know what you're talking about when it comes to flash. Would any of the films you've edited ring a bell?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top