[flexcoders] Need help making a Flex chart with an interactive legend

2010-08-30 Thread s_grollins
Hello,

I currently need help with making a chart in Flex with multiple series and a 
chart legend which is an interactive legend where upon selecting an item in the 
legend (which corresponds with a series in the chart) that specific series in 
the chart will slideDown or Up depending on whether it was just de-selected 
from the legend or re-selected.

Any help is greatly appreciated, thanks in advance.




[flexcoders] Flex Profiler will not connect

2010-06-22 Thread s_grollins
Hi all,

I'm trying to get the flex profiler to work but I'm having no luck. I've come 
across a few posts about the profiler but none of them have helped:

http://stackoverflow.com/questions/115420/flex-profiler-gives-socket-timeout-error-why-for
http://wceii.blogspot.com/2009/12/flex-profiler-socket-timeout-error.html

The 1st link mentions updating your etc/hosts file on Windows, which I have 
done, the 3rd link mentions updating your mm.cfg file which I've also done, 
neither of these have yielded any results. Currently it just gives me Socket 
Timeout each and every time. I'm on Windows Vista, using Firefox, using 
Eclipse with Flex Builder Plug-In, has anyone had any luck using this or does 
anyone have any suggestions?



[flexcoders] Positioning / Scrolling problem with Flex popup

2010-04-09 Thread s_grollins
Hi all,

I'm trying to work out a specific problem I'm having with positioning in Flex 
using the PopUpManager. Basically I'm wanting to create a popup which will 
scroll with the parent container - this is necessary because the parent 
container is large and if the user's browser window isn't large enough (this 
will be the case the majority of the time) - they will have to use the 
scrollbar of the container to scroll down. The problem is that the popup is 
positioned relative to another component, and it needs to stay by that 
component. (also sorry if the code below isn't formatted right, but I pasted it 
right from Eclipse).

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

  mx:Script
![CDATA[
  import mx.core.UITextField;
  import mx.containers.TitleWindow;
  import mx.managers.PopUpManager;

  private function clickeroo(event:MouseEvent):void {
var popup:TitleWindow = new TitleWindow();
popup.width = 250;
popup.height = 300;

popup.title = Example;
var tf:UITextField = new UITextField();
tf.wordWrap = true;
tf.width = popup.width - 30;
tf.text = This window stays put and doesn't scroll when the hbox is 
scrolled (even with using the hbox as parent in the addPopUp method), I need 
the popup to be local to the HBox.;
popup.addChild(tf);

PopUpManager.addPopUp(popup, hbox, false);
  }
]]
  /mx:Script

  mx:HBox width=100% height=2000 id=hbox
mx:Button label=Click Me click=clickeroo(event)/
  /mx:HBox

/mx:Application




[flexcoders] Is it possible to change the datatip dot style/position on a chart?

2010-03-20 Thread s_grollins
Hi everyone,

I have a column chart and I want to reposition and change the style of the 
datatip dot - the datatip itself I can change by setting the datatip renderer 
- but what about the positioning of that dot?

For an example view the following: 
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_01.html#332245
 - the little dot that comes at the end of the bar in the first chart that is.

Thanks in advance to anyone that can help me with this!

-Steven



[flexcoders] Re: Charting woes, a strange sort

2010-03-16 Thread s_grollins
If I'm only viewing data for one country that's as easy as sorting the 
chartMeasures by # of medals - but how could I do this for each individual 
point without affecting the entire chart?

--- In flexcoders@yahoogroups.com, s_grollins s.groll...@... wrote:

 Hi all,
 
 I have a quick question regarding arranging different bars or columns in a 
 chart - if you use the following page as an example: 
 http://livedocs.adobe.com/flex/3/langref/mx/charts/ColumnChart.html, what I 
 need to do is to make the actual bars in the chart sort descending - so I 
 would need the USA's silver count to be the left-most bar, followed by gold, 
 followed by bronze, china's would be okay as is (already descending), then 
 for russia I would need bronze to be the left most column followed by gold 
 and silver.
   
 I don't believe this is possible in the flex charting / data viz. framework 
 right now - does anyone have any ideas on a possible approach?
 
 Thanks in advance for any help!
 
 -Steven





[flexcoders] Charting woes, a strange sort

2010-03-15 Thread s_grollins
Hi all,

I have a quick question regarding arranging different bars or columns in a 
chart - if you use the following page as an example: 
http://livedocs.adobe.com/flex/3/langref/mx/charts/ColumnChart.html, what I 
need to do is to make the actual bars in the chart sort descending - so I would 
need the USA's silver count to be the left-most bar, followed by gold, followed 
by bronze, china's would be okay as is (already descending), then for russia I 
would need bronze to be the left most column followed by gold and silver.

I don't believe this is possible in the flex charting / data viz. framework 
right now - does anyone have any ideas on a possible approach?

Thanks in advance for any help!

-Steven



[flexcoders] Re: TextArea text change event doesn't work in all cases

