Hi,

Wordpress has the "monotone" theme which sets your CSS colours based on the image colouring. I am not sure if this is done in Flash or not, but I am guessing there will be some code in there somewhere to work out the colour or the image which you might be able to adapt...

   http://wordpress.org/extend/themes/monotone

You might also want to look at some of Mario Klingemann's blog posts / tutorials / lectures. I think he has done some useful stuff on images and his lecture at FOTB 2007 sort of touched on what you want to do, but in a slightly different way. - www.quasimondo.com

   Hope this helps

   Glen
Karl DeSaulniers wrote:
I was wondering is there a way to recognize the density of pixels in flash AS2 or AS3? The darkness or lightness.

For instance, say I have a loader that is dynamically loaded and normally it would be, say, white. But lets say I want it to have a script that detects the pixel density of the MC behind it so as to let the loader mc know to play on frame 1 or frame 2.
Frame 1 having a white loader and frame 2 having a black or grey loader.
That way when the loader is dynamically placed over a MC with a picture in it, it will detect if there is a white picture (placing a black loader) or if its a color picture (placing the white loader on top)?

Usage would be for say a photo gallery and while one picture is being displayed, and the user clicks a new photo,
the previous photo does not remove until the new one is loaded.
Thus if I have a white loader and the previous photo was white under the loader, the loader is hard to see and the user sometimes does not know that anything is happening.

I basically think it would just take a script that would map out the x and y of the loader and read the pixel density of the MC directly behind the Loader (reason for the x and y theory) then switch so the user will always see a loader. Either grey or white depending.

Sounds good in my head, may not be too good (or easy) in code though.
Any thoughts would be great,
Thanks,


Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to