Hi Karl,
Kind of tired, so the easiest way I can think of to do this is to
evaluate and convert each pixel's RGB values to HSB and then average
your found values for all the pixels in the region the loader is to be
displayed within.
Hue, Saturation, Brightness. if the brightness is less
Your not alone burning the late night pixels.
Thanks for your response, this is a good idea.
Then you can get some kind of value that will translate to a function.
H..
very interesting.
Thanks for the links too.
gnight
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Mar 29,
I just realized the link I have you with the java doesn't really show
you anything other than how to use java's Color.RGBtoHSB function...
yikes, I told you I was tired
This might be a little more helpful.
http://www.easyrgb.com/index.php?X=MATHH=20#text20
Karl DeSaulniers wrote:
Your not
Yeh I was going to see if I could adopt the theory into as
Sent from losPhone
On Mar 29, 2009, at 2:23 AM, Anthony Pace anthony.p...@utoronto.ca
wrote:
I just realized the link I have you with the java doesn't really
show you anything other than how to use java's Color.RGBtoHSB
just noticed that wikipedia has some decent info
http://en.wikipedia.org/wiki/HSV_color_space
Karl DeSaulniers wrote:
Yeh I was going to see if I could adopt the theory into as
Sent from losPhone
On Mar 29, 2009, at 2:23 AM, Anthony Pace anthony.p...@utoronto.ca
wrote:
I just realized the
Just interested.
Is all this worth the hassle?
I mean instead using a TextArea, I would go for a normal TextField and a
custom scrollbar all in 1 movieclip.
And set the needs.
Cor.
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1955.html
Karl DeSaulniers wrote:
Here is my other question.
How to identify a pixel in as2.
I haven't google'd it yet so that answer my be already out there, but
I thought I'd ask.
Wow,
Thank you oo so much.
I hope it hasn't been too much trouble, but I really appreciate the
help.
Best
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Mar 29, 2009, at 6:21 AM, Anthony Pace wrote:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/
In this situation I agree with you, that rolling your own would be
pretty easy and could prove to be less of a hassle; however, he does
present a nice solution to the problem at hand.
Cor wrote:
Just interested.
Is all this worth the hassle?
I mean instead using a TextArea, I would go for a
Absolutely, I was following this along but at some given point I thought
maybe they overlook the most simple way.
Which is always good, otherwise we would maybe have square wheels...
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
Cor,
Well, I did suggest the TextField/Scrollbar thing before. Then I followed up
with my extend TextArea thing (then Muzak one-upped me.) In terms of
reusability I think it is a greater hassle to have to configure a
TextField/Scrollbar solution than to go the extended TextArea route.
The code
Keith,
OK, I missed something in the beginning then.
I was nearly suggesting not to lose sanity over a text area.
And, yes, I love it when smart coders get triggered and show marvelous
solutions.
Even if it is a hassle. LOL.
I love this list
Kind regards
Cor
-Original Message-
That depends..
If you have a component-heavy application with your own custom styles for
instance, it might be better to use a TextArea.
Or you could take it a step further and make this into a new component (and
even make it an mxp for distribution).
Then again, if all you need is one (and
As it's been said already, you could try converting to HLS and the get the
average luminance (brigthness). Here's a handy class to convert from RGB to
HSL and viceversa.
http://www.dreaminginflash.com/2007/11/19/hls-to-rgb-rgb-to-hls/
Another approach, which might be faster (but you'd have to
On Sun, Mar 29, 2009 at 8:14 PM, Juan Pablo Califano
califa010.flashcod...@gmail.com wrote:
As it's been said already, you could try converting to HLS and the get the
average luminance (brigthness). Here's a handy class to convert from RGB to
HSL and viceversa.
It's indeed much faster (five times faster than transforming to grey scale),
though the results I'm getting are incorrect (the other 2 methods seems to
return consistently similar results, though trasnforming to HLS takes about
3200 ms for a 1152 x 864 image, and transform to grey scale takes
I'm not sure, but maybe it is.
Your approach seemed the easiest and fastest, so I gave it a try. I'm
getting very different results compared to the other 2 methods, but I'm not
really sure if I'm scaled the image properly, that's why I posted the code.
Anyway, since I already have the code for
http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_03.html#head5
On Sun, Mar 29, 2009 at 6:25 PM, Carl Welch carlwelchdes...@gmail.comwrote:
Hi all,
I've built an app uses KeyboardEvents. All works fine until I go into
FULLSCREEN Mode, the KeyboardEvents seem to stop
I actially wanted to get the density. How dark and how light. Not
necessarily black and white. Dark color or light color. I also don't
want to convert any images. Now if it takes converting the image to
calculate, then the user can never see this conversion of the photo.
Just the
Honestly, I'm not sure if I'm following you at this point...
However, I was not talking about *displaying* a grey-scaled image. Just
using it as way to calculate each pixel's luminance / brightness. Which in
this case will give you the same results as transforming to HLS and reading
the L value.
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...
The reasoning behind disabling all/most (9/10 respectively) keyboard input
in fullscreen is because someone could easily make a fake login screen that
looks like the OS. Carl, I hope that you don't have too much riding on it
being able to do that because I don't know of a workaround (maybe use the
Check this out for a nice way to extract color from an image.
http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extract-colour-palette/
Cheers
Juan Pablo Califano
2009/3/29 Glen Pike postmas...@glenpike.co.uk
Hi,
Wordpress has the monotone theme which sets your CSS
If all you want is a visible loader, you might even try a blend mode,
like difference. Which you would then have to deal with stylistically,
but that would make the code required null.
If not, I have done this before to place text on an image and I used
the scaledBitmap system. The inaccuracies
Well being a photo gallery loader, I don't want to convert the image
to grayscale. I do however
Like an idea that Anthony had mentioned with getting the pixels
opposite. Imagine being able to (just for the sake of conversation)
drag that loader around the photo and the loader changes color
sheesh. Instead of removing features, I wish they would have built in
a warning message telling people to be aware of such activities.
Oh well : /
Thanks for the info!
--
Carl Welch
http://www.carlwelch.com
http://blog.jointjam.com
carlwelchdes...@gmail.com
805.403.4819
On Mar 29, 2009,
You could maybe build a virtual keyboard in flash that interacts with
key commands. Just a thought.
Sent from losPhone
On Mar 29, 2009, at 7:27 PM, Carl Welch carlwelchdes...@gmail.com
wrote:
sheesh. Instead of removing features, I wish they would have built
in a warning message telling
Simplicity is so beautiful sometimes.
I think your right, that will get the effect I am looking for.
I still like what was given for the reading of pixels and the HSB
conversion though. I am going to try and implement that on another
idea I got while trying to figure this out. Thank you all
Sorry I think I just told you to do what you have already done. Didn't
see earlier message.
Sent from losPhone
On Mar 29, 2009, at 8:18 PM, Karl DeSaulniers k...@designdrumm.com
wrote:
You could maybe build a virtual keyboard in flash that interacts
with key commands. Just a thought.
29 matches
Mail list logo