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