# Controlling/Transofmring Dynamically loaded pics(jpegs) - file attached

**URL:** https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102
**Category:** flash
**Created:** [February 5, 2004, 6:53am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102 "2004-02-05T06:53:13Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)
#### Post date: [February 5, 2004, 6:53am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/1 "2004-02-05T06:53:13Z")

</div>

Hey all,

I’m trying to create this polaroid development effect, which has been tweened, problem is I would kie the pics to load dynamically into a placeholder MC. This is fine, but the JPG loads, flashes upa nd then disappears, meaning the effect is rendered useless.

File can be got here:  
[http://www.thoughtography.net.au/temp/polaroid.fla](http://www.thoughtography.net.au/temp/polaroid.fla)

Please help :S

cheers.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 8:28am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/2 "2004-02-05T08:28:35Z")

</div>

Link doesn’t work…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 9:13am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/3 "2004-02-05T09:13:10Z")

</div>

d’oh, sorry file updated now.

cheers and please try again

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 10:43am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/4 "2004-02-05T10:43:54Z")

</div>

just in case

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 12:21pm UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/5 "2004-02-05T12:21:13Z")

</div>

Hi,

I’ve edited your file so it works.

The problem was taht in the firsts frames the mask didn’t exist.

SHO

PS.: can’t upload the file but the solution is to move the mask to the first frame

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 12:27pm UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/6 "2004-02-05T12:27:39Z")

</div>

cheers eki :thumbs:

fixed that part of it, now though it plays through then the pic appears. file has been updated.

here:  
[http://www.thoughtography.net.au/temp/polaroid.fla](http://www.thoughtography.net.au/temp/polaroid.fla)

or view the swf here:  
[http://www.thoughtography.net.au/temp/polaroid.swf](http://www.thoughtography.net.au/temp/polaroid.swf)

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 12:42pm UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/7 "2004-02-05T12:42:23Z")

</div>

any time

SHO

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 5, 2004, 9:08pm UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/8 "2004-02-05T21:08:45Z")

</div>

> \*Originally posted by ratbaggy \*  
> \*\*cheers eki :thumbs:

fixed that part of it, now though it plays through then the pic appears. file has been updated.

here:  
[http://www.thoughtography.net.au/temp/polaroid.fla](http://www.thoughtography.net.au/temp/polaroid.fla)

or view the swf here:  
[http://www.thoughtography.net.au/temp/polaroid.swf](http://www.thoughtography.net.au/temp/polaroid.swf)

🙂 \*\*

anyone?

or does it work and my connection is just too slow?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 6, 2004, 5:03am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/9 "2004-02-06T05:03:04Z")

</div>

anyone?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 6, 2004, 7:00am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/10 "2004-02-06T07:00:09Z")

</div>

ok then, perhaps someone can explain, how I would load the jpgs dynamically and let the size of these affect the preloader, i.e. only if the jpg is fully loaded will the swf file continue to play.

please

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 7, 2004, 6:30pm UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/11 "2004-02-07T18:30:06Z")

</div>

Hi,

Sorry for not answering before (I’ve been away from computers)

I couldn’t see your problem (fast conection)

I had a look at you file and what you want to do is change the code in the second frame of your movie where it says:

[AS]  
clipLoaded = getBytesLoaded();  
clipTotal = getBytesTotal();  
if (clipLoaded == clipTotal) {  
play();  
} else {  
loaded = Math.round(getBytesLoaded()/1024);  
total = Math.round(getBytesTotal()/1024);  
percent = Math.round((loaded/total)\*100);  
bytesLoadedOutput = loaded+“kB”;  
bytesTotalOutput = total+“kB”;  
bytesRemainingOutput = total-loaded+“kB”;  
percentOutput = percent+"%";  
gotoAndPlay(“loading”);  
}  
[/AS]

for:

[AS]

clipLoaded = getBytesLoaded()+\_root.mono.getBytesLoaded();  
clipTotal = getBytesTotal()+\_root.mono.getBytesTotal();  
if (clipLoaded == clipTotal) {  
play();  
} else {  
loaded = Math.round(getBytesLoaded()/1024);  
total = Math.round(getBytesTotal()/1024);  
percent = Math.round((loaded/total)\*100);  
bytesLoadedOutput = loaded+“kB”;  
bytesTotalOutput = total+“kB”;  
bytesRemainingOutput = total-loaded+“kB”;  
percentOutput = percent+"%";  
gotoAndPlay(“loading”);  
}

[/AS]

SHO

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 8, 2004, 5:58am UTC](https://forum.kirupa.com/t/controlling-transofmring-dynamically-loaded-pics-jpegs-file-attached/42102/12 "2004-02-08T05:58:10Z")

</div>

:pleased:

thanks heaps and…no probs re: delay in response, any response is better than none. 🙂
