Image Preloader
Hi, I recently got a slideshow working on my site, http://www.selectdigitals.com. The show is based on the tutorial, Photo Gallery Using XML and Flash and the code for my show is essentially the same as in the tutorial. I particularly like the display of each image as the initial download takes place as this insures that viewers do not have a long wait for all of the images to download before the show starts.I would very much like to add some kind of image preloader for the initial image download so that, as the current image is being displayed, the next image could be downloaded for display after the first image display interval expired. That would mean that there would likely be no delay between images even on the first cycle through the images. On my broadband connection, there is about a 3 second download delay from the server for each image. Since my display interval is something like 15 seconds, there would be plenty of time to preload the next image even on a substantially slower connection.Does anybody have any ideas as to the best way to go about this? I have FLASH8.Thanks in advance,Royce
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 09-21-2006, 12:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Image Preloader
yo just to say iam new to this board ,
and that i have a slight prob with a preloader .
i already have a working preloader for the main movie/site itself however i need a preloader that preloads images when some one hits a button to view that image as the images are pretty big .. i seen on many flash sites there are more small preloaders for menu's and images etc .. can someone please tell me how i would go about doing this ..
many thanks .
Image Preloader.........
did someone know how to make a image preloader in Flash MX when i load the image from external? just like loading the external SWF, but now i need the preloader for image, anybody help????
Image Preloader Help
Can somebody help me to solve those problems below?
You can download my FLA file first......
My problem like this:
1. A "image preloader" when the SWF file play and load the "external.jpg" into the SWF.......
2. The "external.jpg" is masking by the "Mask" layer.....
Thank you very much if you can solves the problems above for me, and please mail me back the "imagePreloader.fla" you edited as references for me, thanks again!!!
my email : steven11@pd.jaring.my
Image Preloader
hey everyone,
i've scoured the forums for an answer to this, and i think i got close with one but i still can't quite figure out how to do what i want to do.
here is what i have:
1 movie clip with 4 buttons, and an image place holder, of sorts (it's just a white box).
when I click on button #1, I want an image to appear over my placeholder.
Ok, that's the easy part. I set up the actionscript for the button to be this:
on (release) {
_root.holder.loadMovie("test.jpg");
}
now, here is where i get stuck :
before the image appears over my placeholder, i want a progress bar to indicate how much of the image has been loaded.
How do I do that? Please explain in simple terms!
I know how to make a progress bar for a movie, but not for a dynamic image.
Thanks for your help,
wetodit
Image Preloader
(using MX)
I am loading .jpgs into a movie using
Code:
this.createEmptyMovieClip("holder",1);
// position movie
holder._x = 30;
holder._y = 85;
//load the external movie into the new movieclip
holder.loadMovie("http://www.noeink.com/cobalt/images/1.jpg");
What is the easiest way to build either a progress bar, or a percent loaded?
Thanks
Image Preloader
so i'm trying to figure this out... and the idea i had been working on in my head for several weeks didn't work. now i'm stuck.
here is what i am trying to do...
i'm setting up a photo gallery on a website. i want the buttons to load in jpegs into an empty target clip. this i can do. now what i want to have happen is there to be a preloader that tracks the progress of the image as it loads... this is where i have problems. i know i can dump each image into an swf file... but i'd prefer to not do that.
any suggestions?
Preloader For JPG Image
How can I create a preloader for a .Jpg Image. I am loading a .jpg image using "Loadmovie".
Please help me
Preloader For JPG Image
I have designed a photo album. The image in the album loads dynamically.
Now the problem is that after uploading the file the pictures takes lot of time to load and by then there appears nothing. So I want to create a preloader so that users could understand that picture is loading.
Also there are 10 pictures and I want all the pictures to appear in seauence. That is to say there should appear preloader for first image and when the image appears and then disappears then there should appear preloader for number 2 image and then number image and so on.
Pleas help me with this. I have attached the files.
Thanks
Salim
Image Preloader
I run a site called http://www.withbeans.com and I was wondering if there is a way to have an intro page that will preload all of the images for the site. I want to give my users the option of preloading or just going staight to the site. Any help would be much appreciated.
http://www.withbeans.com
Image Preloader
Is it possible to have a preloader that is an image which becomes whole has it loads.
ex- You have a man- all there is, is feet, but slowly you get legs and the rest of the body.
I really qwould like to have this with a precentage thing too. If this is possible, please help me.
Preloader Out Of My Image
I have a movie clip where a circle spins in a circle with shading and stuff, but, i want to make a preloader with that so i can use it on my site. I just need it to keep rotation until the page loads. Can anyone help me?
I attached the circle.
thanks
Image Preloader
Ok, I fixed my initial problem, and got my thumbnails to load correctly, now I just am having trouble on the preloader aspect.
How do I setup my listener to tell a textbox to constantly give me the % of the image being loaded.
New Preloader For Each Image
yeah, well, makin a website and i got a thumbnailbar, and when i click a thumbnail i want it to load that pic with a loading bar, (i want the first preloader to load the siter interface but not all the big pics). couldnt find any tutorial on how to accomplish this ;/
help would be greatly appreciated
Add A PreLoader To An Image.
Can any one help me?
I want to add a preLoader to individual images in a flash movie. For example, all the image will be on the site, in separate category's. i.e. "photography", design, "wedding photography" and a whole lot more. I don't want to add a preLoader to the start of the movie, it will take to long. I want a preLoader on each image. A person will click on a category, be taken there, the first image will show up, with preLoader, move the mouse to see the menu of all the images click on the one they want, it preLoads and so on and so on. Hear is a perfect example of the effect I'm after>
http://abbyross.com/
Can anyone point me in the direction of a good tutorial that can help me??
Preloader For Each Image
Hi guys
I've been using Senoculars portfolio as a gallery and it's working just brilliantly... However, I would like for a preloader to show the progress of the loading image as it is clicked instead of the static 'Loading...' text on the layer below the image, appearing in the background.
Is there anyway to impliment this... a dynamic preloader I mean?
/mette
Image Preloader
Hi,
i wish to make a preloader which is an image filling in from the bottom up.
I have seent this cool effect, but can't find any tutorial on it.
I can make it easily by creating a MC and adding preloader script [i found the tutorial for that] but it just loops.
I would like it to be like a bar-loader, except the image fills in [corresponding to how much has been loaded]
For demonstration's sake, i have added the image i wish to use
Thank you
Image In Preloader
I want an image to glide through my screen as a preloader (see image below)...anyone know how I can make this happeN?
Possible To Use Image In Preloader?
Hi,
I'm wondering if there any possiblity to use an image in my preloader, not as the preloader, but just as a static image? (see attached image)
If it's possible, how do i do it? thx...
Xml Image Preloader?
Hi guys, I'm relatively new to flash action script and am currently working on an xml powered image gallery. I want to be able to animate thumbnails called on through xml but haven't had any success. I am using mcTween and It looks like I need to preload the images before this will work. Has anyone had any experience with this before? If so do you have a script for me?
Thanks for your time,
meal.
Image Preloader
Is there a way to make an image proloader so that it could read the bytesloaded and the bytestotal from an external file (it sould work for either .swf or .jpg). I try testing with the bandwidth profiler, but it loads the image right away. Any help would be great.
-King
External Image Preloader
Hello Flashers,
I got a question about external image preload.
I got it the way to make them load in a MC imageholder and to navigate in it.
How can i integrate a preloader that when i click the next button
That a preloader shows up while loading the image.
And also that when there are no more images that the loader says :no more ,....
But second part is not so important.
I Just dont know how to preload those jpgs. I tried to integrate a preloader i got but it doesnt work.
Does anyone have a tut or example for this?
Anything would be very apreciated
Cya,
Sky
Load Image Preloader?
http://www.sweetarteest.com/
THIS IS MY PERSONAL SITE FOR TESTING. THIS WILL BE THE UPDATE FOR WWW.FORCEFULWORLD.COM.
OK BEFORE I'M TOLD, I KNOW THE BUTTONS AREN'T ALIGNED AND THERE'S NO OTHER CONTENT WHEN CLICKIN ON THEM.:-)AND I KNOW THE PRELOADERS SUCK.:-)THE SITE ISNT COMPLETE.
I HAVE A QUESTION REGARDING THE LOAD IMAGE PART OF THIS SITE. I TEST IT AND SEE THAT THE JPG TAKES LONGER TO LOAD...CAN IT BE PRELOADED ALONG WITH THE FLASH CONTENT?
-SWEET
Image Preloader Problem
Hello,
What I want to do is create an image preloader for a Flash movie. For this reason, I am loading a number of (ten) JPEG images as movie clips, dynamically, using:
Code:
if (img <= 10) {
this.createEmptyMovieClip("image00" + img, img);
eval("image00" + img).loadMovie("image" + img + ".jpg");
}
The code above worked. I was able to load this set of images, but when I wanted to load into a text field how much of those images had already been downloaded (I used eval("image" + img).getBytesLoaded()), it only displayed a "0" or a "-1" (when it should be displaying the amount of bytes loaded so far).
Someone has told me that I can only use this command inside a <movie clip>.onLoad() handler, but using eval("image" + img).onLoad() didn't work either.
What am I doing incorrectly? I will appreciate any comments on what is causing this problem.
Regards,
R. C.
Preloader For External Image?
I would like to make thumbnails of images and then have buttons to make them bigger. I have linked all my images externally but when it loads them up it is laggy, so to fix this I thought maybe a preload for each image would be nice. How would I go about doing this?
Thanks in Advance
External Image Preloader
I would like to have a preloader for my externally linked images that i have on my flash file. I have about 60 externally linked images that i would like to have preloaders on so that they dont lag, could you help me out? Thanks
Preloader With Custom Image
I have this project I'm working on, in which I will need a superbly animated intro. The file size will be large, and I need a preloader. I don't know too much about them, but I was wondering if it would be possible to use the file I provided as an indicator as to how much is loaded.
External Txt Image Preloader
I have a sort of image gallery that loads images that are defined in a *.txt
That all works fine, but because there are up to 30 different image galleries eac one has to be preloaded seperately.
My question is.
Is it posible to make a preloader with a bar that goes from 0% loaded to 100% loaded in combination with a external txt loader?
I use this code to get the images from the txt:
for (i=1; i<=max_aantal; i++) {
_root.Gallery["win"+i]._visible = false;
}
newLoad = new LoadVars();
newLoad.onLoad = function(success) {
if (success) {
for (i=1; i<=aantal; i++) {
loadMovie(newLoad[projectnummer+"link"+i], Gallery["win"+i]);
}
}
};
newLoad.load("myLinks.txt");
loadVariablesNum("myLinks.txt",0);
Gallery.gotoAndPlay(1);
External Txt Image Preloader Bar
I have a sort of image gallery that loads images that are defined in a *.txt
That all works fine, but I want a preloader bar while loading the images. The code has to get the bytesize of the images I think and then calculate how long it's going to take.
My question is.
Is it posible to make a preloader with a bar that goes from 0% loaded to 100% loaded in combination with a external txt loader?
I use this code to get the images from the txt:
for (i=1; i<=max_aantal; i++) {
_root.Gallery["win"+i]._visible = false;
}
newLoad = new LoadVars();
newLoad.onLoad = function(success) {
if (success) {
for (i=1; i<=aantal; i++) {
loadMovie(newLoad[projectnummer+"link"+i], Gallery["win"+i]);
}
}
};
newLoad.load("myLinks.txt");
__________________
Preloader For A Jpg Image File
Hi:
I want to embed a jpg file into a flash movie and add a preloader.
I want to use the code:
loadMovie("foto.jpg", 1);
to load it in my main movie.
1.
With actionscript can I determinate the size of this .jpg file?
2.
In my main movie i create the moviclip: photo.
Photo is just an empty moviclip
I use the code:
loadMovie("foto.jpg", photo);
to load my jpg file into the moviclip foto
Then i try to know the file size using
photo.getbytestotal();
but it doesnot work....
3.
I want to create a preloader for jpg files.
I DON WANT TO IMPORT MY JPG TO FLASH AND THEN GENERATE A SWF WITH MY JPG INSIDE.
Can it be done?
Thanks
Preloader On A JPEG Image
Hello,
I was checking this forum for info on preloaders, but couldn't answer my question. Can a preloader be applied to a dynamically loaded jpeg? The image loads a couple frames after it should (late) so it pops into the sceen late. I want to hold the playhead until I know the jpeg is there. Then go next.
Most of the preloader stuff seems to look at swfs or total frames in the movie. This is just an image and the images vary in file size from 40k to 65k.
This is the code I am using now
loadMovie("pics/SLSS-09.10.04.jpg", "JPGplaceholder");
This works fine, just the images pop in to the scveen a bit late.
Any help will be appreciated.
Fill Image In Preloader
Would anyone be able to explain to me how I can take a grayscale image and have a color image load as part of a preloader? For example, say I have a grayscale photo of a rose and the same photo in color. I would like to position both photos in the same place and display the grayscale photo when the flash file first opens, then have the grayscale rose fill with color as the movie loads. In other words, once the rose is fully colored, the movie has loaded. Make sense?
I have designed a couple of preloaders in Flash MX Professional 2004, but I am relatively new to ActionScript and can't figure out how I can use two images to accomplish this task. I have seen it accomplished on other sites, but haven't been able to find much info on how to do this. Any help would be much appreciated. Thanks!
Preloader For An External Image
I want to have a button in my movie so that when i click it, it loads an image into the movie, but i want it to have a preloader so that everyone knows how big the file is etc.. is there a tut or something around.
Gallery Image Preloader Help
This is how i have the gallery working. It may be totaly wrong but this is the first time iv done one and most of the stuff is an adaptation of a tutorial or something.
i have thumbnails on the left side of the screen. So when you click a thumbnail a picture and a discription of the picture apear. So here is the code im useing.
**this is to move to the frame i have the text part on**
on (release) {
//Movieclip GotoAndPlay Behavior
this.gotoAndStop("1d");
//End Behavior
}
**this is to load the image dynamicaly into a containerClip**
}
on(press){
containerClip.loadMovie("webimages/full1.jpg");
}
So when you click the thumbnail the text changes and containerClip loads which ever image you clicked.
Alright hopefuly you understand how its working. Now like i said i just want to see the percent that has loaded of the image that is being loaded into the containerClip (in this case it is full1.jpg)
Thanks so much. Iv been really struggling to get this to work.
External Image Preloader
OK, so i have a flash file that is set up to automatically load an external image from a website. And then it plays an animation of it coming from the side. That is not the problem. The problem im thinking is with some slower users they may see the animation play out, as there is a boarder set up to display, but there will be nothing inside the boarder, because their connection is so slow that it didnt load the image on time. So is there any way to have a progress bar display the download progress, and when it get to 100% have it play out the animation? Sorry if im rambling haha
Image Switching As Preloader..
well i could not find any reference about this so i decided to seek for help here.
I only able to make the typical preloader which have the loading bar and %, but this time i want something different which i can't figure how to solve.
During the loading, as the percentage increases, it shows different of images.
Example:
30% = show image01
60% = show image02
100% = show image03
Any idea anyone ?
thanks
Fade Image With Preloader
This is the situation:
I have a flash movie with some frames to be loaded and that's no problem, my problem is that I would like to fade an image according with the loading process, something like:
When frame 5 is loading an image will fade from 0% to 100% and the same thing for the other frames.
Any solution for this?
Background Image With Preloader
Hi,
I'm using a background jpeg which scales to fit the browser window automatically. I want to add a preload bar to show the user that it's loading. When I add one the following code doesn't seem to work. Does anyone know how to add a preloader. An example I have seen is on http://www.hi-res.net
Thanks
PHP Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";
this.onResize = function() {
this._width = Stage.width;
this._height = Stage.height;
};
Stage.addListener(this);
this.onLoad = this.onResize;
Advanced Image Preloader
hello
you need to go here to view my problem:
www.jonathnapilling.co.uk
once there, click on photo gallery in the navigation bar, then click on the thumbanil image. Now you'll see that a large image loads up. What i want to do is when the thumbnail image is clicked a preloader is displayed befpre the large image showing the loading progress of the large image. Are there any preloader gods out there who can help me??
thanks in advance
jp
Image Preloader, Is It Working?
I am creating an image viewer, but its more complicated than just a simple slideshow. It has different animated transitions and different text overlays. What I am trying to do is create an image preloader to load all images when the flash first loads. I think I have done this, but I'm not 100% sure its working right. I have a movie clip which contains a series of movie clips within it, one for each image. I load an image onto each of those movie clips. (eg. holder_mc.mc1, holder_mc.mc2, holder_mc.mc3, etc) Then once everything is loaded I begin the animation which moves through the images using transitions and various text. During this animation I am alternating between two other movie clips and am loading the image paths using:
mc1_mc.loadMovie(imagepath);
The question I have is, since I loaded these images into a movie clip earlier, is it using a cache of this image now or am I still just loading the image from the server every time I do that? I have tried uploading it but its hard to tell with my high speed internet if its using the cache or downloading each time. I have also tried simulating the download, but it seems to do something a little different each time.
Is there another way to use the images that I have stored in the holder_mc?
The other problem I'm having is with my MovieClipLoader. For some reason it won't call code in the onLoadProgress, but it will call code from the onLoadInit. Any obvious things I should check?
I do appologize for the lack of clarity. Its very hard to communicate all the problems without plunking in all my code, which I'm sure nobody wants to see.
Making A Preloader From This Image?
Hello,
can somebody help me to make a preloader from this image?
I could only place the entire image on the file, but I had the right code (I think :- ). I also would like to put a pece,tage under it, but once I have the other part, the percentage is easy to add.
I would like the image to be build up (from below to above) while the site loads.
Thanx for the help,
greetz
Nitrousion
Claudio, Help With Image Preloader
Here's what I PM'd Claudio, but if anyone can help, I am all ears... thanks!
Quote:
hey claudio,
I was just looking at one of your past posts talking about a preloader for images and I actually implimented it.
http://www.kirupaforum.com/forums/sh...mage+preloader
It works great, but just one small question I have... when I am testing it out, I click on my button to load the image, and there is a static '100%' there as the 1 meg image loads (for testing purposes of course). But if I click the button twice, THEN it shows the percentage going up as it loads it. I was wondering if you could help me with that?
You can take a look at what I have right now by going to
http://www.eternaltomorrow.com/quinn/Hope.html
Thanks guys, I appriciate any help with this. If anyone has an image preloader that works better than this, i'm up for that change as well!
Danno~
Flash Image Preloader
Hi -
I'm pretty new to Actionscript and I have a question. My goal is to have an intro movie that will load images, sounds and the short "exit movie" into the browsers cache.
Is Actionscript for Flash MX capable of such a task?
I'm an experienced web developer and know how to do this in javascript, however, I want to add a few subtle "bells and whistles" to a site I'm working on by using flash.
Thanks for any help!
External Image Preloader PLEASE HELP :(
http://www.chilota.com/test/intro/intro2.html
Each frame <script> loads its own .jpg image, and all the instances stars with alpha value of 0 then 100 - 0 .
The problem :
the animation plays smooth on my computer, but I need a preloader that can load all the image in advance so the movie can play smoothly on the internet.
Source Files :
RAR = http://www.chilota.com/test/intro/intro ex.rar
ZIP = http://www.chilota.com/test/intro/intro ex.zip
Image Preloader *sigh* (again)
alright here's the code
PHP Code:
this.createEmptyMovieClip("preloader", 1000);
this.createEmptyMovieClip("container", 1001);
with (container) {
loadMovie(_root.picture);
_x = 240;
_y = -60;
_xscale = 35;
_yscale = 35;
_visible = false;
}
preloader.onEnterFrame = function() {
var l = container.getBytesLoaded();
var t = container.getBytesTotal();
var getPercent = l/t;
loadText = Math.round(getPercent*100)+"%";
loadBar._width = getPercent*160.5;
if (l>0 && l>=t) {
container._visible = 1;
loadText = ""
loadBar._visible = 0;
lostinbeta: i thought it was working yesterday but then it really wasn't so i need help figuring out what's wrong with it
the preloader shows like it's supposed to for the first image. but when subsequent images are called then loaded, the preloader doesn't show. yes i cleared my cache
--------------------edit-------------------
you can see the problem at http://www.aaronsleeper.com
Image Gallery Preloader
I used the learnFlash tutorial "Loading Images Dynamically" to create an image gallery and wonder if someone could steer me in the direction of a tut that would help me preload my images when the thumbnail is clicked. You can view my image viewer here: http://www.junkerjorg.com/junker_viewer_II.html
Thank you in advance!!
External Image Preloader Help?
Hey,
Can anyone tell me how to attach a preloader to a mx.control.Loader,,, so when Click a thumbnail for an image a preloader can be called and displayed and load the external image??? Help Please!
Here is the AS on my buttons if it helps
Quote:
on (release){
unloadMovie(imageHolder);
loadMovie("images/thumbnails/FullSize/12.png",imageHolder);
}
TileList Image Preloader.
So the tileList was made to display such things as images. How do you setup a preloader that shows the progress of the images loading into it? My tileList is loading from an XML doc.
Portfolio Image Preloader
I used a variation of the tutorial found at: http://www.kirupa.com/web/xml/examples/portfolio.htm to generate a slide show loading images from an .XML everything is working as it should, i would just like to add a couple of items which i am having trouble with. An example of where i am currently at can be found at:
http://www.mzarchitect.com/mz_projec...salvation.html
What i want to add are fade-in and fade-out effects for both the images and the buttons (which are movieclips) as well as a preloader for the images. The latter of the two items being the more important as the images can take a moment to load and i would like an indication that something is happening.
I have some actionscript for the buttons that seems like it should give me the fade-in and fade out effects i want, but it does not work. I also have some preloader code that i have used before, but i cannot seem to figure out where to place it to get to work for each image.
var btn_space = 30;
var btn_array = new Array();
var img_array = new Array();
function createBtn(images_xml) {
img_array = images_xml.firstChild.childNodes;
for (var i = 0; i<img_array.length; i++) {
var currentPic = img_array[i];
var currentBorder_mc = button_mc.createEmptyMovieClip("btnBorder_mc"+i, i+10);
currentBorder_mc._x = i*btn_space;
currentBorder_mc.attachMovie("btnBorder", "btnBorder"+i, 0);
var currentBtn_mc = button_mc.createEmptyMovieClip("imgBtn_mc"+i, i);
currentBtn_mc._x = i*btn_space;
currentBtn_mc.attachMovie("btnImg", "btnImg"+i, 0);
currentBtn_mc.image = currentPic.attributes.image;
btn_array[i] = currentBtn_mc;
currentBtn_mc._alpha = 0;
var activebtn_mc;
currentBtn_mc.onRollOver = function() {
if (this._alpha<100) {
this._alpha += 10;
}
};
currentBtn_mc.onRollOut = function() {
if (this._alpha>0) {
this._alpha -= 10;
}
};
currentBtn_mc.onRelease = function() {
activebtn_mc._alpha = 0;
this._alpha = 100;
activebtn_mc = this;
};
currentBtn_mc.onPress = function() {
imgLoad_mc.loadMovie(this.image);
}
this.onEnterFrame = function() {
loading = imgLoad_mc.getBytesLoaded();
filesize = imgLoad_mc.getBytesTotal();
if (percent == undefined) {
percent = 0;
}
percent -= (percent-((loading/filesize)*100))*.25;
per = int(percent);
percentage = per+"%";
if (percent>99) {
delete this.onEnterFrame;
}
};
}
}
images_xml = new XML();
images_xml.ignoreWhite = true;
images_xml.onLoad = function(success) {
if (success) {
createBtn(this);
}
};
images_xml.load("projImages.xml");
Thanks in advance for any help with this. I have looked through the tutorials and the forums and tried various things, i just cannot seem to get any of them to work.
Preloader Image Problem...
The below code works fine no errors but what I don't understand
if I use the Mc.LoadMovie(...) with a Url to a server to the same image file it won't work....won't resize image. But if I use the same image and call the image from my local harddrive it will resize and work perfectly. Don't understand why.
Works: ThumbNailMc.ContainerMc.loadMovie("pict0002.jpg");
Won't work: ThumbNailMc.ContainerMc.loadMovie("http://www.xyz.com/images/pict0002.jpg");
Below is a part of the code...
ActionScript Code:
for (i=0; i <= 0; i++){ThumbNailMc= _root.McHolder["ColorMc" + McColors[i]]; ThumbNailMc.ContainerMc= ThumbNailMc.createEmptyMovieClip("PicContainer"+i,i);ThumbNailMc.ContainerMc.loadMovie("pict0002.jpg");this.bytes_loaded= Math.round(this.ContainerMc.getBytesLoaded());this.bytes_total= Math.round(this.ContainerMc.getBytesTotal());this.getPercent= this.bytes_loaded/this.bytes_total;ThumbNailMc.onEnterFrame= function(){if (this.bytes_loaded >1 && this.bytes_loaded > this.bytes_total-10 && this.ContainerMc._width > 0 && this.getPercent >= 1){this.ContainerMc.ResizeImage(45,20);this.ContainerMc._x= (-1 * (this.ContainerMc._width/2)) ;this.ContainerMc._y= -1 * (this.ContainerMc._height/2);this.ContainerMc._alpha= 100;trace(this + "this")delete this.onEnterFrame;}else{this.bytes_loaded= Math.round(this.ContainerMc.getBytesLoaded());this.bytes_total= Math.round(this.ContainerMc.getBytesTotal());this.getPercent= this.bytes_loaded/this.bytes_total; }}//thumbnail... } //for
|