# How can i put a preloader between loading pictures?

**URL:** <https://forum.kirupa.com/t/how-can-i-put-a-preloader-between-loading-pictures/215105>\
**Category:** flash\
**Created:** [February 4, 2007, 12:21pm UTC](https://forum.kirupa.com/t/how-can-i-put-a-preloader-between-loading-pictures/215105 "2007-02-04T12:21:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tris3d](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@tris3d](https://forum.kirupa.com/u/tris3d)\
**Post date:** [February 4, 2007, 12:21pm UTC](https://forum.kirupa.com/t/how-can-i-put-a-preloader-between-loading-pictures/215105/1 "2007-02-04T12:21:40Z")

</div>

Hi there, I have a photgraphy site and on the portfolio section i have a border that adjusts to the photo size when a button is pressed. Below is the code on one of the thumbnail buttons…

Basically i’m wondering if theres anything i can add to this code to set off a preloader when release is hit or at least a movie clip that has a “loading please be patient” picture on so that people are not waiting with a blank screen for the photo to appear. Does this make any sense?? :huh:

[COLOR=navy]onClipEvent (load) {  
newWidth = 467;  
newHeight = 350;  
menuText.text = newWidth+“x”+newHeight;  
menuBg.\_alpha = 30;  
}  
on (rollOver) {  
menuBg.\_alpha = 50;  
}  
on (rollOut) {  
menuBg.\_alpha = 30;  
}  
on (press) {  
menuBg.\_alpha = 30;  
//bounce the box.boxShadow movie (param, endingVal, clipName, speedFactor, bounceFactor)  
\_root.bounce("\_width", newWidth, \_parent.\_parent.boxBg, 10, .6);  
\_root.bounce("\_height", newHeight, \_parent.\_parent.boxBg, 10, .6);  
//Note: This is also where you would load a jpeg or external swf into the boxMovieHolder  
//\_parent.\_parent.boxMovieHolder.loadMovie(“swfname.swf”);  
\_parent.\_parent.boxMovieHolder.loadMovie(“images/fern.jpg”);[/COLOR]  
[COLOR=#000080][/COLOR]  
[COLOR=black]Many thanks[/COLOR]
