[flexcoders] Programmatic chart data tip

2007-02-16 Thread Tom Fitzpatrick
In a Plot chart, given the x  y coordinates of a datapoint (or the data 
values for the datapoint) is there a way to programmatically turn on and 
turn off the data tip for just that point?

- Tom




[flexcoders] Chart legend spacing

2007-01-09 Thread Tom Fitzpatrick
What is the way to style the spacing in a chart's legend?

Specifically, I'd like to control the spacing between legend markers and 
their titles as well as between legend items. In a small column chart 
I'm building, the spacing is far enough off that the legend titles seem 
to be aligned with the wrong markers.



Re: [flexcoders] Re: Chart legend spacing

2007-01-09 Thread Tom Fitzpatrick
Great - thanks!

- Tom

Tim Hoff wrote:

 Hi Tom,

 The horizontalGap property works for both of these in CSS.

 /* controls the gap between LegendItems */
 Legend {
  horizontalGap: 16; 
 }

 /* controls the gap between the LegendItem marker and the label */
 LegendItem {
  horizontalGap: 8; 
 }

 -TH
 __

 **Tim Hoff
 **Cynergy Systems, Inc.
 http://www.cynergysystems.com http://www.cynergysystems.comoffice/
 Office http://www.cynergysystems.comoffice/: 866-CYNERGY 

 --- In flexcoders@yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] wrote:
 
  What is the way to style the spacing in a chart's legend?
 
  Specifically, I'd like to control the spacing between legend markers 
 and
  their titles as well as between legend items. In a small column chart
  I'm building, the spacing is far enough off that the legend titles seem
  to be aligned with the wrong markers.
 

  




Re: [flexcoders] Re: Hands-on charts

2006-11-29 Thread Tom Fitzpatrick
Mark -

Thanks - I'll take a look at that.

- Tom

mark_g_wales wrote:



 Tom,

 I tried to take an excerpt of some existing code so there may be more
 imports, etc. that are needed. Hopefully this is the effect you were
 looking for...

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

 mx:Script
 ![CDATA[
 import mx.containers.HBox;
 import mx.containers.Panel;
 import mx.controls.Label;
 import mx.controls.Spacer;
 import mx.controls.sliderClasses.Slider;
 import mx.events.IndexChangedEvent;
 import mx.events.SliderEvent;
 import mx.controls.HSlider;

 public var oldValue:int = 0;
 public var criteria:Array = new Array();
 public var criteriaValues:Array = new Array();

 public function addSlider():void {
 var hbox:HBox = new HBox();
 vbox.addChild(hbox);

 var hslider:HSlider = new HSlider();
 hslider.id = new String(criteria.length);
 hslider.width = 400;
 hslider.height = 20;
 hslider.maximum = 100;
 hslider.liveDragging = true;
 hslider.setStyle(trackColors, [0x99, 0x99]);
 hslider.addEventListener(SliderEvent.CHANGE, slideControl);
 var sliderDO:DisplayObject = vbox.addChild(hslider);
 criteria.push(sliderDO);

 var hsliderValue:Label = new Label();
 hsliderValue.id = new String(criteria.length);
 hsliderValue.htmlText = font size='18'0/font;
 var hsliderValueDO:DisplayObject = hbox.addChild(hsliderValue);
 criteriaValues.push(hsliderValueDO);

 var spacer:Spacer = new Spacer();
 spacer.height = 50;
 vbox.addChild(spacer);
 }

 public function slideControl(event:SliderEvent):void {

 var currentSlider:int = new Number(event.target.id);

 // Redraw the box for the slider on each change/move
 vbox.graphics.beginFill(0x99, 1.0);
 vbox.graphics.drawRect(event.target.x, event.target.y,
 event.target.width, 20);
 vbox.graphics.beginFill(0xffcc00, 1.0);
 vbox.graphics.drawRect(event.target.x, event.target.y, event.value
 * .01 * event.target.width, 20);

 // Set display value for currently selected slider
 var sliderValue:String = new String(event.value).substr(0,2);
 criteriaValues[currentSlider].htmlText = font size='18' + new
 String(event.value).substr(0,2) + /font;
 }

 ]]
 /mx:Script

 mx:VBox id=vbox height=50% width=100% 
 mx:Button label=Add Slider click=addSlider() /
 mx:Spacer height=50 /
 /mx:VBox

 /mx:Application

  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com] On
  Behalf Of Tom Fitzpatrick
  Sent: Monday, November 27, 2006 6:34 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Hands-on charts
 
  Flex charts work beautifully responding to dynamic changes in data.
 
  Using the current components, is there any way to use Flex charts to
  change data?
 
  As a conceptual model, I'm thinking of the way parametric equalizers
  work in some audio programs, where it's possible to drag nodes on a
  line
 
  graph vertically or horizontally to change the parametric data.
 
  - Tom

  





Re: [flexcoders] Re: Hands-on charts

2006-11-29 Thread Tom Fitzpatrick
Ely -

Inching forward some more...

I implemented your tracking code (very clever) but it's still unclear 
how to use the Point data to rebuild the dataProvider. What is the hook 
that lets the function know which item in the dataProvider array is 
associated with the point data?

- Tom


Ely Greenfield wrote:
  
  
 Yup. To do mouse tracking, you generally need a mouse down, mouse 
 move, and mouse up handler.  Almost all of my code that does mouse 
 tracking looks like this:
  
  
 someComponent mouseDown=startTracking(event); /
  
  
 private function startTracking(e:MouseEvent):void
 {
 // listen to the systemManager so we get mouse move/up events even 
 when the mouse moves outside the component.
 // listen on capture so we can cancel move/rollover events going 
 to other components.
 systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true);
 systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true);
 track(e);
 }
  
 private function track(e:MouseEvent):void
 {
 // update your data/UI here.
 }
  
 private function endTracking(e:MouseEvent):void
 {
 track(e);

 // remove the event listeners until we need to track again.
 systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true);
 
 systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true);

 }
  

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Tom Fitzpatrick
 *Sent:* Tuesday, November 28, 2006 9:37 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Hands-on charts

 I'm trying out your suggested approach and ran into a conceptual
 problem. I can get the mouse coordinates and convert them to data on the
 mouseDown event - but then how do I track the mouse movement, since that
 uses a different event (mouseMove), and the function I'm working with is
 already tied to the mouseDown? The movement tracking seems necessary to
 get the new coordinates.

 - Tom

 Ely Greenfield wrote:
 
 
 
  It depends on just how much data you're trying to show in the chart,
  but chances are good that it will be very responsive.
 
  Ely.
 
 
  --
  *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *tom24569
  *Sent:* Monday, November 27, 2006 12:08 PM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Re: Hands-on charts
 
  Would this happen fast enough that the chart would seem to be
  responding to the mouse movement?
 
  - Tom
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED]
  wrote:
  
  
  
   Hi Tom. There's no interative modelling built in, but this should be
   pretty easy to do:
  
   1) listen for itemMouseDown events.
   2) track the mouse position
   3) convert the mouse position into data coordinates using the
   chart.localToData() function.
   4) write the new data coordinates into your dataProvider
  
  
   Ely.
  
  
   
  
   From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com] On
   Behalf Of Tom Fitzpatrick
   Sent: Monday, November 27, 2006 6:34 AM
   To: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Hands-on charts
  
  
  
   Flex charts work beautifully responding to dynamic changes in data.
  
   Using the current components, is there any way to use Flex charts to
   change data?
  
   As a conceptual model, I'm thinking of the way parametric equalizers
   work in some audio programs, where it's possible to drag nodes on 
 a line
  
   graph vertically or horizontally to change the parametric data.
  
   - Tom
  
 
 

  






Re: [flexcoders] Re: Hands-on charts

2006-11-29 Thread Tom Fitzpatrick
Ely -

Do you mean ChartItemEvent? I can't find ChartMouseEvent documented. 
ChartItemEvent gives me the HitData and access to the item, but I seem 
to lose the mouse tracking in the process.

- Tom

Ely Greenfield wrote:

  
  
  
 That depends on what you're trying to do specifically.
  
 The easy answer would be to say that this only works when the user 
 specifically clicks down and drags on an item in the chart.
  
 In that case, I'd modify my example below by:
  
 1) listen to the chart's itemMouseDown event instead of mouseDown
 2) change the type of the event object in the mouse down handler to 
 ChartMouseEvent
 3) in the event object, there will be a hitData property. That should 
 tell you which item in your dataProvider you should be updating.
 4) store off a reference to that item.
 5) in your track function, use localToData to convert mouse 
 coordinates to data coordinates
 6) in track function, write those data coordinates back into the item 
 you stored off.
  
 Ely.
  

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Tom Fitzpatrick
 *Sent:* Wednesday, November 29, 2006 9:31 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Hands-on charts

 Ely -

 Inching forward some more...

 I implemented your tracking code (very clever) but it's still unclear
 how to use the Point data to rebuild the dataProvider. What is the hook
 that lets the function know which item in the dataProvider array is
 associated with the point data?

 - Tom

 Ely Greenfield wrote:
 
 
  Yup. To do mouse tracking, you generally need a mouse down, mouse
  move, and mouse up handler. Almost all of my code that does mouse
  tracking looks like this:
 
 
  someComponent mouseDown=startTracking(event); /
 
 
  private function startTracking(e:MouseEvent):void
  {
  // listen to the systemManager so we get mouse move/up events even
  when the mouse moves outside the component.
  // listen on capture so we can cancel move/rollover events going
  to other components.
  systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true);
  systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true);
  track(e);
  }
 
  private function track(e:MouseEvent):void
  {
  // update your data/UI here.
  }
 
  private function endTracking(e:MouseEvent):void
  {
  track(e);
 
  // remove the event listeners until we need to track again.
  systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true);
 
  
 systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true);
 
  }
 
 
  --
  *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *Tom Fitzpatrick
  *Sent:* Tuesday, November 28, 2006 9:37 AM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Hands-on charts
 
  I'm trying out your suggested approach and ran into a conceptual
  problem. I can get the mouse coordinates and convert them to data on the
  mouseDown event - but then how do I track the mouse movement, since that
  uses a different event (mouseMove), and the function I'm working with is
  already tied to the mouseDown? The movement tracking seems necessary to
  get the new coordinates.
 
  - Tom
 
  Ely Greenfield wrote:
  
  
  
   It depends on just how much data you're trying to show in the chart,
   but chances are good that it will be very responsive.
  
   Ely.
  
  
   --
   *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com]
   *On Behalf Of *tom24569
   *Sent:* Monday, November 27, 2006 12:08 PM
   *To:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
   *Subject:* [flexcoders] Re: Hands-on charts
  
   Would this happen fast enough that the chart would seem to be
   responding to the mouse movement?
  
   - Tom
  
   --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL 
   PROTECTED]
   wrote:
   
   
   
Hi Tom. There's no interative modelling built in, but this should be
pretty easy to do:
   
1) listen for itemMouseDown events.
2) track the mouse position
3) convert the mouse position into data coordinates using the
chart.localToData() function.
4) write the new data coordinates into your dataProvider
   
   
Ely.
   
   

   
From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders

Re: [flexcoders] Re: Hands-on charts

2006-11-28 Thread Tom Fitzpatrick
I'm trying out your suggested approach and ran into a conceptual 
problem. I can get the mouse coordinates and convert them to data on the 
mouseDown event - but then how do I track the mouse movement, since that 
uses a different event (mouseMove), and the function I'm working with is 
already tied to the mouseDown? The movement tracking seems necessary to 
get the new coordinates.

- Tom

Ely Greenfield wrote:

  
  
 It depends on just how much data you're trying to show in the chart, 
 but chances are good that it will be very responsive.
  
 Ely.
  

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *tom24569
 *Sent:* Monday, November 27, 2006 12:08 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Hands-on charts

 Would this happen fast enough that the chart would seem to be
 responding to the mouse movement?

 - Tom

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
 wrote:
 
 
 
  Hi Tom. There's no interative modelling built in, but this should be
  pretty easy to do:
 
  1) listen for itemMouseDown events.
  2) track the mouse position
  3) convert the mouse position into data coordinates using the
  chart.localToData() function.
  4) write the new data coordinates into your dataProvider
 
 
  Ely.
 
 
  
 
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On
  Behalf Of Tom Fitzpatrick
  Sent: Monday, November 27, 2006 6:34 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Hands-on charts
 
 
 
  Flex charts work beautifully responding to dynamic changes in data.
 
  Using the current components, is there any way to use Flex charts to
  change data?
 
  As a conceptual model, I'm thinking of the way parametric equalizers
  work in some audio programs, where it's possible to drag nodes on a line
 
  graph vertically or horizontally to change the parametric data.
 
  - Tom
 

  





Re: [flexcoders] Re: Hands-on charts

2006-11-28 Thread Tom Fitzpatrick
I'm trying to use a chart to do this because the data are currently 
displayed in charts, so that seemed the most appropriate control to use 
for making data changes.

That said, I'd be very interested in seeing how you implemented this. 
Any chance of sharing your code?

- Tom

mark_g_wales wrote:


 Tom,

 I'm not sure if you are stuck on using charts to do this, but I think
 I accomplished a similar effect to what you want a while back by using
 the graphics package to draw a rectangle around a slider. I listened
 for slider events and would then clear and re-run the drawRect on each
 move. It was very little code and the effect was quite seamless.

 -Mark

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
 wrote:
 
 
 
  Yup. To do mouse tracking, you generally need a mouse down, mouse move,
  and mouse up handler. Almost all of my code that does mouse tracking
  looks like this:
 
 
  someComponent mouseDown=startTracking(event); /
 
 
  private function startTracking(e:MouseEvent):void
  {
  // listen to the systemManager so we get mouse move/up events even
  when the mouse moves outside the component.
  // listen on capture so we can cancel move/rollover events going to
  other components.
  systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true);
 
  systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true);
 
  track(e);
  }
 
  private function track(e:MouseEvent):void
  {
  // update your data/UI here.
  }
 
  private function endTracking(e:MouseEvent):void
  {
  track(e);
 
  // remove the event listeners until we need to track again.
  systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true);
 
  systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true);
 
  }
 
 
 
  
 
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On
  Behalf Of Tom Fitzpatrick
  Sent: Tuesday, November 28, 2006 9:37 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Re: Hands-on charts
 
 
 
  I'm trying out your suggested approach and ran into a conceptual
  problem. I can get the mouse coordinates and convert them to data on the
 
  mouseDown event - but then how do I track the mouse movement, since that
 
  uses a different event (mouseMove), and the function I'm working with is
 
  already tied to the mouseDown? The movement tracking seems necessary to
  get the new coordinates.
 
  - Tom
 
  Ely Greenfield wrote:
  
  
  
   It depends on just how much data you're trying to show in the chart,
   but chances are good that it will be very responsive.
  
   Ely.
  
  
   --
   *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  ]
   *On Behalf Of *tom24569
   *Sent:* Monday, November 27, 2006 12:08 PM
   *To:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 
   *Subject:* [flexcoders] Re: Hands-on charts
  
   Would this happen fast enough that the chart would seem to be
   responding to the mouse movement?
  
   - Tom
  
   --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com, Ely Greenfield egreenfi@
 
   wrote:
   
   
   
Hi Tom. There's no interative modelling built in, but this should be
pretty easy to do:
   
1) listen for itemMouseDown events.
2) track the mouse position
3) convert the mouse position into data coordinates using the
chart.localToData() function.
4) write the new data coordinates into your dataProvider
   
   
Ely.
   
   

   
From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com] On
Behalf Of Tom Fitzpatrick
Sent: Monday, November 27, 2006 6:34 AM
To: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Hands-on charts
   
   
   
Flex charts work beautifully responding to dynamic changes in data.
   
Using the current components, is there any way to use Flex charts to
change data?
   
As a conceptual model, I'm thinking of the way parametric equalizers
work in some audio programs, where it's possible to drag nodes on a
  line
   
graph vertically or horizontally to change

[flexcoders] Hands-on charts

2006-11-27 Thread Tom Fitzpatrick
Flex charts work beautifully responding to dynamic changes in data.

Using the current components, is there any way to use Flex charts to 
change data?

As a conceptual model, I'm thinking of the way parametric equalizers 
work in some audio programs, where it's possible to drag nodes on a line 
graph vertically or horizontally to change the parametric data.

- Tom




[flexcoders] Setting alpha style on a single stacked column

2006-11-08 Thread Tom Fitzpatrick
I've created a stacked column chart using a ColumnSet that contains 
three column series.

When building a group of four stacked columns, I'd like to 
programmatically set the alpha for all the elements in the first stacked 
column to .5.

What is the way to set the alpha style on the elements of just that one 
stacked column?

- Tom








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Re: Example: Creating and using custom tooltips

2006-09-20 Thread Tom Fitzpatrick
Thanks, Nick. I think that would work.

I realized, though, that a better way would be to always anchor the 
custom tooltip in the same x and y position relative to the tooltip 
target. That way it will stay out of the way of the pie chart.

I'm trying to figure that out now.

- Tom

n51red wrote:

 Hi Tom,

 I'm not sure exactly what effect you're referring to as battle of
 the tooltips, but if you do need to disable a tooltip for a short
 time you can do so by setting the components toolTip attribute to the
 empty string (). UIComponents throw a number of events as tooltips
 are shown and hidden, but I think toolTipStart and toolTipEnd are the
 most relevant here.

 So, in the toolTipStart event handler of the pie chart you would set
 the parent components toolTip attribute to  (empty string), and in
 the toolTipEnd event handler you'd change it back to   (single
 space) or whatever value you're using.

 Does that help at all?
 Nick

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] 
 wrote:
 
  Nick -
 
  Great example!
 
  One question. I've used your example to implement a custom tooltip
 on a
  component that also contains a pie chart. The pie chart has a
 tooltip as
  well.
 
  Is there any way to temporarily disable to component's overall
 tooltip
  while the pie chart tooltip is displaying - thereby avoiding the
 dreaded
  battle of the tooltips.
 
  - Tom
 
 
  n51red wrote:
  
   Hello,
  
   Somebody asked me to provide an example of how to use arbirary
   components as tool tips. So here goes:
  
   Notes
   -
  
   For a component to be used as a tooltip it must implement the
 IToolTip
   interface. I've used a base class (CustomToolTip) for the custom
   tooltips in this example that takes care of implementing the
 interface,
   and a few other things as documented within the code.
  
   Just like when using standard tooltips, you need to set the
 toolTip
   property of a component for a tooltip to be displayed for it.
 This is
   true even if you don't actually use the value in your tooltip
   component. That's why I set the toolTip variables to   in the
 example.
  
   When a tooltip is to be displayed for a component, that component
 fires
   a toolTipCreate event. To use your custom tooltip component you
 need to
   intercept this event and set its toolTip property to an instance
 of
   your custom tooltip component.
  
   The main application code
   -
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
   verticalGap=20
   mx:Script
   ![CDATA[
   import mx.events.*;
   import CustomToolTips.*;
   ]]
   /mx:Script
   mx:Label text=Component1 id=Component1 toolTip= 
   toolTipCreate=event.toolTip=new Component1ToolTip();/
   mx:Button label=Component2 id=Component2 toolTip= 
   toolTipCreate=event.toolTip=new Component2ToolTip();/
   /mx:Application
  
   A base class for components to be used as tooltips
   --
  
   package CustomToolTips
   {
   import mx.core.*;
   import mx.containers.*;
  
   public class CustomToolTip extends VBox implements IToolTip
   {
   public function CustomToolTip()
   {
   // Make the ToolTip invisible to the mouse so
   that it doesn't
   // interfere with the ToolTipManager's mouse-
   tracking.
   mouseEnabled = false;
   mouseChildren=false;
  
   //Add padding to prevent the component from
   //touching the sides of the application, which
   //looks untidy
   setStyle(paddingBottom, 10);
   setStyle(paddingRight, 10);
   }
  
   //IToolTip functions - unused in this case
   public function get text():String { return null; }
   public function set text(value:String):void {}
   }
   }
  
   A couple of custom tooltips extending the above class
   -
  
   ?xml version=1.0 encoding=utf-8?
   ctt:CustomToolTip xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
   xmlns:ctt=CustomToolTips.*
   width=150
   backgroundColor=#FF dropShadowEnabled=true
   borderColor=black borderThickness=1 borderStyle=solid
   mx:Label text=Custom Tooltip 1 fontSize=14
   fontWeight=bold/
   mx:Text text=This is the custom tooltip for component 1
   width=100%/
   /ctt:CustomToolTip
  
   ?xml version=1.0 encoding=utf-8?
   ctt:CustomToolTip xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
   xmlns:ctt=CustomToolTips.*
   width=225
   backgroundColor=white dropShadowEnabled=true
   borderColor=black borderThickness=1 borderStyle=solid
   mx:Label text=Custom Tooltip 2 fontSize=14
   fontWeight=bold color=blue/
   mx:Text text=This is the custom tooltip for component 2
   width

Re: [flexcoders] Re: Example: Creating and using custom tooltips

2006-09-20 Thread Tom Fitzpatrick
Lack-of-progress report. Your event handler suggestion works, if I use 
ToolTipManager to get the x and y of the currentTarget. The problem is 
that the tooltip's x and y seem to be calculated relative to the 
application, rather than relative to the target.

Hmm.

- Tom

n51red wrote:

 Interesting.

 One option is to set the x and y attribes of the tooltips in the
 toolTipShown event handler of the relevant component. The event handler
 might look like:

 event.toolTip.x = xPos;
 event.toolTip.y = yPos;

 Could you let me know what you come up with?

 Thanks,
 Nick

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] 
 wrote:
 
  Thanks, Nick. I think that would work.
 
  I realized, though, that a better way would be to always anchor the
  custom tooltip in the same x and y position relative to the tooltip
  target. That way it will stay out of the way of the pie chart.
 
  I'm trying to figure that out now.
 
  - Tom
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Example: Creating and using custom tooltips

2006-09-19 Thread Tom Fitzpatrick
Nick -

Great example!

One question. I've used your example to implement a custom tooltip on a 
component that also contains a pie chart. The pie chart has a tooltip as 
well.

Is there any way to temporarily disable to component's overall tooltip 
while the pie chart tooltip is displaying - thereby avoiding the dreaded 
battle of the tooltips.

- Tom


n51red wrote:

 Hello,

 Somebody asked me to provide an example of how to use arbirary
 components as tool tips. So here goes:

 Notes
 -

 For a component to be used as a tooltip it must implement the IToolTip
 interface. I've used a base class (CustomToolTip) for the custom
 tooltips in this example that takes care of implementing the interface,
 and a few other things as documented within the code.

 Just like when using standard tooltips, you need to set the toolTip
 property of a component for a tooltip to be displayed for it. This is
 true even if you don't actually use the value in your tooltip
 component. That's why I set the toolTip variables to   in the example.

 When a tooltip is to be displayed for a component, that component fires
 a toolTipCreate event. To use your custom tooltip component you need to
 intercept this event and set its toolTip property to an instance of
 your custom tooltip component.

 The main application code
 -

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
 verticalGap=20
 mx:Script
 ![CDATA[
 import mx.events.*;
 import CustomToolTips.*;
 ]]
 /mx:Script
 mx:Label text=Component1 id=Component1 toolTip= 
 toolTipCreate=event.toolTip=new Component1ToolTip();/
 mx:Button label=Component2 id=Component2 toolTip= 
 toolTipCreate=event.toolTip=new Component2ToolTip();/
 /mx:Application

 A base class for components to be used as tooltips
 --

 package CustomToolTips
 {
 import mx.core.*;
 import mx.containers.*;

 public class CustomToolTip extends VBox implements IToolTip
 {
 public function CustomToolTip()
 {
 // Make the ToolTip invisible to the mouse so
 that it doesn't
 // interfere with the ToolTipManager's mouse-
 tracking.
 mouseEnabled = false;
 mouseChildren=false;

 //Add padding to prevent the component from
 //touching the sides of the application, which
 //looks untidy
 setStyle(paddingBottom, 10);
 setStyle(paddingRight, 10);
 }

 //IToolTip functions - unused in this case
 public function get text():String { return null; }
 public function set text(value:String):void {}
 }
 }

 A couple of custom tooltips extending the above class
 -

 ?xml version=1.0 encoding=utf-8?
 ctt:CustomToolTip xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
 xmlns:ctt=CustomToolTips.*
 width=150
 backgroundColor=#FF dropShadowEnabled=true
 borderColor=black borderThickness=1 borderStyle=solid
 mx:Label text=Custom Tooltip 1 fontSize=14
 fontWeight=bold/
 mx:Text text=This is the custom tooltip for component 1
 width=100%/
 /ctt:CustomToolTip

 ?xml version=1.0 encoding=utf-8?
 ctt:CustomToolTip xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
 xmlns:ctt=CustomToolTips.*
 width=225
 backgroundColor=white dropShadowEnabled=true
 borderColor=black borderThickness=1 borderStyle=solid
 mx:Label text=Custom Tooltip 2 fontSize=14
 fontWeight=bold color=blue/
 mx:Text text=This is the custom tooltip for component 2
 width=100%/
 /ctt:CustomToolTip

 Regards,
 Nick

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Data interpolation in ColumnSets

2006-09-08 Thread Tom Fitzpatrick
Bump.

 So, is it clear from this error message that this is the same bug, or 
is there a way around it?

Thanks.

- Tom

Tom Fitzpatrick wrote:

 OK - assuming the right way to do this is to call the showDataEffect
 functon on the ColumnSet, here's the error message I receive:

 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()
 at mx.effects::EffectInstance/startEffect()
 at mx.effects.effectClasses::ParallelInstance/play()
 at mx.charts.chartClasses::ChartBase/::advanceEffectState()
 at
 mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList()
 at
 mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList()
 at mx.core::UIComponent/validateDisplayList()
 at mx.managers::LayoutManager/::validateDisplayList()
 at mx.managers::LayoutManager/::doPhasedInstantiation()
 at Function/http://adobe.com/AS3/2006/builtin::apply 
 http://adobe.com/AS3/2006/builtin::apply()
 at mx.core::UIComponent/::callLaterDispatcher2()
 at mx.core::UIComponent/::callLaterDispatcher()

 The error alert is shown while the app is starting up. I get a different
 error when I call the showDataEffect function on the individual
 ColumnSeries in the ColumnSets. If that's helpful I can send that as well.

 - Tom

 Ely Greenfield wrote:
 
 
 
  Hi Tom. chances are you're running into the same bug (stacked series +
  interpolation effects) that a number of people have hit. Can you send
  a longer stack trace?
 
  Ely.
 
 
  --
  *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *Tom Fitzpatrick
  *Sent:* Thursday, September 07, 2006 5:07 AM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Data interpolation in ColumnSets
 
  I have a Cartesian chart containing two ColumnSeries in two ColumnSets,
  like this:
 
  mx:series
  mx:ColumnSet columnWidthRatio=.375 offset=-.21
  type=stacked
  mx:ColumnSeries alpha=.6 yField=costs /
  mx:ColumnSeries alpha=.6 yField=oneTime/
  /mx:ColumnSet
 
  mx:ColumnSet columnWidthRatio=.375 offset=0.21
  type=stacked
  mx:ColumnSeries yField=revenue /
  mx:ColumnSeries yField=overhead /
  /mx:ColumnSet
  /mx:series
 
  My problem is that data interpolation doesn't seem to work in this
  context.
 
  I set up an interpolation like this:
 
  mx:SeriesInterpolate id=moveData
  duration=500
  minimumElementDuration=200
  elementOffset=0/
 
  But when I try to call it either from the individual ColumnSeries or the
  ColumnSets, using:
 
  showDataEffect=moveData
 
  I get an error message: Cannot access a property or method of a null
  object reference.
 
  Can anyone spot the problem - or is this not possible in this setup?
 
  - Tom
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Spacing stacked columns

2006-09-07 Thread Tom Fitzpatrick
Ely and Brendan -

Thanks to both of you - that worked.

Now I have another problem - how to get data interpolation to work in 
that context. I'll put it in a fresh posting.

- Tom

Brendan Meutzner wrote:

 Too lazy to figure out how to find link to groups message in Gmail, so 
 here's the message you're referring to...


 Hi Ben.  When a set of column series is clustered, the chart (or 
 columnSet) is setting the columnWidthRatio and offset properties to do 
 it. So if you wanted to cluster differently, you could put the 
 columnSeries inside a CartesianChart and set those properties yourself.
  
 To figure out how wide each column should be, you first need to decide 
 how wide you want the total cluster to be, and how much each column 
 should overlap. Then your formula would be:
  
 columnWidth = clusterWidth / (overlap + (series count)*(1-overlap));
  
 the offset is the offset of the middle of the column from the middle 
 of the category. given the clusterWidth and columnWidthRatio, the 
 offset for each series is:
  
 seriesOffset(N) = -clusterWidth/2 + (1-overlap)*columnWidthRatio*(N) + 
 columnWidthRatio/2;
  
 So if you have three series, and your total width is 75%, and the 
 overlap should be 50%, then
  
 columnWdithRatio = .75 / (.5 + 3*(1-.5))
 columnWdithRatio = .75 / 2;
 columnWdithRatio = .375
  
 given that,
  
 seriesOffset(0) = -.75/2 + (.5)*.375*0 + .375/2;
 seriesOffset(0) = -.1875;
  
 seriesOffset(1) = -.75/2 + (.5)*.375*1 + .375/2;
 seriesOffset(1) = 0;
  
 seriesOffset(2) = -.75/2 + (.5)*.375*2 + .375/2;
 seriesOffset(2) = -.75/2 + .375 + .375/2;;
 seriesOffset(2) = .1875;
  
 Putting that into practice, the markup would be
 CartesianChart
   series
  ColumnSeries columnWidthRatio=.375 offset=-.1875 /
  ColumnSeries columnWidthRatio=.375 offset=0 /
  ColumnSeries columnWidthRatio=.375 offset=.1875 /
 /CartesianChart
  
 (You may need to reverse the order of those, I don't remember)
  
 Ely.





 On 9/6/06, *Ely Greenfield*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

  
  
 Hi Tom.  To do that you should ditch the top level columnSet, put
 your two sub-column sets directly in a CartesianChart, and manage
 the offset and columnWidthRatio properties yourself.  As an
 example, if you want each stack to be a quarter width of the
 column with a quarter-width gap between them, you'd do something like:
  
 ColumnSet offset=-.375 columnWidthRatio=.25 
...
 /
 ColumnSet offset=.375 columnWidthRatio=.25
 ...
 /
  
 A while back I worked out some equations for what these values
 should be based on your desired width/gap, but I can't remember
 off the top of my head. They should be in the group archives if
 you do some creative searching.
  
 Ely.
  

 
 *From:* flexcoders@yahoogroups.com http://ups.com
 [mailto:flexcoders@ mailto:flexcoders@yahoogroups.com
 http://yahoogroups.com] *On Behalf Of *Tom Fitzpatrick
 *Sent:* Wednesday, September 06, 2006 9:03 AM
 *To:* flexcoders@yahoogroups.com http://ups.com
 *Subject:* [flexcoders] Spacing stacked columns

 In a Cartesian chart, I have defined two stacked Column Sets that
 each
 contain two ColumnSeries. These two ColumnSets are contained in a
 ColumnSet with type set to clustered.

 Kind of like this:

 mx:CartesianChart
 mx:series
 mx:ColumnSet type=clustered 
 mx:ColumnSet type=stacked
 mx:ColumnSeries yField=revenue /
 mx:ColumnSeries yField=overhead /
 /mx:ColumnSet
 mx:ColumnSet type=stacked 
 mx:ColumnSeries yField=costs /
 mx:ColumnSeries yField=oneTime/
 /mx:ColumnSet
 /mx:ColumnSet
 /mx:series
 /mx:CartesianChart

 This is working fine.

 What I'd like to do is put a space between each pair of stacked
 columns,
 whose edges are now touching. It appears that the properties offset
 and columnWidthRatio are available on the stacked ColumnSets,
 but I've
 tried various combinations and can't make it work.

 How can I calculate and set the column spacing in this situation?

 - Tom


  





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via

[flexcoders] Data interpolation in ColumnSets

2006-09-07 Thread Tom Fitzpatrick
I have a Cartesian chart containing two ColumnSeries in two ColumnSets, 
like this:

mx:series
mx:ColumnSet columnWidthRatio=.375 offset=-.21 
type=stacked
mx:ColumnSeries alpha=.6 yField=costs /
mx:ColumnSeries alpha=.6 yField=oneTime/
/mx:ColumnSet
   
mx:ColumnSet columnWidthRatio=.375 offset=0.21 
type=stacked
mx:ColumnSeries yField=revenue /
mx:ColumnSeries yField=overhead /
/mx:ColumnSet
/mx:series

My problem is that data interpolation doesn't seem to work in this context.

I set up an interpolation like this:

mx:SeriesInterpolate id=moveData
duration=500
minimumElementDuration=200
elementOffset=0/

But when I try to call it either from the individual ColumnSeries or the 
ColumnSets, using:

showDataEffect=moveData

I get an error message: Cannot access a property or method of a null 
object reference.

Can anyone spot the problem - or is this not possible in this setup?

- Tom




 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Data interpolation in ColumnSets

2006-09-07 Thread Tom Fitzpatrick
OK - assuming the right way to do this is to call the showDataEffect 
functon on the ColumnSet, here's the error message I receive:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()
at mx.effects::EffectInstance/startEffect()
at mx.effects.effectClasses::ParallelInstance/play()
at mx.charts.chartClasses::ChartBase/::advanceEffectState()
at 
mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList()
at 
mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

The error alert is shown while the app is starting up. I get a different 
error when I call the showDataEffect function on the individual 
ColumnSeries in the ColumnSets. If that's helpful I can send that as well.

- Tom



Ely Greenfield wrote:

  
  
 Hi Tom. chances are you're running into the same bug (stacked series + 
 interpolation effects) that a number of people have hit. Can you send 
 a longer stack trace?
  
 Ely.
  

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Tom Fitzpatrick
 *Sent:* Thursday, September 07, 2006 5:07 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Data interpolation in ColumnSets

 I have a Cartesian chart containing two ColumnSeries in two ColumnSets,
 like this:

 mx:series
 mx:ColumnSet columnWidthRatio=.375 offset=-.21
 type=stacked
 mx:ColumnSeries alpha=.6 yField=costs /
 mx:ColumnSeries alpha=.6 yField=oneTime/
 /mx:ColumnSet

 mx:ColumnSet columnWidthRatio=.375 offset=0.21
 type=stacked
 mx:ColumnSeries yField=revenue /
 mx:ColumnSeries yField=overhead /
 /mx:ColumnSet
 /mx:series

 My problem is that data interpolation doesn't seem to work in this 
 context.

 I set up an interpolation like this:

 mx:SeriesInterpolate id=moveData
 duration=500
 minimumElementDuration=200
 elementOffset=0/

 But when I try to call it either from the individual ColumnSeries or the
 ColumnSets, using:

 showDataEffect=moveData

 I get an error message: Cannot access a property or method of a null
 object reference.

 Can anyone spot the problem - or is this not possible in this setup?

 - Tom

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Spacing stacked columns

2006-09-06 Thread Tom Fitzpatrick
In a Cartesian chart, I have defined two stacked Column Sets that each 
contain two ColumnSeries. These two ColumnSets are contained in a 
ColumnSet with type set to clustered.

Kind of like this:

mx:CartesianChart
mx:series
mx:ColumnSet type=clustered 
mx:ColumnSet type=stacked
mx:ColumnSeries yField=revenue /
mx:ColumnSeries yField=overhead /
/mx:ColumnSet
mx:ColumnSet type=stacked 
mx:ColumnSeries yField=costs /
mx:ColumnSeries yField=oneTime/
/mx:ColumnSet
/mx:ColumnSet
/mx:series
/mx:CartesianChart

This is working fine.

What I'd like to do is put a space between each pair of stacked columns, 
whose edges are now touching. It appears that the properties offset 
and columnWidthRatio are available on the stacked ColumnSets, but I've 
tried various combinations and can't make it work.

How can I calculate and set the column spacing in this situation?

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Dynamic datagrid columns

2006-08-14 Thread Tom Fitzpatrick
The dynamic column methods for the datagrid seem to have disappeared 
between 1.5  2.

I've looked around for examples or descriptions of Flex 2 replacements 
for methods such as dataGrid.addColumn() and dataGric.removeAllColumns() 
that were available in 1.5, but haven't come up with much. Anyone have 
any pointers?

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [Junk E-Mail - LOW] [flexcoders] Dynamic datagrid columns

2006-08-14 Thread Tom Fitzpatrick
Shan - yes, that was enough to get me going. It's actually easier than 
in 1.5.

Thanks!

- Tom

Shannon Hicks wrote:

 Yes. Here's a little sample code, hopefully you can figure out what I 
 did :)
  
public function getProductsResult(event:ResultEvent):void {
 acProducts = event.result as ArrayCollection;
 var newColumns:Array = dgStoreStates.columns;
 var cf:ClassFactory = new 
 ClassFactory(com.webapper.controls.GridCheckBox);
 var thisColumn:DataGridColumn;
 
 for (var i:Number=0;iacProducts.length;i++) {
  thisColumn = new DataGridColumn();
  thisColumn.dataField = prod + 
 acProducts.getItemAt(i).productID.toString();
  thisColumn.setStyle(textAlign,center);
  thisColumn.width = 100;
  thisColumn.headerText = acProducts.getItemAt(i).productName;
  thisColumn.headerText = thisColumn.headerText.replace(amp;,);
  thisColumn.itemRenderer = cf;
  thisColumn.rendererIsEditor = true;
  thisColumn.editorDataField = value;
  newColumns.push(thisColumn);
  dgStoreStates.columns = newColumns;
 }
 CursorManager.removeBusyCursor();
}
  
 Shan

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Tom Fitzpatrick
 *Sent:* Monday, August 14, 2006 10:36 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [Junk E-Mail - LOW] [flexcoders] Dynamic datagrid columns

 The dynamic column methods for the datagrid seem to have disappeared
 between 1.5  2.

 I've looked around for examples or descriptions of Flex 2 replacements
 for methods such as dataGrid.addColumn() and dataGric.removeAllColumns()
 that were available in 1.5, but haven't come up with much. Anyone have
 any pointers?

 - Tom


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.10.9/417 - Release Date: 8/11/2006


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.10.9/417 - Release Date: 8/11/2006

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: ToggleButtonBar deselect

2006-08-11 Thread Tom Fitzpatrick
Tim - that worked great. And I was able to easily extend that code to 
deselect any selected button (by deselecting all buttons).

Thanks!

- Tom

Tim Hoff wrote:

 Hi Tom,

 This code would deselect the first button in the ToggleButtonBar.

 -TH

 import mx.controls.Button;
 Button(myToggleButtonBar.getChildAt(0)).selected = false;

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] 
 wrote:
 
  Is there any way to programmatically deselect a button on the
  ToggleButtonBar - to start out, say, with no button selected?
 
  - Tom
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] ToggleButtonBar deselect

2006-08-10 Thread Tom Fitzpatrick
Is there any way to programmatically deselect a button on the 
ToggleButtonBar - to start out, say, with no button selected?

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Combobox - truncate to fit

2006-08-09 Thread Tom Fitzpatrick
The truncate-to-fit attribute works beautifully on labels. Is there a 
way to invoke the truncate to fit functionality on combobox labels - 
so that long labels on a fixed-width combobox would get an ellipsis, 
with the full label appearing in a tooltip?

If this is possible, what would be the easiest approach?

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Datatips on Cartesian chart

2006-08-03 Thread Tom Fitzpatrick
I have a Cartesian chart that contains several column series and a line 
series.

I'm customizing the dataTips for the chart with a simple dataTipFunction:

private function buildDataTip(e:HitData):String
{
var col:ColumnSeries = ColumnSeries(e.element);
return b+col.name+:/bbr+ e.item[col.yField];
}

This works fine for the columns - but of course not for the line.

Within that function, how would I define a separate block of code to use 
in creating a custom datatip for the line series?

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Datatips on Cartesian chart

2006-08-03 Thread Tom Fitzpatrick
Yes, that is syntax was the ticket - thanks, Matt. To paraphrase Bill 
Clinton, I now know what the meaning of is is.

I did have to do it slightly differently, to avoid a no return value 
error - storing the return string in a variable outside the if statement.

Here's how it looks:

private function buildDataTip(e:HitData):String
{
var returnItem:String;
if (e.element is ColumnSeries)
{
var col:ColumnSeries = ColumnSeries(e.element);
returnItem = b+col.name+:/bbr+ e.item[col.yField];
}
else if (e.element is LineSeries)
{
var line:LineSeries = LineSeries(e.element);
returnItem = b+line.name+:/bbr+ e.item[line.yField];
}
return returnItem;
}

- Tom

Matt Horn wrote:

 you can check against the series type with e.element; something like:

 if (e.element is ColumnSeries) {
 var col:ColumnSeries = ColumnSeries(e.element);
 return b+col.name+:/bbr+ e.item[col.yField];
 } else if (e.element is LineSeries) {
 ...
 }

 hth,

 matt horn
 flex docs

  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
  Sent: Thursday, August 03, 2006 12:00 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Datatips on Cartesian chart
 
  I have a Cartesian chart that contains several column series
  and a line series.
 
  I'm customizing the dataTips for the chart with a simple
  dataTipFunction:
 
  private function buildDataTip(e:HitData):String { var
  col:ColumnSeries = ColumnSeries(e.element); return
  b+col.name+:/bbr+ e.item[col.yField]; }
 
  This works fine for the columns - but of course not for the line.
 
  Within that function, how would I define a separate block of
  code to use in creating a custom datatip for the line series?
 
  - Tom
 
 
 
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] View states and creation policy

2006-07-31 Thread Tom Fitzpatrick
I'm having a problem with transitions in view states - transition 
effects don't happen until the change between states has occurred at 
least once. After that, everything works fine.

In viewStacks in 1.5, I got around a similar problem by setting 
creationPolicy = all. I saw an earlier exchange where it was pointed 
out that creationPolicy can be set to all on a view state's AddChild 
tag, but this doesn't seem to help.

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Custom datatip for pie chart

2006-07-31 Thread Tom Fitzpatrick
Matt - yes, that works. Still feels a bit like a workaround, but I'll 
take it.

Thanks!

- Tom

Matt Horn wrote:

 I don't have a better idea, but it's pretty easy to disable labels:

 Set labelPosition to inside and return an empty string in the label
 function.

 hth,

 matt horn
 flex docs

  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
  Sent: Friday, July 28, 2006 11:20 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Custom datatip for pie chart
 
  I was starting to think along the same lines, but I was
  hoping there was more direct access to the percent value.
 
  Trying this your code, it does work - but only if I have
  labelPosition set to something besides none.
 
  The problem is, I don't want to display labels!
 
  - Tom
 
  Matt Horn wrote:
  
   how about using the label function to populate an associative array
   and then using that value in your data tip:
  
   import mx.charts.HitData;
   import mx.formatters.*;
  
   public var a:Array = new Array();
  
   private function buildDataTip(e:HitData):String { var
  pieName:String =
   e.item[pie.nameField]; var pieValue:Number = e.item[pie.field]; var
   piePercent:String = a[e.item.Expense]; var s:String =
  pieName + : +
   pieValue + : + piePercent; return s; }
  
   public function buildLabel(data:Object, field:String, index:Number,
   percentValue:Number):String { a[data.Expense] =
  percentValue; return
   data.Expense + : $ + data.Amount + \n + percentValue + %; }
  
   hth,
  
   matt horn
   flex docs
  
-Original Message-
From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
Sent: Thursday, July 27, 2006 4:11 PM
To: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Custom datatip for pie chart
   
I'm building a custom datatip for a pie chart.
   
How do I get to the percent values for the pie wedges? (In the
labelFunction this is expressed as percentValue.)
   
Here's how I'm getting to other values so far:
   
private function buildDataTip(e:HitData) : String { var
pie:PieSeries = PieSeries(e.element); var pieName:String =
e.item[pie.nameField]; var pieValue:Number =
  e.item[pie.field]; var
piePercent = ?
.
return .
}
   
- Tom
   
   
   
   
   
  
  
 
 
 
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Pie chart dropshadow

2006-07-28 Thread Tom Fitzpatrick
That works - thanks!

- Tom

Matt Horn wrote:

 Check out the DropShadowFilter class; you can modify its settings on the
 pie's series. Here's how you might use it:

 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
 xmlns:flash=flash.filters.*
 mx:Script
 [Bindable]
 public var expenses:Object = [
 {Expense: Taxes, Amount: 2000},
 {Expense: Rent, Amount: 1000},
 {Expense: Food, Amount: 200}
 ];
 /mx:Script
 mx:Panel title=Pie Chart
 mx:PieChart id=pie dataProvider={expenses}
 showDataTips=true
 mx:series
 mx:Array
 mx:PieSeries field=Amount
 nameField=Expense labelPosition=callout
 mx:filters

 flash:DropShadowFilter distance=10 color=0x66 alpha=.5/
 /mx:filters

 /mx:PieSeries
 /mx:Array
 /mx:series
 /mx:PieChart
 mx:Legend dataProvider={pie}/
 /mx:Panel
 /mx:Application

 To turn it off, just set the filters array to empty:

 mx:filters
 mx:Array/
 /mx:filters

 Or set distance to 0 or alpha to 0...

 hth,

 matt horn
 flex docs


  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
  Sent: Thursday, July 27, 2006 4:56 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Pie chart dropshadow
 
  Is there a way to control the dropshadow on a pie chart?
  Can't find this anywhere.
 
  The ability to turn it on and off would be good. Control over
  distance, color, and direction would be even better.
 
  - Tom
 
 
 
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Custom datatip for pie chart

2006-07-28 Thread Tom Fitzpatrick
I was starting to think along the same lines, but I was hoping there was 
more direct access to the percent value.

Trying this your code, it does work - but only if I have labelPosition 
set to a value besides none.

The problem is, I don't want to display labels!

- Tom

Matt Horn wrote:

 how about using the label function to populate an associative array and
 then using that value in your data tip:

 import mx.charts.HitData;
 import mx.formatters.*;

 public var a:Array = new Array();

 private function buildDataTip(e:HitData):String {
 var pieName:String = e.item[pie.nameField];
 var pieValue:Number = e.item[pie.field];
 var piePercent:String = a[e.item.Expense];
 var s:String = pieName + : + pieValue + : +
 piePercent;
 return s;
 }

 public function buildLabel(data:Object, field:String,
 index:Number, percentValue:Number):String {
 a[data.Expense] = percentValue;
 return data.Expense + : $ + data.Amount + \n +
 percentValue + %;
 }

 hth,

 matt horn
 flex docs

  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
  Sent: Thursday, July 27, 2006 4:11 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Custom datatip for pie chart
 
  I'm building a custom datatip for a pie chart.
 
  How do I get to the percent values for the pie wedges? (In
  the labelFunction this is expressed as percentValue.)
 
  Here's how I'm getting to other values so far:
 
  private function buildDataTip(e:HitData) : String { var
  pie:PieSeries = PieSeries(e.element); var pieName:String =
  e.item[pie.nameField]; var pieValue:Number =
  e.item[pie.field]; var piePercent = ?
  .
  return .
  }
 
  - Tom
 
 
 
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Custom datatip for pie chart

2006-07-28 Thread Tom Fitzpatrick
I was starting to think along the same lines, but I was hoping there was 
more direct access to the percent value.

Trying this your code, it does work - but only if I have labelPosition 
set to something besides none.

The problem is, I don't want to display labels!

- Tom



Matt Horn wrote:

 how about using the label function to populate an associative array and
 then using that value in your data tip:

 import mx.charts.HitData;
 import mx.formatters.*;

 public var a:Array = new Array();

 private function buildDataTip(e:HitData):String {
 var pieName:String = e.item[pie.nameField];
 var pieValue:Number = e.item[pie.field];
 var piePercent:String = a[e.item.Expense];
 var s:String = pieName + : + pieValue + : +
 piePercent;
 return s;
 }

 public function buildLabel(data:Object, field:String,
 index:Number, percentValue:Number):String {
 a[data.Expense] = percentValue;
 return data.Expense + : $ + data.Amount + \n +
 percentValue + %;
 }

 hth,

 matt horn
 flex docs

  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick
  Sent: Thursday, July 27, 2006 4:11 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Custom datatip for pie chart
 
  I'm building a custom datatip for a pie chart.
 
  How do I get to the percent values for the pie wedges? (In
  the labelFunction this is expressed as percentValue.)
 
  Here's how I'm getting to other values so far:
 
  private function buildDataTip(e:HitData) : String { var
  pie:PieSeries = PieSeries(e.element); var pieName:String =
  e.item[pie.nameField]; var pieValue:Number =
  e.item[pie.field]; var piePercent = ?
  .
  return .
  }
 
  - Tom
 
 
 
 
 

  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Custom datatip for pie chart

2006-07-27 Thread Tom Fitzpatrick
I'm building a custom datatip for a pie chart.

How do I get to the percent values for the pie wedges? (In the 
labelFunction this is expressed as percentValue.)

Here's how I'm getting to other values so far:

private function buildDataTip(e:HitData) : String
{
var pie:PieSeries = PieSeries(e.element);
var pieName:String = e.item[pie.nameField];
var pieValue:Number = e.item[pie.field];
 var piePercent = ?
 .
 return .
   }

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Pie chart dropshadow

2006-07-27 Thread Tom Fitzpatrick
Is there a way to control the dropshadow on a pie chart? Can't find this 
anywhere.

The ability to turn it on and off would be good. Control over distance, 
color, and direction would be even better.

- Tom




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Font mysteries

2006-07-17 Thread Tom Fitzpatrick
Fonts are exhibiting some wacky behavior for me.

I have a VBox that contains two simple label elements. I'm trying to add 
a filter to the VBox and have the fonts in the labels display properly.

Before the filter is applied, the Label fonts display fine.

When I add a glow filter to the VBox, the antialiasing on the Label 
fonts disappears.

Strangely, when the Label text is long enough to force a scrollbar on 
the VBox, the Label fonts are suddenly antialiased correctly.

Embedding the font (I'm using Verdana) and applying it using a stylename 
does apply some antialiasing in the VBox with the filter, but it doesn't 
look nearly as good as the unstyled text in the filtered VBox with 
forced scrollbars or the VBox with no filter.

I haven't tried FlashType fonts - that's next on my list - but I thought 
maybe someone could explain what's going on here or point me to a solution.

- Tom






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Font mysteries

2006-07-17 Thread Tom Fitzpatrick
Thanks for the suggestions.

Since the filter is being applied to a VBox, my only option was to try a 
custom setting for the cacheAsBitmap attribute. Resetting both the 
cacheAsBitmap and cachePolicy attributes for both the VBox and the 
Labels didn't solve the problem.

The mystery remains...

- Tom

JesterXL wrote:

 David Colletta mentioned to me on the Flexcomponents list that Microsoft
 Windows' ClearType sometimes gets turned off during component redraws. 
 I've
 experienced this exact same thing you have. If you turn ClearType off
 (desktop, right click  properties, appearence tab, effects button) 
 you can
 see the difference to normal fonts and embedded fonts; the ClearType 
 does a
 2nd run of anti-aliasing (sometimes).

 My suggestion is, if you can, utilize a bitmap with the filter on it 
 in an
 imaging program and utilize scale9 where applicable. If that is not an
 option, attempt to use your own cacheAsBitmap policy (since Containers 
 have
 their own heuristic for that stuff, cacheBitmapPolicy).

 - Original Message -
 From: Tom Fitzpatrick [EMAIL PROTECTED] 
 mailto:tom%40streamlinestudios.com
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 Sent: Monday, July 17, 2006 9:53 AM
 Subject: [flexcoders] Font mysteries

 Fonts are exhibiting some wacky behavior for me.

 I have a VBox that contains two simple label elements. I'm trying to add
 a filter to the VBox and have the fonts in the labels display properly.

 Before the filter is applied, the Label fonts display fine.

 When I add a glow filter to the VBox, the antialiasing on the Label
 fonts disappears.

 Strangely, when the Label text is long enough to force a scrollbar on
 the VBox, the Label fonts are suddenly antialiased correctly.

 Embedding the font (I'm using Verdana) and applying it using a stylename
 does apply some antialiasing in the VBox with the filter, but it doesn't
 look nearly as good as the unstyled text in the filtered VBox with
 forced scrollbars or the VBox with no filter.

 I haven't tried FlashType fonts - that's next on my list - but I thought
 maybe someone could explain what's going on here or point me to a 
 solution.

 - Tom

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

  





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Text input live formatting

2006-07-10 Thread Tom Fitzpatrick
Is there a way to apply number formatting (e.g., thousands separator) to 
a text input while the user is typing the number?

Thanks.

- Tom




 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] show/hide panel borders (F2b3)

2006-06-13 Thread Tom Fitzpatrick
Hi Jim -

Thanks for your answer and sample. My problem was in changing the 
borderStyle to none - that's what was messing up the panel layout.

But then I ran into a different problem - demonstrated in your example 
as well - which is that changing the thickness of the border shrinks the 
contents of the panel and causes everything to move inward. What I 
wanted was a simple selection indicator that leaves everything inside 
the panel as is. What I ended up doing was surrounding the panel with a 
vbox that has all paddings set to zero and the same corner radius as the 
panel, and it's this border color that I'm changing. This leaves 
everything alone inside the panel.

It does bring up yet another problem, though, which I'll address in a 
separate posting.

- Tom

Jim Robson wrote:

 Hey Tom,

 I can't reproduce your issue. Using the code below, the
 border toggles off and on, and the panel retains its
 rounded corners. Perhaps I misunderstood the nature of
 your question?

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

 mx:Script
 ![CDATA[
 private var foo:Boolean = true
 private function swapBorder():void {
 if(foo){
 //Remove border
 pnlUgly.setStyle(borderThickness,0);
 }else{
 //Replace border
 pnlUgly.setStyle(borderThickness,2);
 pnlUgly.setStyle(borderColor,0xff8040);
 }
 foo = !foo;
 }
 ]]
 /mx:Script

 mx:Panel id=pnlUgly x=177 y=107 width=310
 height=200 layout=absolute cornerRadius=10
 borderStyle=solid borderThickness=2
 borderColor=#ff8040 backgroundColor=#00ff00
 title=Ugly Panel
 mx:Form x=10 y=10
 mx:FormItem label=Label
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Label
 mx:ComboBox/mx:ComboBox
 /mx:FormItem
 mx:FormItem label=Label
 mx:Button label=Button click=swapBorder();/
 /mx:FormItem
 /mx:Form
 /mx:Panel

 /mx:Application

 On Mon, 12 Jun 2006 16:51:59 -0400
 Tom Fitzpatrick [EMAIL PROTECTED] 
 mailto:tom%40streamlinestudios.com wrote:
  Yes - I tried that. The problem is that the border, even
 when set to the
  panel's background color, interrupts it visually -
 overlaying the panel
  header, for example.
 
  It seems that what I need is to redraw or refresh the
 panel after the
  border is removed to restore the original look. I just
 don't know how to
  do that.
 
  - Tom
 
  Jim Robson wrote:
 
  Tom,
 
  Instead of removing the border, which seems to confuse
 the
  player, could you just toggle the border's color? When
 you
  want the border to disappear, change its color to the
 same
  color as the panel's background. Then change the color
  back when you want the border to be visible.
 
  Will that work?
 
  Jim
 
  On Mon, 12 Jun 2006 14:48:15 -0400
  Tom Fitzpatrick [EMAIL PROTECTED] 
 mailto:tom%40streamlinestudios.com
  mailto:tom%40streamlinestudios.com wrote:
   I have a panel with corner radius set to 10.
  
   I'm trying to turn its border on and off
  programatically, toggling the
   border styles between solid and none, thickness
 between
  2 and 0.
  
   The toggling is working fine, but when I hide the
 border
  after showing
   it once, I lose the panel's curved corner radius and
 its
  dropshadow.
  
   Is there some way to just turn the border on and off
  while still
   retaining the dropshadow and the look of the panel's
  corner radius?
  
   - Tom
  
  
 
 
 
 
 

  





 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] show/hide panel borders (F2b3)

2006-06-12 Thread Tom Fitzpatrick
I have a panel with corner radius set to 10.

I'm trying to turn its border on and off programatically, toggling the 
border styles between solid and none, thickness between 2 and 0.

The toggling is working fine, but when I hide the border after showing 
it once, I lose the panel's curved corner radius and its dropshadow.

Is there some way to just turn the border on and off while still 
retaining the dropshadow and the look of the panel's corner radius?

- Tom




 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] show/hide panel borders (F2b3)

2006-06-12 Thread Tom Fitzpatrick
Yes - I tried that. The problem is that the border, even when set to the 
panel's background color, interrupts it visually - overlaying the panel 
header, for example.

It seems that what I need is to redraw or refresh the panel after the 
border is removed to restore the original look. I just don't know how to 
do that.

- Tom

Jim Robson wrote:

 Tom,

 Instead of removing the border, which seems to confuse the
 player, could you just toggle the border's color? When you
 want the border to disappear, change its color to the same
 color as the panel's background. Then change the color
 back when you want the border to be visible.

 Will that work?

 Jim

 On Mon, 12 Jun 2006 14:48:15 -0400
 Tom Fitzpatrick [EMAIL PROTECTED] 
 mailto:tom%40streamlinestudios.com wrote:
  I have a panel with corner radius set to 10.
 
  I'm trying to turn its border on and off
 programatically, toggling the
  border styles between solid and none, thickness between
 2 and 0.
 
  The toggling is working fine, but when I hide the border
 after showing
  it once, I lose the panel's curved corner radius and its
 dropshadow.
 
  Is there some way to just turn the border on and off
 while still
  retaining the dropshadow and the look of the panel's
 corner radius?
 
  - Tom
 
 

  





 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Datagrid text colors (v1.5)

2006-02-16 Thread Tom Fitzpatrick
At 08:35 AM 2/15/2006, you wrote:
You could create a cellRenderer of a DataGridColumn

Yes, so simple - I just based a cellRenderer on the Text component, and set 
its htmlText value to item.[variablename]. Since the html formatting was 
already there, that was it!

Thanks!

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Datagrid text colors (v1.5)

2006-02-15 Thread Tom Fitzpatrick
In a datagrid, I want to display the text in a cell using two different 
colors - in the style of syntax formatting.

Is there any way to do this in version 1.5 (or 2)?

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Date sorting in datagrid [1.5]

2006-02-09 Thread Tom Fitzpatrick
In a datagrid, there a way to sort dates independently from the display 
formatting?

I have a datagrid with dates displayed in the format 11 Feb 2006. Is 
there a way to sort the dates in the correct chronological order and still 
have them display in this format?

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Date sorting in datagrid [1.5]

2006-02-09 Thread Tom Fitzpatrick
At 07:07 AM 2/9/2006, you wrote:


See if this helps:
http://weblogs.macromedia.com/mesh/archives/2005/04/sorting_date_fi.cfm

Looks like it should help - but I'm having problems.

I'm guessing this is because I'm setting the date in the dataprovider using 
the DateField class, so it's not returning the date in a format the script 
can use.

But this is only a guess - any help appreciated!

- Tom 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Accessing local files

2006-02-06 Thread Tom Fitzpatrick




I'm working with some back-end programmers who asked the following
question:
We are using a data load process which will
take (workspace, filename, type) arguments as inputs to the process, and
we need to enable the user to select a file and submit it to the server
and then trigger the load process. Can we access a local file and
transmit it to a specified location on the server (i.e.
c:\clients\specific client ) from within Flex? Do we need
to have Flex link to a JSP page to enable this functionality?

Is there a simple answer to this question? We're working on Flex 1.5 with
Tomcat running on a remote server. 
Does Flex 2 offer any advantages in this situation? 
- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










Re: [flexcoders] Yahoo Maps questions

2006-01-19 Thread Tom Fitzpatrick
Thanks, John - yes, I've posted to that list, but there don't seem to be 
many people there either working with the Flex API.

- Tom

At 03:30 PM 1/19/2006, you wrote:
Tom Fitzpatrick wrote:
  Any input or pointers to other Flex/Yahoo Maps code examples much 
 appreciated.

I haven't been able to dig as deeply as I'd like, and so can't answer
the questions, but I do know a riper venue for such discussions:
http://groups.yahoo.com/group/yws-maps/

jd




--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Yahoo Maps questions

2006-01-14 Thread Tom Fitzpatrick
Anyone else working with Yahoo Maps?

I've been playing with it (using Flex 1.5) and have a some questions.

Building on the standard examples at Yahoo, I'm getting things to work, but:

- At certain zoom levels, the navigator seems to have a hard time 
refreshing; it will go black, but then if I drag  the map around it 
sometimes refreshes - and then sometimes only partially

- I don't see where I'm supposed to put my Yahoo Maps AppID, and wonder 
whether this makes a difference

- Generally, things seem much slower than on the Yahoo Maps beta site

Trying to get Jesse's example (posted earlier) to work:

- I get a hard crash every time as soon as I try to use the sliders to zoom

Any input or pointers to other Flex/Yahoo Maps code examples much appreciated.

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Datagrid header renderer (F 1.5)

2005-11-30 Thread Tom Fitzpatrick
Can anyone point to a working example of a header renderer for a dataGrid?

I'd like to be able to style the type and the background color for an 
individual dataGrid column header. I've looked through the docs and can't 
locate any code that works.

- Tom






 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Collapsable title window

2005-11-30 Thread Tom Fitzpatrick
I'm trying to create a collapsable TitleWindow to use as a popup.

I'm loosely basing it on Christophe Coenraets' Pod.as code, which extends 
the Panel component.

The problem I'm having is with the code that actually makes the window open 
and close, based on a state variable. Here's the relevant excerpt:


private var __state: Number=1; // 0=Minimized 1=Maximized

 function set state(_state)
 {
 __state=_state;
 if (_state==0) // Minimized
 {
 this.height=getStyle(headerHeight)+5;
 sbStateDown.visible=false;
 sbStateUp.visible=true;
 dispatchEvent({type: minimize, target: this});
 }
 else
 {
 this.height=100%;
 sbStateUp.visible=false;
 sbStateDown.visible=true;
 dispatchEvent({type: maximize, target: this});
 }
 }

 function get state(): Number
 {
 return __state;
 }
--

Everything works fine when the component is merely instantiated, but not 
when it's called as a popup. In that case, the button switches correctly 
but the window doesn't change open and close. Must be something with the 
way this is defined in the targeting in the above code. Can anyone 
suggest a solution?

- Tom






 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Namespace syntax

2005-11-22 Thread Tom Fitzpatrick
At 03:46 PM 11/22/2005, you wrote:
I'm using a button called treeButton to open a custom component called
TreeWindow (based on the TitleWindow).

snip

Never mind - I just forgot to import the components from the namespace.

- Tom







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: RE : [flexcoders] Styling a link in LinkBar (F 1 .5)

2005-11-20 Thread Tom Fitzpatrick
At 04:53 AM 11/20/2005, you wrote:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09363.html

Thanks for this link, Philippe - this works fine, but only if the 
dataProvider is not a ViewStack, in which case no click event is broadcast. 
Unfortunately, I do currently use a ViewStack as the dataProvider. I 
suppose I could invoke the ViewStack change from within the function, if 
there's no other way. Is that the case?

- Tom



De: flexcoders@yahoogroups.com de la part de Tom Fitzpatrick
Date: sam. 19/11/2005 13:12
À: flexcoders@yahoogroups.com
Objet : [flexcoders] Styling a link in LinkBar (F 1.5)


Is there a way to style a single link in a LinkBar?

I want to add a bold font weight to the disabled link, in addition to
specifying its color, while leaving the other links in the normal font
weight . Is there any way to do this? If not in 1.5, is this possible in 2.0?

Thanks.

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development 
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 
Computer software development 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 
Software design and development 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 

Macromedia flex 
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 
Software development best practice 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
 




YAHOO! GROUPS LINKS



*   Visit your group flexcoders 
http://groups.yahoo.com/group/flexcoders  on the web.

*   To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]

*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service http://docs.yahoo.com/info/terms/ .






--
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely 
for the use of the individual to whom it is addressed. If you have 
received this email in error please send it back to the person that sent 
it to you. Any views or opinions presented are solely those of author and 
do not necessarily represent those the Emakina Company. Unauthorized 
publication, use, dissemination, forwarding, printing or copying of this 
email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain 
any virus but we decline any responsability in case of any damage caused 
by an a non detected virus.
--




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Styling a link in LinkBar (F 1.5)

2005-11-19 Thread Tom Fitzpatrick
Is there a way to style a single link in a LinkBar?

I want to add a bold font weight to the disabled link, in addition to 
specifying its color, while leaving the other links in the normal font 
weight . Is there any way to do this? If not in 1.5, is this possible in 2.0?

Thanks.

- Tom






 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Custom component rollover (Flex 1.5)

2005-10-28 Thread Tom Fitzpatrick
Yes, I found out that mouseEnabled is Flex 2 only. Yes, I'm handling the 
mouseOver and mouseOut events to show and hide an over graphic.

At 09:12 PM 10/27/2005, you wrote:
I think mouseEnabled is Flex 2 only.

How are you doing the rollover? Are you handling the mouseOver and
mouseOut events?

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Thursday, October 27, 2005 4:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom component rollover (Flex 1.5)

Manish - this does not seem to be an available property of Text (or
Label).

- Tom

At 05:03 PM 10/27/2005, you wrote:
 On 10/27/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:
   I have a custom component based on the Canvas component. It contains
an
   image with text on top. It works fine, except that the rollover
deactivates
   when the mouse is over the text. How do I prevent the text from
blocking
   the rollover?
 
 Try setting the text's mouseEnabled to false maybe?
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Custom component rollover (Flex 1.5)

2005-10-28 Thread Tom Fitzpatrick
Manish - thanks. Your example helped me, indirectly :-) I saw that I needed 
to use the Canvas rollovers rather than the rollovers on the image 
contained in the Canvas, which allowed the text to get in the way. All is well.

- Tom

At 08:50 AM 10/28/2005, you wrote:
On 10/28/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:
  Yes, I found out that mouseEnabled is Flex 2 only. Yes, I'm handling the
  mouseOver and mouseOut events to show and hide an over graphic.

This seems to work for me:

?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
   xmlns=* width=80% height=80%
   mx:Canvas id=c mouseOver=c.setStyle('backgroundColor', 'yellow')
 mouseOut=c.setStyle('backgroundColor', 'red')
 backgroundColor=red width=200 height=200
 mx:Label text=This is some text... /
   /mx:Canvas
/mx:Application

I think you need to be more specific, perhaps with a standalone
example showing the problem.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Custom component rollover (Flex 1.5)

2005-10-27 Thread Tom Fitzpatrick
I have a custom component based on the Canvas component. It contains an 
image with text on top. It works fine, except that the rollover deactivates 
when the mouse is over the text. How do I prevent the text from blocking 
the rollover?

- Tom






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Highlight plot chart datapoints

2005-10-21 Thread Tom Fitzpatrick
I have a simple plot chart that is pulling data from an xml file. It is 
graphing the relationship between two kinds of values for a half-dozen 
people, so the xml setup is like this:

data
person name=John Smith
value11234/value1
value212345/value2
/person
...
/data

I've created a List of people's names pulled from the same xml file.

Now, when I click on a person's name, I'd like the appropriate datapoint on 
the chart to show its dataTip or highlight in some way. Is this possible?

- Tom






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Highlight gridline on chart

2005-10-21 Thread Tom Fitzpatrick
Follow-up: I was able to accomplish this the way you describe - a 
LineSeries on top of several ColumnSeries - but only by constructing custom 
chart elements in a Cartesian Chart.

Works fine now, though.

- Tom

At 09:31 AM 10/16/2005, you wrote:
Martin -

Thanks for the suggestion, but that won't work.

My fault, for not being more specific.

The column chart is actually a stacked column chart, and when I introduce
the LineSeries, it tries to become part of the stack. I think I have to
move to a cartesian chart setup - if it's possible at all. What I was
hoping to do was introduce a line just as a highlight of the grid or even
by actually drawing it in behind the stacked columns.

- Tom

At 12:58 PM 10/15/2005, you wrote:
 I've done this by simply adding a LineSeries to the columnChart.  If
 you add the LineSeries before the ColumnSeries, it will appear
 behind the column and of course the opposite is also possible.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Highlight gridline on chart

2005-10-16 Thread Tom Fitzpatrick
Martin -

Thanks for the suggestion, but that won't work.

My fault, for not being more specific.

The column chart is actually a stacked column chart, and when I introduce 
the LineSeries, it tries to become part of the stack. I think I have to 
move to a cartesian chart setup - if it's possible at all. What I was 
hoping to do was introduce a line just as a highlight of the grid or even 
by actually drawing it in behind the stacked columns.

- Tom

At 12:58 PM 10/15/2005, you wrote:
I've done this by simply adding a LineSeries to the columnChart.  If
you add the LineSeries before the ColumnSeries, it will appear
behind the column and of course the opposite is also possible.






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Highlight gridline on chart

2005-10-14 Thread Tom Fitzpatrick
On a column chart, is it possible to highlight one gridline at a single 
yField value?

So, for example, if the yField values on the chart run from $0 to $150,000, 
how would I put a horizontal red line at the $100,000 level?

- Tom






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






Re: [flexcoders] chart dynamic data effect

2005-10-13 Thread Tom Fitzpatrick
All right, I figured this one out - using the SeriesInterpolate effect 
demonstrated in the chart explorer. (In case anyone else was wondering how 
to do this.)

- Tom

At 09:08 AM 10/12/2005, you wrote:
I've created a chart with a dynamically changing dataprovider. Is there a
way to add an effect to the transition between data sets, when the chart
redraws itself based on the new data? Neither resizeEffect or
creationCompleteEffect seem to work (though creationCompleteEffect does
work when the chart is drawn for the first time.






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: div like behaviour?

2005-10-12 Thread Tom Fitzpatrick
Manish or Michael - any chance of a simple usage example?

- Tom

At 05:43 AM 10/12/2005, you wrote:
Just what I was looking for. Thank you very much Manish!

-michael


--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 
  On 9/30/05, flexhansen [EMAIL PROTECTED] wrote:
 
   Is there an easy way to achieve mx:Tile behaviour but without the
   tiles being of equal size?
  
   In other words I'm looking for something like the div-tag of plain old
   html that wraps content to fit the width prop. instead of putting up
   scrollbars.
 
  You mean flow layout?
 
  // Flow.as
 
  /**
   *  Implements flow layout for Flex.
   */
  class Flow extends mx.containers.Container
  {
public function layoutChildren():Void
{
  var vm:Object = getViewMetricsAndMargins();
 
  var lastX:Number = vm.left;
  var lastY:Number = vm.top;
 
  var rowHeight:Number = 0;
 
  for (var i:Number = 0; i  numChildren; i++)
  {
var child:Object = getChildAt(i);
 
if (lastX + child.preferredWidth  layoutWidth - vm.right)
{
  lastX = vm.left;
  lastY += rowHeight;
}
 
child.move(lastX, lastY);
 
lastX += child.preferredWidth;
rowHeight = Math.max(rowHeight, child.preferredHeight);
  }
 
  super.layoutChildren();
}
  }
 
  You should also override the 'measure' method to enable the container
  to correctly measure itself.  The above code only does the job of
  laying out (which is okay if you're always specifying a width and
  height explicitly).
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] chart dynamic data effect

2005-10-12 Thread Tom Fitzpatrick
I've created a chart with a dynamically changing dataprovider. Is there a 
way to add an effect to the transition between data sets, when the chart 
redraws itself based on the new data? Neither resizeEffect or 
creationCompleteEffect seem to work (though creationCompleteEffect does 
work when the chart is drawn for the first time.

- Tom






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: div like behaviour?

2005-10-12 Thread Tom Fitzpatrick
Thanks, Manish - but I'm getting an error: Don't know how to parse element 
*:Flow. It is not a known type or or a property of mx.core.Application. 
Sounds like a namespace problem, but I can't track it down even though this 
is very simple.

- Tom

At 11:22 AM 10/12/2005, you wrote:
On 10/12/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:
  Manish or Michael - any chance of a simple usage example?

local:Flow xmlns:local=* width=200 height=200
  mx:Button label=1 /
  mx:Button label=2 /
  mx:Button label=3 /
  mx:Button label=4 /
/local:Flow

The buttons will flow from left to right (like HTML).



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






Re: [flexcoders] Re: div like behaviour?

2005-10-12 Thread Tom Fitzpatrick
At 12:48 PM 10/12/2005, you wrote:
Your Flow.as needs to be in the same directory as the application's main 
file.

Never mind - I got it to work. And thanks again.

- Tom







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Waterfall chart

2005-10-07 Thread Tom Fitzpatrick
Ely - thanks. I had already come up with a somewhat less efficient 
solution, so this helps.

The Cartesian tip was helpful also - though the offset settings are a bit 
cryptic at first.

- Tom

At 12:55 PM 10/6/2005, you wrote:
Sure Tom. You've got the basics in your outline below. Basically, you
want something like:

Function genDP(original:Array):Array
{
 var result:Array = [];
 for(var i=0;ioriginal.length;i++) {
 var v:Object = result[i]
 result[i] = {
 sum: v.apple + v.orange + v.banana,
 apple: v.apple,
 orangeMin: v.apple,
 orangeMax: v.orange + v.apple,
 ...
 }
 }
 return result;
}


Regarding clustering...you can't tweak the clustering behavior in
ColumnChart, but all the clustering is doing is setting the offset and
columnWidthRatio properties of the individual ColumnSeries objects to
make them line up. So if you used a CartesianChart with some
ColumnSeries in it, you could manually set the offset/columnWidthRatio
properties to whatever you wanted.

Ely.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Thursday, October 06, 2005 7:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Waterfall chart
Importance: High

Thanks, Ely. Can you point to or provide a simple example of
dataprovider preprocessing?

If my data structure is as follows:

data
  result
  apple/apple
  orange/orange
  banana/banana
  /result
  ...
/data

I can see that I need to perform some math on the result nodes to
create the new dataProvider:

- add a total/total node that is the sum of the apple orange and
banana values
- set the minValue for orange as the yValue of apple', and set the
yValue of orange as apple plus orange
- set the minValue for banana as the yValue of orange and set the
yValue of banana the same as total

The generating chart data example in the docs seems close, but it's
based on random values rather than manipulating a real xml source.

Another question while I'm at it: is it possible to change the spacing
for just one of four columns in a cluster? I'd like to total column to
be separated from the waterfall by a space.

- Tom

At 01:00 PM 10/5/2005, you wrote:
 Hi Tom. The best way to do this is to pre-process your dataprovider
 into a synthetic one that has all of the summed values in it. Use that
 as the dataprovider for the chart, and set the various min/max fields
 of the series appropriately.
 
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of Tom Fitzpatrick
 Sent: Wednesday, October 05, 2005 6:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Waterfall chart
 Importance: High
 
 I'd like to make a waterfall chart  (at least that's one name for it)
 - a version of the stacked bar chart. The first column is the total of
 three values. The next three columns represent the three separate
 values that make up the total, but instead of stacking they float
 next to each other at the appropriate height and with the appropriate
 color and tooltip info.
 
 My question is - can the values in the ColumnSeries be determined using

 a function - kind of like a labelFunction for charts? This would enable

 me to calculate the value for the total column and the starting and
 ending values for the three floating columns. Or is there an
 easier/better way to accomplish this?
 
 - Tom
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your

RE: [flexcoders] Waterfall chart

2005-10-06 Thread Tom Fitzpatrick
Thanks, Ely. Can you point to or provide a simple example of dataprovider 
preprocessing?

If my data structure is as follows:

data
 result
 apple/apple
 orange/orange
 banana/banana
 /result
 ...
/data

I can see that I need to perform some math on the result nodes to create 
the new dataProvider:

- add a total/total node that is the sum of the apple orange and 
banana values
- set the minValue for orange as the yValue of apple', and set the 
yValue of orange as apple plus orange
- set the minValue for banana as the yValue of orange and set the 
yValue of banana the same as total

The generating chart data example in the docs seems close, but it's based 
on random values rather than manipulating a real xml source.

Another question while I'm at it: is it possible to change the spacing for 
just one of four columns in a cluster? I'd like to total column to be 
separated from the waterfall by a space.

- Tom

At 01:00 PM 10/5/2005, you wrote:
Hi Tom. The best way to do this is to pre-process your dataprovider into
a synthetic one that has all of the summed values in it. Use that as the
dataprovider for the chart, and set the various min/max fields of the
series appropriately.


Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, October 05, 2005 6:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Waterfall chart
Importance: High

I'd like to make a waterfall chart  (at least that's one name for it)
- a version of the stacked bar chart. The first column is the total of
three values. The next three columns represent the three separate values
that make up the total, but instead of stacking they float next to
each other at the appropriate height and with the appropriate color and
tooltip info.

My question is - can the values in the ColumnSeries be determined using
a function - kind of like a labelFunction for charts? This would enable
me to calculate the value for the total column and the starting and
ending values for the three floating columns. Or is there an
easier/better way to accomplish this?

- Tom







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Waterfall chart

2005-10-05 Thread Tom Fitzpatrick
I'd like to make a waterfall chart  (at least that's one name for it) - a 
version of the stacked bar chart. The first column is the total of three 
values. The next three columns represent the three separate values that 
make up the total, but instead of stacking they float next to each other 
at the appropriate height and with the appropriate color and tooltip info.

My question is - can the values in the ColumnSeries be determined using a 
function - kind of like a labelFunction for charts? This would enable me to 
calculate the value for the total column and the starting and ending 
values for the three floating columns. Or is there an easier/better way to 
accomplish this?

- Tom






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] column chart, stacked + single-value

2005-09-29 Thread Tom Fitzpatrick
Is it possible to mix two different kinds of columns on the same chart? 
Specifically, a single-value column that sits next to a stacked column?

A hypothetical example: building on the stacked column example in the flex 
chart explorer, this new chart would add a single-value column next to the 
stacked apples/bananas/oranges column for each month showing, say, total 
fruit sales from the same period during the previous year.

- Tom






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] tree plus datagrid

2005-09-28 Thread Tom Fitzpatrick
I'd like to constuct a datagrid whose display is controlled by a tree. 
Nodes in the tree correspond to rows in the datagrid, which are hidden and 
revealed as their associated nodes open and close.

Seems to me there were some postings here about such a combination, but a 
quick search doesn't give me anything. Anyone have any tips, pointers, 
suggestions?

Thanks.

- Tom






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] tree plus datagrid

2005-09-28 Thread Tom Fitzpatrick
At 09:34 AM 9/28/2005, you wrote:
You can find a sample at
http://flexauthority.com/samplesIndex.cfm

Look for the Flex TreeGrid under the advanced samples tab.

Sree

Thanks, Sree - that looks like a good start. I did notice, however, that 
there is an odd flicker in the tree on rollover, either in the tree or the 
grid.

Anyone have any idea why that could be happening?

- Tom


Tom Fitzpatrick wrote:

  I'd like to constuct a datagrid whose display is controlled by a tree.
  Nodes in the tree correspond to rows in the datagrid, which are hidden
  and
  revealed as their associated nodes open and close.
 
  Seems to me there were some postings here about such a combination, but a
  quick search doesn't give me anything. Anyone have any tips, pointers,
  suggestions?
 
  Thanks.
 
  - Tom
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design development
  
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
  

Computer software development
  
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
  

Software design and development
  
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
  

 
  Macromedia flex
  
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
  

Software development best practice
  
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
  

 
 
 
  
  YAHOO! GROUPS LINKS
 
  *  Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders on the web.
 
  *  To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 
  *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/.
 
 
  
 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] flexstore not working

2005-09-16 Thread Tom Fitzpatrick
At 08:05 PM 9/15/2005, you wrote:
Look at ...\tomcat 5.0\logs\stdout.log.

Tomcat itself is generating a 404 error relative to the .wsdl files for 
services - meaning file not found? Is there a way to check whether 
{context.root} is properly defined in flex-config.xml?

Oddly, I noticed that localhost was coming up as localhost: in my 
urls. I'm not sure why. I defined it as localhost:8080 in the FlexBuilder 
preferences for the testing server. Changing it by hand to localhost:8080 
produced the same 404 error, though.

To see it in FB, you need to use the Net connection pane, but I don't
really use this myself. The tomcat log will be better.

Hmm, you might also need to set the logging level on tomcat.

Where is this done? Do I set debug=1 in the file server.xml? There are a 
couple of places I can do this. Messing around with these server config 
files makes me kinda nervous

- Tom

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Thursday, September 15, 2005 3:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flexstore not working

At 02:01 PM 9/15/2005, you wrote:
 In Flex-config:
 !-- turn on debug to see the request and response on the server side
as
 well as debug information in client side tracing --
 web-service-proxy-debugtrue/web-service-proxy-debug

I did try setting that tag to true, but wasn't sure what to do next.
None
of the debugging panes in FlexBuilder showed anything that I could see.

I'm running Tomcat 5.0.25.

- Tom


 How to see the debug info depends on your J2EE servlet container and
how
 you are running it.
 
 Integrated JRun is easiest, the debugging ifo will be visible in the
 command window that also displays the Flex server info.
 
 What are you using?
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Fitzpatrick
 Sent: Thursday, September 15, 2005 10:32 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] flexstore not working
 
 At 06:51 PM 9/14/2005, you wrote:
  Turn on web service debugging in flex config and look at the monitor
or
  logs.  Any clues there?
 
 I don't know how to do this.
 
 Since none of my services are working, I wonder if the problem is with
 the
 {context.root} reference in the flex-config.xml whitelist. Checking
 through
 the archives, I couldn't find any reference to a fix for my problem.
 
 - Tom
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
  Behalf Of Tom Fitzpatrick
  Sent: Wednesday, September 14, 2005 4:58 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] flexstore not working
  
  Yes, I did that - here's the listing in flex-config.xml:
  
service name=FlexStoreCatalogWS
  
 wsdl{context.root}/services/CatalogWS?wsdl/wsdl
endpoints
  
  endpoint{context.root}/services/CatalogWS/endpoint
/endpoints
  
  use-custom-authenticationtrue/use-custom-authentication
/service
  
  By the way, none of the other services defined in the whitelies -
such
  as
  the DataModel example - are working now either.
  
  Any other ideas?
  
  - Tom
  
  At 04:46 PM 9/14/2005, you wrote:
   Look in the flex-config file, make sure you have a named service
   defined.  Perhaps the flex config file got changed or edited or
   something.
   Tracy
   
   -Original Message-
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
 On
   Behalf Of Tom Fitzpatrick
   Sent: Wednesday, September 14, 2005 1:48 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] flexstore not working
   
   My flexstore (original, non-Cairngorm version) used to run just
fine.
   Now
   I'm getting this error:
   
   Could not load WSDL: Server java.lang.RuntimeException: Bad
service
   name :
   FlexStoreCatalogWS
   
   Gotta be something simple, but I can't track it down.
   
   - Tom
   
   
   
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
   
   
   
   
   
   
   
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
   
   
   
   
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
  
  
  
  
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links

RE: [flexcoders] flexstore not working

2005-09-15 Thread Tom Fitzpatrick
At 06:51 PM 9/14/2005, you wrote:
Turn on web service debugging in flex config and look at the monitor or
logs.  Any clues there?

I don't know how to do this.

Since none of my services are working, I wonder if the problem is with the 
{context.root} reference in the flex-config.xml whitelist. Checking through 
the archives, I couldn't find any reference to a fix for my problem.

- Tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, September 14, 2005 4:58 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flexstore not working

Yes, I did that - here's the listing in flex-config.xml:

  service name=FlexStoreCatalogWS
  wsdl{context.root}/services/CatalogWS?wsdl/wsdl
  endpoints

endpoint{context.root}/services/CatalogWS/endpoint
  /endpoints

use-custom-authenticationtrue/use-custom-authentication
  /service

By the way, none of the other services defined in the whitelies - such
as
the DataModel example - are working now either.

Any other ideas?

- Tom

At 04:46 PM 9/14/2005, you wrote:
 Look in the flex-config file, make sure you have a named service
 defined.  Perhaps the flex config file got changed or edited or
 something.
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Fitzpatrick
 Sent: Wednesday, September 14, 2005 1:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flexstore not working
 
 My flexstore (original, non-Cairngorm version) used to run just fine.
 Now
 I'm getting this error:
 
 Could not load WSDL: Server java.lang.RuntimeException: Bad service
 name :
 FlexStoreCatalogWS
 
 Gotta be something simple, but I can't track it down.
 
 - Tom
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] flexstore not working

2005-09-15 Thread Tom Fitzpatrick
At 02:01 PM 9/15/2005, you wrote:
In Flex-config:
!-- turn on debug to see the request and response on the server side as
well as debug information in client side tracing --
web-service-proxy-debugtrue/web-service-proxy-debug

I did try setting that tag to true, but wasn't sure what to do next. None 
of the debugging panes in FlexBuilder showed anything that I could see.

I'm running Tomcat 5.0.25.

- Tom


How to see the debug info depends on your J2EE servlet container and how
you are running it.

Integrated JRun is easiest, the debugging ifo will be visible in the
command window that also displays the Flex server info.

What are you using?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Thursday, September 15, 2005 10:32 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flexstore not working

At 06:51 PM 9/14/2005, you wrote:
 Turn on web service debugging in flex config and look at the monitor or
 logs.  Any clues there?

I don't know how to do this.

Since none of my services are working, I wonder if the problem is with
the
{context.root} reference in the flex-config.xml whitelist. Checking
through
the archives, I couldn't find any reference to a fix for my problem.

- Tom

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Fitzpatrick
 Sent: Wednesday, September 14, 2005 4:58 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] flexstore not working
 
 Yes, I did that - here's the listing in flex-config.xml:
 
   service name=FlexStoreCatalogWS
 
wsdl{context.root}/services/CatalogWS?wsdl/wsdl
   endpoints
 
 endpoint{context.root}/services/CatalogWS/endpoint
   /endpoints
 
 use-custom-authenticationtrue/use-custom-authentication
   /service
 
 By the way, none of the other services defined in the whitelies - such
 as
 the DataModel example - are working now either.
 
 Any other ideas?
 
 - Tom
 
 At 04:46 PM 9/14/2005, you wrote:
  Look in the flex-config file, make sure you have a named service
  defined.  Perhaps the flex config file got changed or edited or
  something.
  Tracy
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
  Behalf Of Tom Fitzpatrick
  Sent: Wednesday, September 14, 2005 1:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] flexstore not working
  
  My flexstore (original, non-Cairngorm version) used to run just fine.
  Now
  I'm getting this error:
  
  Could not load WSDL: Server java.lang.RuntimeException: Bad service
  name :
  FlexStoreCatalogWS
  
  Gotta be something simple, but I can't track it down.
  
  - Tom
  
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
  
  
  
  
  
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
  
  
  
  
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] flexstore not working

2005-09-14 Thread Tom Fitzpatrick
My flexstore (original, non-Cairngorm version) used to run just fine. Now 
I'm getting this error:

Could not load WSDL: Server java.lang.RuntimeException: Bad service name : 
FlexStoreCatalogWS

Gotta be something simple, but I can't track it down.

- Tom







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] flexstore not working

2005-09-14 Thread Tom Fitzpatrick
Yes, I did that - here's the listing in flex-config.xml:

 service name=FlexStoreCatalogWS
 wsdl{context.root}/services/CatalogWS?wsdl/wsdl
 endpoints
 endpoint{context.root}/services/CatalogWS/endpoint
 /endpoints
 use-custom-authenticationtrue/use-custom-authentication
 /service

By the way, none of the other services defined in the whitelies - such as 
the DataModel example - are working now either.

Any other ideas?

- Tom

At 04:46 PM 9/14/2005, you wrote:
Look in the flex-config file, make sure you have a named service
defined.  Perhaps the flex config file got changed or edited or
something.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, September 14, 2005 1:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flexstore not working

My flexstore (original, non-Cairngorm version) used to run just fine.
Now
I'm getting this error:

Could not load WSDL: Server java.lang.RuntimeException: Bad service
name :
FlexStoreCatalogWS

Gotta be something simple, but I can't track it down.

- Tom








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] swf control

2005-07-29 Thread Tom Fitzpatrick
I have a number of small .swfs created in Flash that each have a motion 
tween and an embedded sound.

What would be the best way to load them into a Flex app and use 
actionscript to control them - actions such as play, pause, rewind?

- Tom





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hjp37eu/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122666536/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] sound problem: onSoundComplete

2005-07-28 Thread Tom Fitzpatrick
Just trying to bump this problem up - still looking for a solution.

I've tried a bunch of different combinations to make the onSoundComplete 
method work, none of which do the trick. The docs - which perhaps were 
repurposed from Flash - make no mention of the scoping issue. Anyone have 
suggestions or a hello world level example?

- Tom

At 01:51 PM 7/27/2005, you wrote:
Dirk, thanks for the suggestion - but still no luck. Same problem: sound
plays, no onSoundComplete execution. Were you able to get this to work?

Here's my revised code:

   function startSound(currentSound)
   {
  feedback.text += currentSound+ playing now;
  glow.alpha = 100;
  var snd:Sound = new Sound();
  snd.attachSound(currentSound);
  snd.onSoundComplete =
mx.utils.Delegate.create(this, soundStopped);
  snd.start();
   }

  function soundStopped()
  {
  glow.alpha = 0;
  feedback.text +=  stopping now;
  }

At 09:37 AM 7/27/2005, you wrote:
 There's still a scoping problem. Try this:
 
 function startSound(currentSound) {
feedback.text += currentSound+ playing now;
glow.alpha = 100;
var snd:Sound = new Sound();
snd.attachSound(currentSound);
snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped);
snd.start();
 }
 
 function soundStopped() {
glow.alpha = 0;
feedback.text +=  stopping now;
 }
 
 Dirk.
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Fitzpatrick
 Sent: Wednesday, July 27, 2005 2:26 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] sound problem: onSoundComplete
 
 Matt - I made your modification in my code, and still have the same
 problem: sound plays OK, but the onSoundComplete actions (trace and
 reset
 alpha) never take place.
 
 Here's the modified code:
 
function startSound(currentSound)
   {
   feedback.text += currentSound+ playing now;
   glow.alpha = 100;
   var snd:Sound = new Sound();
   snd.attachSound(currentSound);
   snd.onSoundComplete =
 mx.utils.Delegate.create(this, function()
   {
   glow.alpha = 0;
   feedback.text +=  stopping now;
   });
   snd.start();
   }
 
 Any other ideas?
 
 - Tom
 
 At 09:41 PM 7/26/2005, you wrote:
  snd.onSoundComplete = mx.utils.Delegate.create(this, function() {
 //same body here
  });
  
  You're having scoping problems.
  
  Matt
  
  
  --
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 
  Behalf Of Tom Fitzpatrick
  Sent: Tuesday, July 26, 2005 2:30 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sound problem: onSoundComplete
  
  Trying to get onSoundComplete() to work - but it never seems to get
 called.
  
  Here's the code I'm working with:
  
 function startSound(currentSound)
 {
   feedback.text += currentSound+ playing now;
   glow.alpha = 100;
 var snd:Sound = new Sound();
 snd.attachSound(currentSound);
   snd.onSoundComplete = function()
   {
 glow.alpha = 0;
 feedback.text +=  stopping now;
   }
 snd.start();
 }
  
  The currentSound parameter is the name of an mp3. The startSound
  function is called as the change event from a comboBox used to select
  the sound to be played. The sound gets played just fine, but the
  onSoundComplete function never executes.
  
  The feedback.text mechanism is a trace - and the text stopping now
  never gets called.
  
  The glow object is an imported .swf whose alpha is supposed to change
 
  when the sound is complete.
  
  - Tom
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp:
  //groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.ma
  il-archive.com/flexcoders%40yahoogroups.com
  
  
  
  
  --
  YAHOO! GROUPS LINKS
  
  *  Visit your group
   http://groups.yahoo.com/group/flexcodersflexcoders on the web.
  *
  *  To unsubscribe from this group, send an email to:
  *
   mailto:[EMAIL PROTECTED]fle
   [EMAIL PROTECTED]
  
  *
  *  Your use of Yahoo! Groups is subject to the
   http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
  
  
  --
 
 
 
 
 
 
 --
 Flexcoders Mailing

Re: [flexcoders] sound problem: onSoundComplete

2005-07-28 Thread Tom Fitzpatrick
Hey - thanks Jeff and Jester.

Another difference between Jeff's code and mine is that his uses the 
delegate to play the sound as well as to call the onSoundComplete method.

I was curious why snd.start() was called twice. I removed the snd.start() 
call in the startSound() function and it worked - but the sound would not 
repeat (I added a button to repeatedly play the sound, instead of making it 
an initialization event). Adding the snd.start() back in allowed repeating. 
Not sure why this is the case.

Also curious what performance difference - if any - there is between 
embedded and non-embedded sounds. I was able to get it to work both ways.

Thanks again.

- Tom


At 03:55 PM 7/28/2005, you wrote:
As I say, not entirely sure why mine works when the original doesnt, but it
works, which is good enough for now.

At 03:49 PM 7/28/2005, you wrote:
 The Activation Object is the weirdest beast... XML  LoadVars will both stay
 around AND fire their onLoad/onData events even if you declare them as local
 vars.
 
 While this is nice to save on member variables, no one knows what the heck
 garbage collection does with them, so doing things your way is recommended.
 
 ...still, I have in the past gotten onSoundComplete to work via a local var
 so not sure...
 
 - Original Message -
 From: Jeff Tapper [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 28, 2005 3:36 PM
 Subject: Re: [flexcoders] sound problem: onSoundComplete
 
 
 
 WARNING: The remainder of this message has not been transferred.
 The estimated size of this message is 41981 bytes.
 Click on the Retrieve From Server icon above and check mail again to get
 the whole thing. (If you're reading this in the preview pane, you'll need
 to open the message to see the icon.)  If the Retrieve From Server icon is
 not showing, then this message is no longer on the server.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] attachSound vs. loadSound (was: onSoundComplete)

2005-07-28 Thread Tom Fitzpatrick
At 05:13 PM 7/28/2005, you wrote:
attachSound I reckon has less overhead because the sound and header are
already embedded in the SWF.  Additionally, attachSound is a syncronous
opertion, where as loadSound, both streaming and non, is asyncronous.

attachSound requires a sound asset be embeded in your SWF, increasing
compile time, final SWF size, and loading overhead.  As such, the sound is
immediaetly available first frame.

My application will have a large number (200+) of very short sounds, which 
will need to be able to be played one at a time when needed. Will this work 
with attachSound without performance problems? Seems that attachSound only 
embeds one sound at a time, or am I misunderstanding this?

Synchronization with visual events could be an issue as well. In reference 
to synchronization with loadSound, you refer to having code to handle that 
for me - can you be more specific?

- Tom 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] sound problem: onSoundComplete

2005-07-27 Thread Tom Fitzpatrick
Matt - I made your modification in my code, and still have the same 
problem: sound plays OK, but the onSoundComplete actions (trace and reset 
alpha) never take place.

Here's the modified code:

  function startSound(currentSound)
 {
 feedback.text += currentSound+ playing now;
 glow.alpha = 100;
 var snd:Sound = new Sound();
 snd.attachSound(currentSound);
 snd.onSoundComplete = 
mx.utils.Delegate.create(this, function()
 {
 glow.alpha = 0;
 feedback.text +=  stopping now;
 });
 snd.start();
 }

Any other ideas?

- Tom

At 09:41 PM 7/26/2005, you wrote:
snd.onSoundComplete = mx.utils.Delegate.create(this, function()
{
   //same body here
});

You're having scoping problems.

Matt


--
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of Tom Fitzpatrick
Sent: Tuesday, July 26, 2005 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sound problem: onSoundComplete

Trying to get onSoundComplete() to work - but it never seems to get called.

Here's the code I'm working with:

   function startSound(currentSound)
   {
 feedback.text += currentSound+ playing now;
 glow.alpha = 100;
   var snd:Sound = new Sound();
   snd.attachSound(currentSound);
 snd.onSoundComplete = function()
 {
   glow.alpha = 0;
   feedback.text +=  stopping now;
 }
   snd.start();
   }

The currentSound parameter is the name of an mp3. The startSound function
is called as the change event from a comboBox used to select the sound to
be played. The sound gets played just fine, but the onSoundComplete
function never executes.

The feedback.text mechanism is a trace - and the text stopping now
never gets called.

The glow object is an imported .swf whose alpha is supposed to change
when the sound is complete.

- Tom







--
Flexcoders Mailing List
FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com
 




--
YAHOO! GROUPS LINKS

*  Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
*
*  To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
*  Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.


--






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] sound problem: onSoundComplete

2005-07-27 Thread Tom Fitzpatrick
Dirk, thanks for the suggestion - but still no luck. Same problem: sound 
plays, no onSoundComplete execution. Were you able to get this to work?

Here's my revised code:

  function startSound(currentSound)
  {
 feedback.text += currentSound+ playing now;
 glow.alpha = 100;
 var snd:Sound = new Sound();
 snd.attachSound(currentSound);
 snd.onSoundComplete = 
mx.utils.Delegate.create(this, soundStopped);
 snd.start();
  }

 function soundStopped()
 {
 glow.alpha = 0;
 feedback.text +=  stopping now;
 }

At 09:37 AM 7/27/2005, you wrote:
There's still a scoping problem. Try this:

function startSound(currentSound) {
   feedback.text += currentSound+ playing now;
   glow.alpha = 100;
   var snd:Sound = new Sound();
   snd.attachSound(currentSound);
   snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped);
   snd.start();
}

function soundStopped() {
   glow.alpha = 0;
   feedback.text +=  stopping now;
}

Dirk.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, July 27, 2005 2:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] sound problem: onSoundComplete

Matt - I made your modification in my code, and still have the same
problem: sound plays OK, but the onSoundComplete actions (trace and
reset
alpha) never take place.

Here's the modified code:

   function startSound(currentSound)
  {
  feedback.text += currentSound+ playing now;
  glow.alpha = 100;
  var snd:Sound = new Sound();
  snd.attachSound(currentSound);
  snd.onSoundComplete =
mx.utils.Delegate.create(this, function()
  {
  glow.alpha = 0;
  feedback.text +=  stopping now;
  });
  snd.start();
  }

Any other ideas?

- Tom

At 09:41 PM 7/26/2005, you wrote:
 snd.onSoundComplete = mx.utils.Delegate.create(this, function() {
//same body here
 });
 
 You're having scoping problems.
 
 Matt
 
 
 --
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of Tom Fitzpatrick
 Sent: Tuesday, July 26, 2005 2:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] sound problem: onSoundComplete
 
 Trying to get onSoundComplete() to work - but it never seems to get
called.
 
 Here's the code I'm working with:
 
function startSound(currentSound)
{
  feedback.text += currentSound+ playing now;
  glow.alpha = 100;
var snd:Sound = new Sound();
snd.attachSound(currentSound);
  snd.onSoundComplete = function()
  {
glow.alpha = 0;
feedback.text +=  stopping now;
  }
snd.start();
}
 
 The currentSound parameter is the name of an mp3. The startSound
 function is called as the change event from a comboBox used to select
 the sound to be played. The sound gets played just fine, but the
 onSoundComplete function never executes.
 
 The feedback.text mechanism is a trace - and the text stopping now
 never gets called.
 
 The glow object is an imported .swf whose alpha is supposed to change

 when the sound is complete.
 
 - Tom
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp:
 //groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.ma
 il-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
 --
 YAHOO! GROUPS LINKS
 
 *  Visit your group
  http://groups.yahoo.com/group/flexcodersflexcoders on the web.
 *
 *  To unsubscribe from this group, send an email to:
 *
  mailto:[EMAIL PROTECTED]fle
  [EMAIL PROTECTED]
 
 *
 *  Your use of Yahoo! Groups is subject to the
  http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
 
 
 --






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders

[flexcoders] sound problem: onSoundComplete

2005-07-26 Thread Tom Fitzpatrick
Trying to get onSoundComplete() to work - but it never seems to get called.

Here's the code I'm working with:

function startSound(currentSound)
{
 feedback.text += currentSound+ playing now;
glow.alpha = 100;
var snd:Sound = new Sound();
snd.attachSound(currentSound);
snd.onSoundComplete = function()
{
glow.alpha = 0;
feedback.text +=  stopping now;
}
snd.start();
}

The currentSound parameter is the name of an mp3. The startSound function 
is called as the change event from a comboBox used to select the sound to 
be played. The sound gets played just fine, but the onSoundComplete 
function never executes.

The feedback.text mechanism is a trace - and the text stopping now 
never gets called.

The glow object is an imported .swf whose alpha is supposed to change 
when the sound is complete.

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] embedded sounds

2005-07-05 Thread Tom Fitzpatrick
I'm trying to embed a number of mp3 sounds and play them back in various ways.

The first way is to select the sound names from a comboBox. It's not working.

So, for an embedded sound defined as:

[Embed('beki1A.mp3')]
var beki1A:String;

I've defined the following function;

  var snd:Sound;

function startSound(currentSound)
{
snd = new Sound;
snd.attachSound(currentSound);
snd.start();
}

If I call this function with a button click, like this:

mx:Button label=Start id=b1 click=startSound(beki1A); /

it works fine.

If I pass the value of currentSound from a comboBox, with the following 
function specified as the change event of the comboBox:

function playSong()
{
var currentSound= songComboBox.selectedItem.label;
startSound(currentSound);
}

it does not work.

When I trace the value of beki1A in the buttonclick version, it has a 
resource prefix - and this appears to be lost when it's assigned to 
another variable via the comboBox. Or is it something even simpler?

Where am I going wrong?

- Tom






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] embedded sounds

2005-07-05 Thread Tom Fitzpatrick
Awesome. Thanks Tarik!

- Tom

At 06:46 PM 7/5/2005, you wrote:
For fun I thought I'd test this out. The snd= new Sound(this); didn't
make a difference for me, and I am able to reproduce Tom's problem.

  [Embed('test1.mp3')]
  var soundSymbol1:String;
  [Embed('test2.mp3')]
  var soundSymbol2:String;

 function playSong()
 {
 var currentSound= songComboBox.selectedItem.value;
 startSound(currentSound);
 }

  mx:ComboBox id=songComboBox change=playSong()
dataProvider={mySamples.option}  labelField=label/

Basically when you do a

startSound(beki1A);- beki1A is = to something like 
__Resources.1387713460.beki1A_mp3

So your combo box would have to contain whatever the value of the name of 
the variable that your songComboBox.selectedItem.value is equal to. In CF 
you'd use the Evaluate function to do that,

I did a little hacking and found that this did the job:

 function playSong()
 {
 var currentSound= songComboBox.selectedItem.label;
 var playThis = eval(currentSound);
 startSound(playThis);
 }

Full working example attached (except for mp3s).




JesterXL wrote:

 Close, do:
 
 snd = new Sound(this);
 
 - Original Message -
 From: Tom Fitzpatrick [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 05, 2005 5:13 PM
 Subject: [flexcoders] embedded sounds
 
 
 I'm trying to embed a number of mp3 sounds and play them back in various
 ways.
 
 The first way is to select the sound names from a comboBox. It's not
 working.
 
 So, for an embedded sound defined as:
 
 [Embed('beki1A.mp3')]
 var beki1A:String;
 
 I've defined the following function;
 
   var snd:Sound;
 
 function startSound(currentSound)
 {
 snd = new Sound;
 snd.attachSound(currentSound);
 snd.start();
 }
 
 If I call this function with a button click, like this:
 
 mx:Button label=Start id=b1 click=startSound(beki1A); /
 
 it works fine.
 
 If I pass the value of currentSound from a comboBox, with the following
 function specified as the change event of the comboBox:
 
 function playSong()
 {
 var currentSound= songComboBox.selectedItem.label;
 startSound(currentSound);
 }
 
 it does not work.
 
 When I trace the value of beki1A in the buttonclick version, it has a
 resource prefix - and this appears to be lost when it's assigned to
 another variable via the comboBox. Or is it something even simpler?
 
 Where am I going wrong?
 
 - Tom
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links




mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
mx:Script
   ![CDATA[
  var snd:Sound;
  [Embed('test1.mp3')]
  var soundSymbol1:String;
  [Embed('test2.mp3')]
  var soundSymbol2:String;

  function startSound(playme) {
 snd = new Sound;
 snd.attachSound(playme);
 snd.start();
  }

  function stopSound() {
 snd.stop();
  }

 function playSong()
 {
 var currentSound= songComboBox.selectedItem.value;
 var playThis = eval(currentSound);
 startSound(playThis);
 }
   ]]
/mx:Script

mx:Model id=mySamples
  option value= label=/
  option value=soundSymbol1 label=soundSymbol1/
  option value=soundSymbol2 label=soundSymbol2/
/mx:Model

mx:VBox
   mx:Button label=Start id=b1 click=startSound(soundSymbol2); /
   mx:Button label=Stop id=b2 click=stopSound(); /
   mx:ComboBox id=songComboBox change=playSong() 
 dataProvider={mySamples.option}  labelField=label/

/mx:VBox

/mx:Application






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] linkbar selected color

2005-06-06 Thread Tom Fitzpatrick
I'm trying to have the links in a linkbar change color when they're 
selected and remain that color until another link is selected.

Setting selectedFillColors doesn't seem to work.

Any suggestions?

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] select/deselect child panels

2005-06-02 Thread Tom Fitzpatrick
I'm trying to find a way to quickly select and deselect panels that are 
children of an hbox container. When a panel is selected I'd like to 
highlight it in a simple way, such as changing its background color. If 
another panel is clicked on, the previously selected panel's background is 
changed back to normal.

I've tried several approaches that involve looping through all the child 
panels on the selection click to set a selectedPanel variable at the root 
level. Very slow. There's gotta be a simpler, more elegant way to do this.

Any suggestions or code samples?

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] mousedown scope

2005-05-27 Thread Tom Fitzpatrick
Thanks Manish. I sidestepped the issue by limiting the top-level mousedown 
so it doesn't conflict with the subcomponent mousedown. That solved my 
immediate problem. So - I didn't have a change to try setting event.bubbles 
to false.

- Tom

At 10:02 AM 5/27/2005, you wrote:
On 5/27/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:

  Right now, clicking the subcomponent also selects the Panel.
 
  I'd like to be able to click the subcomponent without selecting the Panel -
  sort of a problem of eliminating the bubble-down, I guess.

Does setting event.bubbles to false help?


--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*
* To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Cairngorm store - still trying

2005-05-26 Thread Tom Fitzpatrick
Still trying to get the cairngorm store products to show up. I thought I 
had done everything right - but there are several errors in the docs and I 
had to do some guessing, plus working with hints from Steven and Alex from 
iteration2.

On startup, I'm getting a couple of warnings from the server:

- log4j: WARN No appenders could be found for logger
- log4j: WARN Please initialize the log4j system properly

And, when I access the app, the server throws this error:

Error: java.sql.SQLException: User not found: CAIRNGORMSTORE

To make things easier, here's my current relevant directory structure:

C:
\servers
  db
  file: catalog.lck
  file: catalog.log
  file: catalog.properties
  file: catalog.script
  jakarta-tomcat-5.0.25
 ...
  db
  file: catalog.properties
  file: catalog.script
  webapps
  cairngormstore
  assets
  data
  META-INF
  org
  tests
  WEB-INF
  classes
  conf
  file: log4j.properties
  file: store.cfg
  org
  nevis...
  flex
  file: cairngorm-manifest.xml
  file: flex-config.xml
 user_classes
  file: cairngorm.swc
  file: FlexUnit.swc
  lib
  files: jar files

The db folder at the top level appears to be created automatically.

Any other info I can provide to track this down?

Thanks.

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm store - still trying

2005-05-26 Thread Tom Fitzpatrick
At 09:14 AM 5/26/2005, you wrote:
I'm sorry to hear there were errors in the documentation, I spent
several hours 'testing' them, please let me know what they are and I
will ammend the docs

OK - (and please let me know if I'm wrong and the docs are right):

In the store instructions it says:

For the purpose of this document WEBAPP_DIR is the directory where your server
explodes its war files to (see 3.1).
Firstly, you must copy the Cairngorm core API files to the web application 
on the
server. You must copy:
  bin/cairngorm.swc to
WEBAPP_DIR/cairngormlogin/WEB-INF/flex/user_classes/

bin/cairngorm-manifest.xml to
WEBAPP_DIR/cairngormlogin/WEB-INF/flex

These should read cairngormstore shouldn't they?

In the next instruction, it's not clear whether store.cfg and 
log4j.properties should be copied to the classes folder, or whether they 
should still sit in a conf directory within the classes folder. I assumed 
the latter was the case.

Similarly, it wasn't clear at first that catalog.properties and 
catalog.script should be in a new db folder - but since receiving your 
instructions I know that's the case.

Next, the locations for the jar files is specified as:

WEBAPP_DIR/WEB-INF/lib

I believe that should be:

  WEBAPP_DIR/cairngormstore/WEB-INF/lib

- Tom











 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm store - still trying

2005-05-26 Thread Tom Fitzpatrick
At 09:14 AM 5/26/2005, you wrote:
Can I suggest the following steps to get it working:

stop Tomcat
create a directory called 'db' under your TOMCAT_HOME.
make sure the .script file is there
make sure your store.cfg is pointing to where it was when it shipped (
db_path=..\\db\\ ) (the double slashes are a java thing)
DELETE any .lck files
ENSURE that there are no other processes pointing at those files which
may cause a lock to occur.
Start TOmcat

 that should work

Dan -

Thanks for your fast response.

I did everything you said, and I'm still getting the error messages:

- log4j: WARN No appenders could be found for logger
- log4j: WARN Please initialize the log4j system properly

- Error: java.sql.SQLException: User not found: CAIRNGORMSTORE

Seems like these would indicate what the problem is. Perhaps it's something 
besides the directory structure.

The db folder is at the top level of my server directory structure (that 
is, at the same level as webapps, which contains the cairngormstore directory).

In addition to the above error messages, when I restart the server and open 
the store application, a new db folder is created at the same level as my 
server. This folder contains catalog.lck, catalog.log, and 
catalog.properties - no catalog.script. The log file reads:

CREATE USER SA PASSWORD  ADMIN

Any ideas?

(Doc notes sent separately.)

- Tom









 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Cairngorm store - still trying

2005-05-26 Thread Tom Fitzpatrick
At 10:29 AM 5/26/2005, you wrote:
So  please ensure that you hve the catalog.script file copied into
the db/ directory that you have created;

This did work - thanks!

But - for the sake of others who might be confused - the odd thing is that 
I didn't create that db folder, it was created automatically (one level 
higher) after I had created a db folder, with the script file in it, at the 
level indicated in the docs and in Alex's email. Then, when I moved the 
script file to that newly created folder, the product images showed up.

I am still getting the log4j error messages - I take it I can safely ignore 
them.

Thanks again for your help in getting this going. Onward and upward!

- Tom 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Cairngorm store - still trying

2005-05-26 Thread Tom Fitzpatrick
Dan -

At 11:04 AM 5/26/2005, you wrote:
Just out of interest, are you using the Ant script, or are you doing
all the configuration manually ?

No, I wasn't using the Ant script.

Thanks again.

- Tom 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] mousedown scope

2005-05-26 Thread Tom Fitzpatrick
I have a custom component, based on the Panel component, that can be 
selected with a mousedown. The component contains subcomponents that also 
have mousedowns with different behaviors.

Is it possible to disassociate the two?

Right now, clicking the subcomponent also selects the Panel.

I'd like to be able to click the subcomponent without selecting the Panel - 
sort of a problem of eliminating the bubble-down, I guess.

Is this possible? Or, can I have the mousedown on the Panel associated only 
with the Panel Header?

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Cairngorm store products

2005-05-25 Thread Tom Fitzpatrick
I keep getting a products could not be retrieved message from the 
cairngorm store. Must be a db path problem. How should I specify it in 
store.cfg?

If it helps, the path to hsqldb.jar on my machine is:

C:\servers\jakarta-tomcat-5.0.25\webapps\cairngormstore\WEB-INF\lib

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Cairngorm store products

2005-05-25 Thread Tom Fitzpatrick
At 11:17 AM 5/25/2005, you wrote:
There are a number of things to check ... first of all, have you placed
the named service in flex-config.xml (have you used our flex-config.xml) ?

Yes, I used your flex-config.xml file.

Is there more detailed error message in your appserver log file ?

The only cairngorm store related message in the log just references the 
Flex build.

- Tom







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Cairngorm store products

2005-05-25 Thread Tom Fitzpatrick
Hi Alex -

Thanks to you and Steven for staying with me on this.

I did set it up that way, and it's still not working. My directory 
structure is:

jakarta-tomcat-5.0.25  webapps  db
jakarta-tomcat-5.0.25  webapps  cairngormstore

Inside the db directory are catalog.properties, catalog.script, and 
mysql_store.sql

I did find this error message from Tomcat:

java.sql.SQLException: User not found: CAIRNGORMSTORE

Does that help?

- Tom



At 12:25 PM 5/25/2005, you wrote:

if you used the default settings of store.cfg, make sure you have a db
directory in the parent of your WEBAPP_DIR. On Tomcat that's
TOMCAT_HOME/webapps. In db you have to place your catalog.proteries
and catalog.script files. See install docs for more.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Cairngorm store products

2005-05-25 Thread Tom Fitzpatrick
Hi Alex -

At 01:51 PM 5/25/2005, you wrote:
Actually the db directory by default is in TOMCAT_HOME not
TOMCAT_HOME/webapps. (you can change this via store.cfg.

This is getting stranger. I moved the db folder and its contents up a level 
to the location you describe (the same level as webapps):

jakarta-tomcat-5.0.25  db

Now, when I restarted tomcat, a new db directory was created above 
jakarta-tomcat-5.0.25. Inside that directory are the catalog.lck and 
catalog.log files you refer to below, as well as a copy of the 
catalog.properties file. I'm still getting the products can't be 
retrieved message.

Hmm.

In case you did that: We're using HSQLDB in in-process mode, so it
initialises when you start your app server. Have you restarted Tomcat?
When you restart Tomcat, HSQLDB should by default create catalog.lck and
catalog.log files in the db directory.

- Tom 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Select and highlight child panel

2005-05-14 Thread Tom Fitzpatrick
In a vbox, I have a group of child panels created dynamically with a repeater.

What code should I use on the mousedown to allow a user to select any one 
of the panels, and what property do I change to highlight the selected panel?

Ideally what I'd like to do is outline the selected panel in a specified 
color.

Can anyone offer a code sample showing how to do this?

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Looking for a critique

2005-05-14 Thread Tom Fitzpatrick
This brings up another question: What sources are there for free, legally 
usable dynamic data services that can be used for building practice apps? I 
seem to remember a Flash application that used dynamic data for wind speeds 
off the lake in Chicago, for example.

- Tom

At 07:29 AM 5/14/2005, you wrote:
Well, for one thing, you're violating Weather Channel's copyrights!  Be 
careful...






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Select and highlight child panel

2005-05-14 Thread Tom Fitzpatrick
Thanks - I already tried this, and the borderstyle property doesn't seem to 
have any effect on a Panel component. What property would create a 
highlight all the way around the edge of a Panel?

- Tom

At 09:24 AM 5/14/2005, you wrote:
Sounds like you want something like:

mx:VBox mouseDown=highlightme(event)/
function highlightme(event){
  event.target.setStyle(borderColor,0xff);
}

standard disclaimers about code before the first cup of coffee...


At 08:39 AM 5/14/2005, you wrote:
 In a vbox, I have a group of child panels created dynamically with a 
 repeater.
 
 What code should I use on the mousedown to allow a user to select any one
 of the panels, and what property do I change to highlight the selected 
 panel?
 
 Ideally what I'd like to do is outline the selected panel in a specified
 color.
 
 Can anyone offer a code sample showing how to do this?
 
 - Tom
 
 
 
 
 
 
 --
 Yahoo! Groups Links
 * To visit your group on the web, go to:
 *
  
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

 
 *
 * To unsubscribe from this group, send an email to:
 *
  
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

 
 *
 * Your use of Yahoo! Groups is subject to the
  
 http://docs.yahoo.com/info/terms/http://docs.yahoo.com/info/terms/Yahoo! 
 Terms of Service.



--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*
* To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re-initializing

2005-04-29 Thread Tom Fitzpatrick
I have an app in which users are allowed to add and delete children from 
containers.

The changes only seem to fully percolate through when the whole app is 
reinitialized through a browser refresh. What is the way to trigger that 
from a command within the app?

- Tom






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] binding error - from Flex?

2005-04-27 Thread Tom Fitzpatrick

Tracy - thanks for the suggestion. My problem is that I'm not really 
changing anything, just making a copy of the whole app folder, renaming it, 
and trying to compile it again from the new folder - so I don't really know 
where to put the extra code.

I'm ready to try the file deletion suggestion, but need more info. I'm 
running Flex locally using Tomcat, so I have generated files in my local 
project folder and in my local server folder. Which ones do I delete? Both? 
Do I leave the libs folders alone? And - most important - is there any 
danger in doing this or any precautions I should take?

- Tom

At 09:47 PM 4/25/2005, you wrote:
Ignore the message, add some code, and run the app again.  I have also
hit a situation where this did not work until I had deleted the files
out of the ...web-inf\flex\generated folder, then compiled it again.
But usually, 10-15 more lines of code gets me over the hump.

If you believe you app is as refactored as is reasonable, give this a
try.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





  1   2   >