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

Swf's talking to other swf's...on other levels 1

Status
Not open for further replies.

Ossi

Programmer
Oct 16, 2001
17
US
I am trying to make a universal preloader. Basically one that can be used for any swf coming into my main swf. Is there a good book that has this info as far as .. Getting the bytes loaded and total bytes of the certain swf coming in to the main swf on a certain level??

Ossi
 
Sort of answered that question in this thread250-179463.
Just replace the _root.target stuff, by the level on which you'd be loading movies.
The priciple remains the same. Frame by frame, the main movie preloader loads each individual movie on a level, which rather than playing when it has preloaded, returns control to the main movie preloader, which then loads the next movie.
All these movies have their own preloaders and are stopped on frame 1 with a stop action. Once all the movies have been preloaded, you can then control all of them through the main movie.

Regards,
wink4.gif
ldnewbie
 
just add the same pre-loader in each movie loaded..will give you the same effect..less work..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
the percentage text reached 100 before the girl filled up just so you know..it's not right..the two are off a little old..might want to have another look at that..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
My mandate was to get the loading percentage of the being loaded movie on level 5 to appear in the mcs on level 0, and not to correct the other flaws (which by the the way, the filling up insn't the worst! - it's close enough...) of Eric's concept and design. :p

Didn't like my correction on the invisible button stuff, did ya?

Seasons Greetings anyways!

Regards,
wink4.gif
ldnewbie
 
I am impressed Oldnewbie

As far as the fill the reason it is off is cause when i first started with fills...i was using a tween instead of a scale...which since then i have changed so it is exact now. when this sight is finished ill give you guys the url so you can tell me what y ou think.

/cheer OldNewbie!!!
 
Ossi,
Simply add the bold to your first frame of any to be loaded movies:
Code:
if (Champ == 100)
	{
	gotoAndStop (3)
	}
Champ = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100);
Code:
display = Champ+"%";
_level0.slide.Yo.Percent = display;


Regards,
wink4.gif
ldnewbie
 
didn't like your corrections?.or just your perception of what is the right way?.does one work better than the other?.

or could it be that someone is just not in the christmas spirit and has to be ANAL..............
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
tested both by the way..neither way is faster than the other or more effective than the other..hmmmm.....back to that whole grinch thing again..

merry christmas and happy holidays..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Hey! Is it Christmas already?
If it is great! I should be recieving a present from a certain Carl! Or maybe he has second thoughts about it!

Don't really know, if it makes any difference. The alpha thing may be a little more harder on the processor, but in the end both should work! I was merely pointing out the fact that what's the use of setting the other states to alpha 0, when you don't really need anything there in the first place! Less work, that's all!

Have to finish my tree, catch you later!

Regards,
wink4.gif
ldnewbie
 
Thanks Oldnewbie ~_~

Happy holidays!

Ossi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top