# My first completed experiment!

**URL:** <https://forum.kirupa.com/t/my-first-completed-experiment/23851>\
**Category:** Uncategorized\
**Created:** [June 23, 2003, 7:56am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851 "2003-06-23T07:56:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jubba](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@Jubba](https://forum.kirupa.com/u/Jubba)\
**Post date:** [June 23, 2003, 7:56am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/1 "2003-06-23T07:56:59Z")

</div>

Ok, well first I would like to thank LostinBeta for his help in optimizing my Flash code.

Next here is a link to the file: [http://www.bluefinatlantic.com/egTest/imageFunc/imageFunc.php](http://www.bluefinatlantic.com/egTest/imageFunc/imageFunc.php)

**Warning: May be processor intensive on slower machines. Be careful!**

Click on the image and move the pixels around. You can see that you are actually taking the image apart pixel by pixel.

What is happening in the file:

A php script reads the image file. It gets the color of every pixel in the .jpg and then sends the color information to Flash. Flash then attaches movieclips and sets their color to that of the cooresponding pixel in the .jpg file.

here is a link to the JPG file: [http://www.bluefinatlantic.com/egTest/imageFunc/avatar.jpg](http://www.bluefinatlantic.com/egTest/imageFunc/avatar.jpg)

I was pretty happy with this. Its the first successful experiment that I have ever completed (i usually lose focus after about 3 hours) but this one only took about 2.5 hours so thats why I actually finished it.

The next stop is to allow people to upload their own images and do some sort of effect with them. 🙂

\*\*Source files are on next page. \*\*

---

<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:** [June 23, 2003, 8:14am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/2 "2003-06-23T08:14:43Z")

</div>

THAT IS \*\*\*\* AWESOME!!

wish this was MY experiment… i LOVE it… very smart! :beam:

---

<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:** [June 23, 2003, 8:15am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/3 "2003-06-23T08:15:30Z")

</div>

Holy crap, that is awesome jubba, the script had to be some hardcore stuff!

Great job, can’t wait to see the version where you can upload your own image!

:thumb: :thumb: \<\<\<\< Two thumbs up!

---

<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:** [June 23, 2003, 8:17am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/4 "2003-06-23T08:17:35Z")

</div>

Wow, that’s fantastic Jubba. 🙂

---

<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:** [June 23, 2003, 8:19am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/5 "2003-06-23T08:19:26Z")

</div>

thanks. I’m glad you all like it. 🙂 I’m happy with it as well. I am hoping I will have time to finish the next version tomorrow or the day after. I’ll post once its finished. 🙂

---

<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:** [June 23, 2003, 8:51am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/6 "2003-06-23T08:51:06Z")

</div>

I got to see it before he posted it here on the forum. :love: Nice job, Jubba. =)

---

<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:** [June 23, 2003, 10:23am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/7 "2003-06-23T10:23:42Z")

</div>

teehee! _zooms in and makes Jubba all spotty_ :beam:

lol, really nice work. I wish I could do something like that. In fact… I wish I actually knew some ActionScript. My knowledge extends to play, stop, gotoandplay, gotoandstop lol 😉

:thumb:

---

<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:** [June 23, 2003, 10:39am UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/8 "2003-06-23T10:39:22Z")

</div>

Out of curiosity Jubba, just how complex a picture can this cope with? 🙂

---

<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:** [June 23, 2003, 2:19pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/9 "2003-06-23T14:19:41Z")

</div>

That’s very nice 🙂 It reminds me of something Bit did some time ago, did you check it? It was pretty spectacular too!

---

<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:** [June 23, 2003, 3:06pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/10 "2003-06-23T15:06:51Z")

</div>

wow man! This is awesome! How many lines are there in this php script? I wish I could do that! Next you could figure out a way to make the pixels that are dragged out disappear (I mean from the pic so that it leaves a white spot). …ummm… nevermind It’s actually no problem if you make it get the x and y pos of the mouse when it’s clicked copy a white pixel there… nevermind…

Cool effect man!

Who/How did you came up with the idea anyway?

---

<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:** [June 23, 2003, 3:07pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/11 "2003-06-23T15:07:05Z")

</div>

Spectacular! I didn’t know you could do that with PHP. How did you send the information to flash?

---

<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:** [June 23, 2003, 3:49pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/12 "2003-06-23T15:49:44Z")

</div>

Wow, Great job jubba!!!

---

<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:** [June 23, 2003, 3:53pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/13 "2003-06-23T15:53:48Z")

</div>

> \*Originally posted by Ilyas \*  
> \*\*That’s very nice 🙂 It reminds me of something Bit did some time ago, did you check it? It was pretty spectacular too! \*\*

Pom: Really? I’ll have to check that out!

Syko: Actuallly, you could just set its \_visible to 0 when you click on it. Much easier :)😉

Thor: I’ll attach the files in a few minutes.

---

<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:** [June 23, 2003, 3:57pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/14 "2003-06-23T15:57:32Z")

</div>

> \*Originally posted by electrongeek \*  
> \*\*I got to see it before he posted it here on the forum. :love: Nice job, Jubba. =) \*\*

Me too :love:

That’s great Jubba, no more Unresponsive AS errors!!! It definitely runs a lot smoother now. And if I can say that on my PC, you know it’s true 😉

:a+: Cognrats!

---

<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:** [June 23, 2003, 4:01pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/15 "2003-06-23T16:01:32Z")

</div>

yeah, thanks for the help with optimizing that code. I think I finally understand setInterval now 😉

oh, and Syko: I’m not really sure how I came up with the idea. I just new there was a huge list of image functions in PHP and I searched around until I found one that picked out the colors of pixels. Then I was like, “oh, well I do a loop here, and read the variables, and voila!” 😉

---

<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:** [June 23, 2003, 4:02pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/16 "2003-06-23T16:02:43Z")

</div>

If you want me to explain setInterval to you later I can definitely do that 🙂

---

<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:** [June 23, 2003, 4:10pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/17 "2003-06-23T16:10:02Z")

</div>

Here are the updated files!

---

<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:** [June 23, 2003, 4:10pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/18 "2003-06-23T16:10:57Z")

</div>

:thumb: cool.

---

<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:** [June 23, 2003, 4:13pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/19 "2003-06-23T16:13:39Z")

</div>

> \*Originally posted by Kitiara \*  
> \*\*Out of curiosity Jubba, just how complex a picture can this cope with? 🙂 \*\*

Well, since it is just reading the color at each pixel and then The flash displays it pixel by pixel, in **theory** it can deal with any complexity of imagery 😉

I’m not sure how processor intensive something larger will be. Well, we’re going to find out eventually huh? I’ll get working on the new version after I eat breakfast. 🙂

---

<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:** [June 23, 2003, 4:21pm UTC](https://forum.kirupa.com/t/my-first-completed-experiment/23851/20 "2003-06-23T16:21:34Z")

</div>

> \*Originally posted by Jubba \*  
> **“oh, well I do a loop here, and read the variables, and viola!”**  
> Err… it’s “voila” 😛 You don’t want to know what “viola” means… :evil:

[Next page](https://forum.kirupa.com/t/my-first-completed-experiment/23851.md?page=2)
