My first completed experiment!

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

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

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. :slight_smile:

**Source files are on next page. **

THAT IS **** AWESOME!!

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

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!

Wow, that’s fantastic Jubba. :slight_smile:

thanks. I’m glad you all like it. :slight_smile: 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. :slight_smile:

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

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 :wink:

:thumb:

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

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

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?

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

Wow, Great job jubba!!!

*Originally posted by Ilyas *
**That’s very nice :slight_smile: 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 :):wink:

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

*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 :wink:

:a+: Cognrats!

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

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!” :wink:

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

Here are the updated files!

:thumb: cool.

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

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 :wink:

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. :slight_smile:

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