Actually, just to be clear, I'm certainly not saying the Flex sucks -
far from it, 
I'm actually saying that I'm just surprised that some things that
should be really easy don't seem, to me anyway, to make logical sense.
However, that being said some things that should be really hard are
surprisingly easy.

So I suspect that it's me who just isn't getting it. Perhaps I'm just
looking for answers in the wrong places.

Dale 

--- In [email protected], "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Nothing says "please help me out" like "your tech sucks you jerks".
> 
> fontColor.selectedColor = parseInt(textbox.text.replace("#",""),16);
> 
> -Josh
> 
> On Tue, Aug 12, 2008 at 9:59 AM, Dale Cook <[EMAIL PROTECTED]> wrote:
> 
> > OK, so I'm new to Flex but I have a lot of experience with other
> > development platforms and languages(.NET, RoR, Javascript, etc.).
> >
> > I've read a few books and I've just been doing some fairly simple
> > stuff to get my feet wet but already I'm starting to get a little
> > fustrated with things that should be really easy. Perhaps I'm just
> > missing something.
> >
> > For example, I have a colorpicker object and I want to set the
> > selected color programmatically depending on which textinput field a
> > user is in. So I suspected that I could do something like
> >
> > //the name of the color picker is fontColor
> > fontColor.selectedColor = "#D3D3D3"
> >
> > and everything would be good - but that doesn't appear to be the case.
> > It looks like I have to convert the hex into a uint. OK, that seems
> > like a lot more work than it should be but OK, I'll just use the
> > DecimalToHex function of the int class... oh, wait there isn't one.
> > There isn't a conversion anywhere that I can find to do this without
> > writting even more code.
> >
> > Is it just be or does this seem like a lot of work to do something
> > that most other modern languages handle without any additional coding,
> > or an I completely missing something?
> >
> > Dale
> >
> >
> >
> > ------------------------------------
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>


Reply via email to