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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oldnewbie... 2

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Hey talk to me about the work around you have for the preloading problem while using componets..I saw you post it a few times but I can't remember the work around..Something about another movie preloading the other..


Using scroll panes and preloader is not showing up till about 50% loaded..


I have some other scroll bars I can use but the scroll panes slick style just matches perfectly with what I want!
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
The workaround is simply to create a new preloader movie, which sole purpose in life, is to load your present movie, cleared of it's own preloader, in an empty container clip or on another level. So basically if you want to load your "aboutus.swf" movie, for example, you would create a new movie "loadabout.swf" and use it to load your present "aboutus.swf".

My present preloader is a 1 frame preloader and pretty simple (only has a bar and percentage loaded display, for the moment), but I must admit that using it is much easier if you load your movies on levels rather than in container clips. In that case, since all movies have a _root level, all references to _root can be kept and should work as they did, in the original file, and you can refer and target the main movie with _level0. If you load your movies in container clips, then all references to the _root level alone that concerned the loaded movie itself, must be changed because using _root from a container clip, now refers to the root level of the main movie and not the _root level of the movie loaded in the container clip.

I'll email you the .fla, so that you can test it out.
Your present movie should be cleared of it's own preloader, but you should keep a blank first keyframe with a stop action on it.

After making the preloader of the same stage size and framerate as your present movie and repositioning the display mc to your liking, you then only have to replace the "content.swf" with the name of your present file, for it to work. Regards,

oldman3.gif
 
Thanks alot!
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Hey man are we saying that this works in theory or has it been tested?

The loader movie plays, it loads the movie in the clip, goes to frame two and stops, but the bar or the "percent" text never shows up?
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Sorry about that mate! Did change the following line, before I sent you the file, so either replace it with the original one which was:

// Hide the display...
this.display.loadbar._visible = false;

Or... (which could be better!)

Leave that first line as it is:

// Hide the display...
this.display._visible = false;

And add this bold one, in this section:

... } else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.display._visible = true;
this.display.loadbar._visible = true;
this.display.loadbar._xscale = percent;
}else{ ...
Regards,

oldman3.gif
 
Oh! And one other thing!
As you may have noticed, as coded, this will load your movie in an empty container movie clip, not on another level! so references to root will not work. you would have to change all your references to root to include the container movie clip.

Thus, _root.gotoAndPlay("label"); would have to be changed in the loaded movie to: _root.container.gotoAndPlay("label");

Hope that was clear! Regards,

oldman3.gif
 
Well that is not good, all that re- arranging and it still is not right..This preloader doesn't show up until about 18% and goes away at 94%..Tested about 5 times with clear cache..Still not a accurate count!

thanks anyways!

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Yeh I got the paths problems understood, no big deal, now if I can get it accurate I will be happy!
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Well, you're on cable as I am, right? So depending on what's envolved in that movie, yes a fast connection might show up fast jumps in the loading percentage. But if you checked these files on a slow connection, as I do because I also kept my 56k dial-up to check on these, guess you wouldn't see these jumps only caused by your fast connection.

Anyways, as I said it also depends on the size of the movie your loading.

Check this one, and you should normally see very close to 1 percent displayed up until at least 99, which you will admit is pretty close to 100% on a fast connection!

Regards,

oldman3.gif
 
And stop beeing so grumpy! [pipe]

After all, all this stuff ain't a cure for cancer! Regards,

oldman3.gif
 
Yeh that one showed up pretty good..The movie I'm loading is only 75k so that's probably it..Will load smoother at slow rates, which is the target audiance so we should be fine..


Hey i'm guessing about a year ago there was mention here of a program that turned mpeg's into vector animations..

Do you remember what that was?
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top