# Applying transitions to jpgs loaded dynamicly

**URL:** <https://forum.kirupa.com/t/applying-transitions-to-jpgs-loaded-dynamicly/149161>\
**Category:** Uncategorized\
**Created:** [May 26, 2005, 2:25pm UTC](https://forum.kirupa.com/t/applying-transitions-to-jpgs-loaded-dynamicly/149161 "2005-05-26T14:25:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcwilde1](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jcwilde1](https://forum.kirupa.com/u/jcwilde1)\
**Post date:** [May 26, 2005, 2:25pm UTC](https://forum.kirupa.com/t/applying-transitions-to-jpgs-loaded-dynamicly/149161/1 "2005-05-26T14:25:17Z")

</div>

**1st Question:** I have a very small image gallery (4 images) Right now it works fine, but I want the images to be dynamic instead of in the Fla file. I can do this but the preloader I made from a tutorial in Kirupa doesn’t seem to show the loading progress, I only want the text % to show not a bar. Right now it just puts the image in the container but doesn’t count up in the text box called pText.

The code I got is:  
this.createEmptyMovieClip(“container”, “100”);  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {  
trace("started loading "+targetMC);  
container.\_visible = false;  
pText.\_visible = true;  
};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {  
pText.text = “% “+Math.round((lBytes/tBytes)\*100);  
};  
preload.onLoadComplete = function(targetMC) {  
container.\_visible = true;  
pText.\_visible = false;  
trace(targetMC+” finished”);  
};  
\*\*2nd Question:  
\*\*Once the image is loaded how do I apply the transition effect that I have on them right now, when I pull it into the mc it ignors the “\*\*BounceEffect();” \*\*function which I have created.

Help would be much appreiciated!:tired:
