Search  

WILDWISE IMAGE AND SWF PRELOADER

HomeBrowse CategoriesFlashPreloadersAnimation Basedwildwise Image and SWF preloader

VERY SIMPLE TO USE :
1. Just change 2 variables if you want to load another content (see code on buttons).
2. Just drag and drop the loader where you want and copy AS on the same frame.

It’s vector-based design, so you can resize it, change colours or font easily. Just go into the library movie clips.

Used and provided font is free on www.dafont.com

-----—-

This preloader creates an emptyMC (but you can create your own) to load the content you chose.
By getting this file, you could learn how to use a MovieClipLoader object. How to dynamicly create a “onEnterFrame” function on a movieClip to make it appears with ease once preload is over, if the MC contains an image. If not, you’ll play the SWF you loaded.

Posted about 1 year ago

Dope!

Posted about 1 year ago

Yes, very nice wild!

Posted about 1 year ago

Thank you guys :)

Posted about 1 year ago

Yeah. What unovis said.

Dope!

It truly is a very nice preloader. I am going to purchase it.

Posted about 1 year ago

Yeah. What unovis said.

Dope!

It truly is a very nice preloader. I am going to purchase it.

Posted about 1 year ago

Dude. How the do I center the files that are loaded into the “container” clip?

I’ve tried everything I know.

Posted about 1 year ago
once the container is loaded (onLoadInit function) you can assign to your container (called “targetMc”;) the place you want :
clipListener.onLoadInit = function(targetMc:MovieClip) {
   if (targetMc._parent.isSWF == false){
      targetMc._parent[part2load].fadeIn = function(){
         this.onEnterFrame = function(){
            if(this._alpha<100){
               this._alpha+=5;
            }else{
               this._alpha=100;
               delete this.onEnterFrame;
            }
         }
      }
   }
   targetMc._parent.myLoader.play();
   targetMc._x=HERE THE VALUE YOU CALCULATED FOR YOUR MC TO BE CENTERED;
   targetMc._y=HERE THE VALUE YOU CALCULATED FOR YOUR MC TO BE CENTERED;
}


If the content you loaded is a SWF , you have to put an “invisible background” (like a colored rectangle with 0% alpha which is the size of your SWF , once the animation to display it is over) on the first frame (which is normally empty). It will allow you to know what the size of the content is before you played it, so you can calculate & place it on the center of the screen.



Enjoy :)

Posted about 1 year ago

Good work dude

Posted 12 months ago

AH! So it WAS the targetMc! I was trying to center the “container”mc. Cool. I’ll try that then.

Posted 12 months ago

Hey Wild Thank-you for a great file! Some people can write good code, and some people design well – but looking at your portfolio – you seem to be able to do do both extremely well!!

Posted 12 months ago

Thank you dude, I appreciate :)

Posted 11 months ago

Oh yeah. Once again I have a question to ask. Would specifying the dimensions of the targetMc(container) be similar to specifying the coordinates? I mean, in the same area that I would place the coordinates?

Posted 11 months ago

yep, your targetMc has to be loaded to modify its dimensions so you have to do it in the onLoadInit

Posted 11 months ago

Big help. Thanks.

Posted 11 months ago

alright. Got that working. Now I have another question… if you don’t mind my asking. Using this preloader, I thought it might be possible to create a transition by creating a function inside the preloader code. I was looking at it and saw … //////// loading function _global.loadPart = function() { // remove MC of a previous loaded content container.removeMovieClip(); //////////////

If I wanted to create a transition and call the function from a different source(button whatever…;), would I have to create the function just before the movieclip is removed? Or make the function iside the main _global.loadPart function and call it when the transtion is finished… I don’t know. I’ll try it out.

Posted 11 months ago

Wicked preloader! 5 stars all day, hit me off with that free file at srajoon@gmail.com

Posted 7 months ago

Hi!

The file works great as it is, but what if I want to put this code inside a different MC … what needs to be changed? Cheers!

Posted 7 months ago

Very nice file. Excellent comments and easy to use. Thank you! I have a similar request to URanimEnigma where I would like to center the loaded swf, but I was hoping to know how to do that dynamically versus having to calculate the x and y values manually every time. Can you help me with the code for this?

Thank you.

Posted 3 months ago

Never Mind. Figured it out. I was running into issues because my main swf is being centered in the browser and is actually a swf that takes up the whole browser page. Your loader is actually living in another movie clip, and to make my life easy, I ended up using a fullstage background element in the mc itself to center my loaded swf:

targetMc._x = bgelement._width/2-targetMc._width/2; targetMc._y = bgelement._height/2-targetMc._height/2

Thanks again for the file.

Posted 3 months ago

Awesome file! ... Question: How could I get my main page “home.swf” to load automatically when my site loads up with this preloader? thanks

Posted 3 months ago

there’s a function which is called when you press a button. Just call the same one with the name of the file you want, “onLoad”. It will load automatically.

Posted 3 months ago

I still can’t get it to load automatically?? Can you elaborate on the script a bit please? I’m still a “rookie” with actionscript lol.. thanks

Posted 3 months ago

How do modify this script to get my main page “home.swf” to load automatically when my site loads up with this preloader? I’m not sure how to re-format this with “onLoad” ... thanks

on (release) { file2load = “home.swf”; isSWF = true; _global.loadPart(); }

Posted 3 months ago
just place this code on the frame you want your swf to load :
file2load = “home.swf”;
isSWF = true;
_global.loadPart(); 
It should work well Posted 3 months ago

Sweet!! It works, thanks!

Posted 3 months ago