2010-02-19 Thread s_grollins
We're using Flex SDK 3.2 - these event types aren't present. I also tried:

textArea.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, handler, false, 0, 
true);

This did not work either.

--- In flexcoders@yahoogroups.com, seanmcmonahan s...@... wrote:

 Maybe Event.CUT or Event.CLEAR?
 
 --- In flexcoders@yahoogroups.com, s_grollins s.grollins@ wrote:
 
  Hello everyone,
  
  I've recently come across a problem wherein we have a textarea with a 
  listener listening for Event.CHANGE events - the problem with this is that 
  an event isn't dispatched when a user selects text in the textarea using 
  their mouse, and then right-clicks and deletes text using the menu. I've 
  tried attaching MouseEvent listeners but have had no luck - does anyone 
  have any suggestions? Am I overlooking something?
 





[flexcoders] AdvancedDataGrid column sort arrow

2010-02-17 Thread s_grollins
Hi all, I need some help with a problem I'm having:

Is there a way that anyone knows of to manually change the sort arrow?

It seems that no matter what I do the arrow is always reversed from what the 
sort order is (if the sort is descending the arrow is ascending).

And if there is no direct way, like accessing a property or method, is there 
any round-about way like dispatching a header release event - albeit I'd need 
to do this without refreshing the data in the grid though.

Any help greatly appreciated.



[flexcoders] Re: AdvancedDataGrid column sort arrow

2010-02-17 Thread s_grollins
Ignore this post - I had a mistake in my code which I found O_o

--- In flexcoders@yahoogroups.com, s_grollins s.groll...@... wrote:

 Hi all, I need some help with a problem I'm having:
 
 Is there a way that anyone knows of to manually change the sort arrow?
 
 It seems that no matter what I do the arrow is always reversed from what the 
 sort order is (if the sort is descending the arrow is ascending).
 
 And if there is no direct way, like accessing a property or method, is there 
 any round-about way like dispatching a header release event - albeit I'd 
 need to do this without refreshing the data in the grid though.
 
 Any help greatly appreciated.





[flexcoders] TextArea text change event doesn't work in all cases

2010-02-17 Thread s_grollins
Hello everyone,

I've recently come across a problem wherein we have a textarea with a listener 
listening for Event.CHANGE events - the problem with this is that an event 
isn't dispatched when a user selects text in the textarea using their mouse, 
and then right-clicks and deletes text using the menu. I've tried attaching 
MouseEvent listeners but have had no luck - does anyone have any suggestions? 
Am I overlooking something?



[flexcoders] Re: A strange observation on TextInputs

2010-01-14 Thread s_grollins
Yea it only happens with Firefox for me too (at least with the app I'm working 
on right now).

--- In flexcoders@yahoogroups.com, tc todd.fol...@... wrote:

 
 
 I have noticed this and also that arrow up and arrow down will jump two rows 
 at a time instead of one. (I don't remember which control(s) that was in, 
 tho.) Like you, I have not investigated further. I mostly use Firefox 
 browser, which may be relevant.
 
 --- In flexcoders@yahoogroups.com, s_grollins s.grollins@ wrote:
 
  Hi everyone,
  
  I had noticed something a month ago on an app I worked on at work -- 
  basically if you typed in the text input controls then pressed the arrow 
  keys to move left or right, it would move 2 spaces left or right. I 
  couldn't track it down, but I admit I didn't try too hard because there 
  wasn't a ticket for it.
  
  Anyways I've noticed this once again on a completely different project 
  which uses *nothing* from the previous project (that is, no shared modules, 
  components, projects, rsls, whatever else).
  
  Has anyone ever come across this and if so were you able to fix it?
 





[flexcoders] Re: A strange observation on TextInputs

2010-01-13 Thread s_grollins
Yes, I received a direct email from another person who said he'd experienced 
the same issue and it might be a Flex SDK problem.

I think there's a few Adobe devs on this list (?), has anyone from Adobe seen 
this happen?

--- In flexcoders@yahoogroups.com, tc todd.fol...@... wrote:

 
 
 I have noticed this and also that arrow up and arrow down will jump two rows 
 at a time instead of one. (I don't remember which control(s) that was in, 
 tho.) Like you, I have not investigated further. I mostly use Firefox 
 browser, which may be relevant.
 
 --- In flexcoders@yahoogroups.com, s_grollins s.grollins@ wrote:
 
  Hi everyone,
  
  I had noticed something a month ago on an app I worked on at work -- 
  basically if you typed in the text input controls then pressed the arrow 
  keys to move left or right, it would move 2 spaces left or right. I 
  couldn't track it down, but I admit I didn't try too hard because there 
  wasn't a ticket for it.
  
  Anyways I've noticed this once again on a completely different project 
  which uses *nothing* from the previous project (that is, no shared modules, 
  components, projects, rsls, whatever else).
  
  Has anyone ever come across this and if so were you able to fix it?
 





[flexcoders] A strange observation on TextInputs

2010-01-12 Thread s_grollins
Hi everyone,

I had noticed something a month ago on an app I worked on at work -- basically 
if you typed in the text input controls then pressed the arrow keys to move 
left or right, it would move 2 spaces left or right. I couldn't track it down, 
but I admit I didn't try too hard because there wasn't a ticket for it.

Anyways I've noticed this once again on a completely different project which 
uses *nothing* from the previous project (that is, no shared modules, 
components, projects, rsls, whatever else).

Has anyone ever come across this and if so were you able to fix it?



Re: [SPAM] [flexcoders] Properly display html entities in datagrid

2010-01-09 Thread s_grollins
I'm not sure how proper a solution that would be -- there are a lot more html 
entities than just those and I don't think writing a replace for each character 
makes much sense.

I was initially under the impression that if I used the htmlText property, a 
string like something amp; something would auto-magically be converted to 
something  something. If this isn't the case, is there a property or 
component in Flex which I'm overlooking that would automatically take care of 
this?

I suppose the main problem is with the text example I presented: This is an 
item  This is another item  In a breadcrumb trail. I suppose using htmlText 
would not work because the '' characters would be taken as closing tags? Maybe 
I can just write a function to replace '' and ''. (?)

Do you or any others have other suggestions or comments on what a good approach 
would be?

--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 So I understand that the data is not html, but just has some html encoded
 entities in it correct?
 
  
 
 You can manually convert the data yourself.  Regular expressions are
 probably a better way to go, but I do not use them enough to be comfortable
 with them, and use a function like this:
 
 public static function htmlDecode(s:String):String
 
 { 
 
   s=s.split(amp;).join(); 
 
   s=s.split(quot;).join(\);
 
   s=s.split(apos;).join('); 
 
   s=s.split(/lt;).join(/);
 
   s=s.split(lt;).join(); 
 
   s=s.split(/gt;).join(/);
 
   s=s.split(gt;).join(); 
 
   return s;
 
 }
 
  
 
 The replace() function might be better as well.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of s_grollins
 Sent: Friday, January 08, 2010 9:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [SPAM] [flexcoders] Properly display html entities in datagrid
 
  
 
   
 
 Hello everyone,
 
 I've recently come across a problem at work where in much of the data we're
 getting is showing up in the data-grid as:
 
 bThe tags showb and the quot; quotes quot; aren't converted!
 
 This is a problem and I'd like to be able to display this correctly:
 
 The tags show and the  quotes  aren't converted!
 
 We don't necessarily have too much control over the data, so I'm not
 entirely sure how/why the items are coming up like this when some items come
 up with characters like   in them. For instance: This is an item  This
 is another item  In a breadcrumb trail. This shows up correctly. I'm not
 sure what exactly should be done. But again since we don't have
 control/access to the data, it cannot be changed or substituted or converted
 to other formats. I thought of using htmlText but that doesn't work if I
 have data like the breadcrumb string above because it interprets the ''
 characters as opening tags and doesn't render the entire data:
 
 [Bindable]
 private var testString:String = lt;bgt;6lt;bgt;  quot;sevenquot;;
 
 mx:Text text={testString} / !-- displays testString unchanged --
 mx:Text htmlText={testString} / !-- displays: b6/b --
 
 Any suggestions would definitely be appreciated, I'm sure I'm probably not
 the only person that's come across this :( But basically we just need all
 characters like: lt; to be converted to '' and amp; to be '' meanwhile
 data that was encoded properly, data that has '' and '' showing up
 correctly should be left the same.
 
 Thanks in advance for any help :)





[flexcoders] Properly display html entities in datagrid

2010-01-08 Thread s_grollins
Hello everyone,

I've recently come across a problem at work where in much of the data
we're getting is showing up in the data-grid as:

bThe tags showb and the quot; quotes quot; aren't converted!

This is a problem and I'd like to be able to display this correctly:

The tags show and the  quotes  aren't converted!

We don't necessarily have too much control over the data, so I'm not
entirely sure how/why the items are coming up like this when some items
come up with characters like   in them. For instance: This is an item
 This is another item  In a breadcrumb trail. This shows up
correctly. I'm not sure what exactly should be done. But again since we
don't have control/access to the data, it cannot be changed or
substituted or converted to other formats. I thought of using htmlText
but that doesn't work if I have data like the breadcrumb string above
because it interprets the '' characters as opening tags and doesn't
render the entire data:

[Bindable]
private var testString:String = lt;bgt;6lt;bgt; 
quot;sevenquot;;

mx:Text text={testString} / !-- displays testString unchanged --
mx:Text htmlText={testString} / !-- displays: b6/b --

Any suggestions would definitely be appreciated, I'm sure I'm probably
not the only person that's come across this :( But basically we just
need all characters like: lt; to be converted to '' and amp; to be
'' meanwhile data that was encoded properly, data that has '' and ''
showing up correctly should be left the same.

Thanks in advance for any help :)