Attention Wizzits!

this site!

go to flash - multimedia -

mamablue has a preloader that shows only 37 K - the .swf is like 3 megs.

???
thanks Wizzits!

Whats the code for your preloader?

Just looks like you’ve given the wrong value to the dynamic text box.

Regards,
Viru.

the preloader is a generic one (in components)…i think from macromedia.

Even so components still use action script. So try and find it pls.

It’ll be useful for us to read.

Regards.
V.

oh…nk. here ya go: (thanks!)

//----------------------------------------------------------------------------------
// © 2002 . Armen Abrahamyan . armen@abrahamyan.com -----------------------------
//----------------------------------------------------------------------------------

#initclip
function LoaderClass() {
this.slideColor = new Color(this.slide);
this.bordColor = new Color(this.bord);

this.update();

}
//
LoaderClass.prototype = new MovieClip();
//
LoaderClass.prototype.update = function() {

this.slideColor.setRGB(this.scolor);
this.bordColor.setRGB(this.bcolor);
//
this.bord._width = this.SlideWidth+4;
this.slide._width = this.SlideWidth;
this.bord._height = this.SlideHeight+4;
this.slide._height = this.SlideHeight;
//
this.createTextField("mytext", 1, this.bord._x, this.bord._y, 300, 40);
delete this.mtextFormat;
this.mtextFormat = new TextFormat(this);
//
this.mTextFormat.font = this.fname;
this.mTextFormat.color = this.bcolor;
this.mTextFormat.size = this.fsize;
this.mytext.text = "";
this.mytext.setTextFormat(this.mtextFormat);
//

};
//-----------
LoaderClass.prototype.setSlideWidth = function(b) {
this.SlideWidth = b;
this.update();
};
LoaderClass.prototype.getSlideWidth = function() {
return (this.SlideWidth);
};
LoaderClass.prototype.setSlideHeight = function(h) {
this.SlideHeight = h;
this.update();
};
LoaderClass.prototype.getSlideHeight = function() {
return (this.SlideHeight);
};
LoaderClass.prototype.setTintColor = function© {
this.tcolor = c;
this.update();
};
LoaderClass.prototype.turnOnTint = function() {
this.applyTint = true;
this.update();
};
// Connect the class with the linkage ID for this movie clip
Object.registerClass(“Loader”, LoaderClass);
#endinitclip

Hmmm… i’m not too sure. Where did you get the preloader from?

V.

macromedia, i think…

got any other preloaders hanging around i might grab?

I dont tend to use components. Mainly because i can make my own preloader and more importantly it adds bulk to you swf.

Sorry.
V.

So much code for a preloader…you can do it in like 10 lines. There are a bunch of tutorials on kirupa that will explain how.

Well not really, i cant see anything there that can be taken away. Afterall, components are built so they are flexible and easily customisable.

V.

Yes but to add you own its pretty straightforward. I’m very biased against components. I have had too many bad run-ins with scroll panes and such. Pain in the ***.

Only if you’ve learnt how to make one. When i started out back in the day i took me a little while to fully understand how it all works.

V.

Thats true. I’m actually still working on mine =). Got almost everything done so pretty soon it should just be drag and drop into wherever I need it.

picked this fla up here a few weeks ago, I want to say wither claudio or st.cleeve created it, but not really sure.

TD

thanks to all!

i’ve gotten a new component from macromedia that woiks like a charm. check 'em out. thanks again.

*Originally posted by tobydog *
…I want to say wither claudio or st.cleeve created it, but not really sure.

Just to say thats lostinbeta’s preloader.
Give him the credit.

:slight_smile: