[flexcoders] Stop Key press

2009-02-11 Thread gr33neye501
How can i disable/ suppress the default behavior of a button, where if
it has focus then space-bar key-press fires the click event.

Basically I want click to work as normal, but space-bar Key-press if
it's the space bar, do nothing. 

This Key-Press/Spacebar issue allows Modal popup windows to be opened
up - more than once, which defeats the point of modal popup window.

I'm using Flex 3 (not 3.2 and can't migrate at this stage.) 

Any help appreciated
:-)




[flexcoders] Re: Stop Key press

2009-02-11 Thread gr33neye501
Sorry Kenneth i should have said, i also have buttons that don't have
popups. 
I just want to disable this 'feature'. Do you know how i can do this?


--- In flexcoders@yahoogroups.com, Kenneth Sutherland
kenneth.sutherl...@... wrote:

 I remember coming across this issue quite a while back and it's because
 your new modal window hasn't taken the focus away from the button which
 opens the popup.  When you create and show the popup use the
 focusmanager to give a button or whatever you have in your popup focus.
 That way when the user presses space bar again it will not be 'clicking'
 the button which originally opened the modal window.
 
  
 
 HTH Kenneth.
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of gr33neye501
 Sent: 11 February 2009 14:46
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Stop Key press
 
  
 
 How can i disable/ suppress the default behavior of a button, where if
 it has focus then space-bar key-press fires the click event.
 
 Basically I want click to work as normal, but space-bar Key-press if
 it's the space bar, do nothing. 
 
 This Key-Press/Spacebar issue allows Modal popup windows to be opened
 up - more than once, which defeats the point of modal popup window.
 
 I'm using Flex 3 (not 3.2 and can't migrate at this stage.) 
 
 Any help appreciated
 :-)
 
 
 
 Disclaimer 

---
 This electronic message contains information which may be privileged
and confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use
of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us by
telephone on 0131 476 6000 and delete the material from your computer. 
 Registered in Scotland number: SC 172507. 
 Registered office address: Quay House 142 Commercial Street
Edinburgh EH6 6LB. 
 
 This email message has been scanned for viruses by Mimecast.

---





[flexcoders] Re: Generating random colors, excluding others

2009-01-12 Thread gr33neye501
Thankyou Sunil for replying to my question. your example uses flash
player 10, i can not view the example or the code for it. 

as it breaks my Flex builder, (still using Flex 3.0) 

I'm at a delicate stage of my project and can't afford Flex builder
breaking and having to reinstall it all!

Do you happen to have the code snipit, which i can see without using
FlashPlayer 10.

I expect to go to 10 in a month or so. But am trying to solve this
issue now. Your help is greatly appriciated.

Once again thank you for responding.
:-)



--- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote:

 --- In flexcoders@yahoogroups.com, gr33neye501 devarc@ wrote:
 
  Hi guys
  
  I'm trying to generate a series of random colours, but would like to
  exclude certain colour and closely related shade. 
  
  For example, i'd like create any colours except red or similar shades.
  Anyone know of how I could do this. It's a really subjective thing I
  know.  
  
  Help really appreciated
  ;-)
 
 
 Hi,
 
 I had to do something similar recently. I used HSB color values to
generate distinct colors, 
 and then converted them to RGB.
 
 I saw you message this morning, and whipped up an example of my
ColorManager class 
 using Degrafa:

http://blog.sunild.com/2009/01/generating-many-different-colors-with.html
 
 To exclude colors, you can modify the code that generates colors to
omit the hues you 
 don't want.
 
 HTH,
 Sunil
 
 PS: sorry if this is a repost (Yahoo's beta Rich-Text Editor broke
on me)





[flexcoders] Generating random colors, excluding others

2009-01-09 Thread gr33neye501
Hi guys

I'm trying to generate a series of random colours, but would like to
exclude certain colour and closely related shade. 

For example, i'd like create any colours except red or similar shades.
Anyone know of how I could do this. It's a really subjective thing I
know.  

Help really appreciated
;-)
  



[flexcoders] Flex builder 3 Pro not allowing debug.

2008-10-29 Thread gr33neye501
While surfing a website firefox promted and intalled Flash 10, now my
Flex builder 3 pro wont debug. can some please guid tell me how i can
revert back to Flex builder 3 default setting. and get my debug trace
to work. I seem to have flash player 10 active X also installed on my
machine. Win XP Pro.

Pls Pls Help. 



[flexcoders] Flex builder 3 pro debugging doesn't work any more.

2008-10-29 Thread gr33neye501
While surfing a website firefox promted and intalled Flash 10, now my
Flex builder 3 pro wont debug. can some please tell me how i can
revert back to Flex builder 3 default setting. and get my debug trace
to work. I seem to have flash player 10 active X also installed on my
machine. Win XP Pro.

Perhaps there is a way to use Flex builder 3 pro and the flash10
debug. If so how to i configure this. I have little experience in this.

Pls Pls Help.



[flexcoders] coloring a box

2008-10-08 Thread gr33neye501
Does anyone know how to apply a gradient color to a Box control;
gradient going left to right, ie horizontally. 

I use style fillColors: #ff, #ff to get a vertical gradient,
top to bottom. but don't know how to do it horizontally.

your help guys is really needed.
;-)





[flexcoders] Re: Displaying a date in a line chart

2008-09-11 Thread gr33neye501
Thanks guys (Tom and yourself), I want to stick with the 
DateTimeAxis, for the very reason the you just mention.

my data is already collection of dates and want to/need to keep it 
that way. So label function it is then. Thanks once again.

J.

--- In flexcoders@yahoogroups.com, sunild99 [EMAIL PROTECTED] 
wrote:

 Hi,
 
 Here are two approaches I've used:
 
 1) Using a DateTimeAxis:
  If the data representing your dates is in the format that can be 
easily converted into a 
 Date object (see docs for the Date constructor), your DateTimeAxis 
will understand the 
 dates implicitly. Otherwise, you need to write a parseFunction (see 
DateTimeAxis docs) so 
 your data can be converted into a Date object.
 
 Then as Tom suggested, use the labelFunction property to specify a 
function that will 
 return a properly formatted date string ... in the labelFunction 
use a DateFormatter to 
 print the dates in the UK format ( or just use the Date object's 
toLocale method).
 
 2) Using a CategoryAxis:
 Instead of using a DateTimeAxis, consider using a CategoryAxis. 
This approach is similar, 
 except now you don't need to worry about writing a parseFunction.  
Just write a 
 labelFunction as described above.
 
 The CategoryAxis won't deal with dates as nicely as DateTimeAxis, 
but it works nicely for 
 fixed date ranges (it wouldn't be so good for doing a Google 
Finance type of chart where 
 you can change time frames of the chart).
 
 Check out the docs for the labelFunction and parseFunction 
properties of the 
 DateTimeAxis (or CategoryAxis). They show the function signature 
that's required, from 
 there it's easy :)
 
 Sunil
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
wrote:
 
  On Wednesday 10 Sep 2008, gr33neye501 wrote:
   The data is a collection of Date objects, and is displayed in US
   format. I am trying to get the axis to display the date in 
DD/YY/
   or DD/MM/YY format.
  
  Just use a label function on the Axis(Renderer).
  
  -- 
  Tom Chiverton
  
  
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in 
England and Wales under 
 registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 
 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of 
members is available for 
 inspection at the registered office. Any reference to a partner in 
relation to Halliwells LLP 
 means a member of Halliwells LLP.  Regulated by The Solicitors 
Regulation Authority.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named 
above and may be 
 confidential or legally privileged.  If you are not the addressee 
you must not read it and 
 must not use any information contained in nor copy it nor inform 
any person other than 
 Halliwells LLP or the addressee of its existence or contents.  If 
you have received this email 
 in error please delete it and notify Halliwells LLP IT Department 
on 0870 365 2500.
  
  For more information about Halliwells LLP visit 
www.halliwells.com.
 





[flexcoders] Displaying a date in a line chart

2008-09-10 Thread gr33neye501
hi, I'm new to this. 
Can anyone help me to display a date in a chart datetimeaxis in UK 
format. 

The data is a collection of Date objects, and is displayed in US 
format. I am trying to get the axis to display the date in DD/YY/ 
or DD/MM/YY format. 

hopes this makes sense. any expert help is welcome. 

J.