[flexcoders] Re: Access to JVM command line args when extending AbstractAssembler (LCDS)

2010-08-16 Thread djbrown_rotonews

anyone?

--- In flexcoders@yahoogroups.com, "djbrown_rotonews"  
wrote:
>
> How can I access the JVM command line args in my class that extends 
> AbstractAssembler? I need to customize the behavior of my custom assembler 
> based on some settings based in as optional JVM arguments (-DDrun_assembler 
> for example).
> 
> if I can't access them via the JVM command line arg list, is there a 
> better/preferred way to do this?
>




[flexcoders] garbage collection question

2010-07-29 Thread djbrown_rotonews
I'm trying to track down a memory leak in one of my applications, having 
already employed the "use weak reference in dictionaries and eventListeners" 
guideline.

I have an wrapper object, that has (among other properties) a reference to 
another object, which contains an array of a third object.

Does simply nulling the parent effectively mark the embedded object(s) for GC, 
or do I need to iterate over the internal object array and null them out 
individually?



[flexcoders] Re: data-specific createChildren() question

2010-07-01 Thread djbrown_rotonews
thanks, Alex. 

Those were my initial thoughts, just wasn't sure if there was a best practices 
method that would apply here.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> There is no right answer, it will depend.  If tearing down and building up 
> the other sets in the 5% case is extremely time-consuming, you may wish to 
> just hide them, but if you end up hiding tons of stuff you'll be wasting 
> memory as well.
> 
> The profiler and testing scrolling visually will tell you the right way for 
> your situation.
> 
> 
> On 7/1/10 1:26 PM, "djbrown_rotonews"  wrote:
> 
> 
> 
> 
> 
> 
> I've got a custom item renderer extending UIComponent that can have 3 base 
> 'states' depending on the nature of the data that it is displaying. Each of 
> these states have minor UI tweaks re: the children that are added to the 
> display list etc.. (# of UITextFields, icons etc...)
> 
> Am I better off creating all the possible children in the createChildren() 
> method and hiding them in updateDisplayList() based on the specifics of the 
> data, or creating just those that are needed in set data() (tearing down the 
> children and rebuilding if my renderer isn't being used to display the same 
> 'state'; if it's being recycled to render the same basic state, I don't 
> bother remove/add the children again ) and doing essentially nothing in the 
> createChildren() method?
> 
> If it matters, about 95% of my renderers will be used for one 'state' of the 
> data, with the remaining 5% being split between the other two states.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] data-specific createChildren() question

2010-07-01 Thread djbrown_rotonews
I've got a custom item renderer extending UIComponent that can have 3 base 
'states' depending on the nature of the data that it is displaying. Each of 
these states have minor UI tweaks re: the children that are added to the 
display list etc.. (# of UITextFields, icons etc...)

Am I better off creating all the possible children in the createChildren() 
method and hiding them in updateDisplayList() based on the specifics of the 
data, or creating just those that are needed in set data() (tearing down the 
children and rebuilding if my renderer isn't being used to display the same 
'state'; if it's being recycled to render the same basic state, I don't bother 
remove/add the children again ) and doing essentially nothing in the 
createChildren() method?


If it matters, about 95% of my renderers will be used for one 'state' of the 
data, with the remaining 5% being split between the other two states.



[flexcoders] Re: getting the number of children in a grouping collection via the groupingFunction

2008-12-01 Thread djbrown_rotonews
one more time for help...

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> i'm wanting to change the label of my groups in the 
AdvancedDataGrid, 
> and I see where that's exposed via the groupingFunction. What i'm 
> wanting to do is to modify it in such a way that it returns the 
> groupingField "name" itself, plus the number of children in that 
group.
> 
> As an example, if I had the following data:
> 
> DFW Jason
> DFW Darin
> DFW Bob
> ORD Peter
> ORD Juan
> 
> I would want to the grid to display as follows:
> 
> DFW (3)
> ORD (2)
> 
> I'd like to indicate the number of children in each group without 
> having to add an explicity column via a SummaryRow etc..
>




[flexcoders] Re: getting the number of children in a grouping collection via the groupingFunction

2008-11-26 Thread djbrown_rotonews
anyone?

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> i'm wanting to change the label of my groups in the 
AdvancedDataGrid, 
> and I see where that's exposed via the groupingFunction. What i'm 
> wanting to do is to modify it in such a way that it returns the 
> groupingField "name" itself, plus the number of children in that 
group.
> 
> As an example, if I had the following data:
> 
> DFW Jason
> DFW Darin
> DFW Bob
> ORD Peter
> ORD Juan
> 
> I would want to the grid to display as follows:
> 
> DFW (3)
> ORD (2)
> 
> I'd like to indicate the number of children in each group without 
> having to add an explicity column via a SummaryRow etc..
>




[flexcoders] getting the number of children in a grouping collection via the groupingFunction

2008-11-25 Thread djbrown_rotonews
i'm wanting to change the label of my groups in the AdvancedDataGrid, 
and I see where that's exposed via the groupingFunction. What i'm 
wanting to do is to modify it in such a way that it returns the 
groupingField "name" itself, plus the number of children in that group.

As an example, if I had the following data:

DFW Jason
DFW Darin
DFW Bob
ORD Peter
ORD Juan

I would want to the grid to display as follows:

DFW (3)
ORD (2)

I'd like to indicate the number of children in each group without 
having to add an explicity column via a SummaryRow etc..



[flexcoders] Re: Flex Application Memory Footprint

2008-11-14 Thread djbrown_rotonews

I'm seeing the same behavior. DataGrid headerRenderer is a simple 
Label with a toolTip, and there's just 15 columns in the grid 
itself. Before the data is even populated, I have 75 instances of 
the header renderers (5 for each column), and they never get cleaned 
up.

Around 35-40% of my application memory is then tied up in non-
recycled headerRenderers.

any ideas?


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
<[EMAIL PROTECTED]> wrote:
>
> hi,
>  
> when you go to a tab for the first time, it gets created along 
with all of its components and they will stay in memory so long as 
the app exists. If you are using creationPolicy="all" on your 
TabNavigator, that is really bad, dont. That means all tabs are 
being created and maybe the user will never go to most of them.
>  
> Also if you are caching data that you no longer need, set it to 
null to let the GC clean it up.
>  
> hope that helps.
>  
> Dimitrios Gianninas
> RIA Developer Team Lead
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Nirav Gosalia
> Sent: Thursday, November 06, 2008 10:21 AM
> To: flexcoders@yahoogroups.com
> Cc: [EMAIL PROTECTED]
> Subject: [flexcoders] Flex Application Memory Footprint
> 
> 
> 
> Hi,
> 
> We are developing a CRM application using Flex.
> 
> The SWF size is 1.5 MB. The application has around 15 tabs. When 
all the tabs are visited once the application shows a memory foot 
print of 400 MB in the windows task manager.
> 
> I used flex profiler but there is no memory leak. I was wondering 
that how flex handles garbage collection because once the tabs are 
created they never seem to be releasing any memory.
> 
> Also flex profiler shows that my Datagrid header renderer occupies 
40% of the total memory consumed. 
> 
> Can someone suggest ways of reducing the memory foot print and 
show an ideal way of writing a header renderer (we use it for full 
database sort).
> 
> Regards,
> 
> Nirav Gosalia
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which 
is solely for the use of the intended recipient.  No privilege or 
other rights are waived by any unintended transmission or 
unauthorized retransmission of this message.  If you are not the 
intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete 
it and all attachments from your system.  The reading, distribution, 
copying or other use of this message or its attachments by 
unintended recipients is unauthorized and may be unlawful.  If you 
have received this e-mail in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du 
présent message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la 
copie ou tout autre usage du présent message ou de ses pièces 
jointes par des personnes autres que le destinataire visé ne sont 
pas autorisés et pourraient être illégaux.  Si vous avez reçu ce 
courrier électronique par erreur, veuillez en aviser l'expéditeur.
>




[flexcoders] getting/settings explicit height/width for a custom toolTip?

2008-11-03 Thread djbrown_rotonews
I'm attempting to create a custom toolTip using a Text component (of 
varying length, depending on the underlying data) inside a VBox 
component (with no explicit height or width declared) that implements 
IToolTip.

Inside the creationComplete handler for the VBox, I build out the 
contents of the Text component, but the underlying values of 
measuredHeight etc.. don't seem to get updated. As a result, the 
toolTips aren't being posiitioned correctly as calls to 
getExplicitOfMeasuredHeight and Width is returning values like 6 and 7 
as opposed to 225 and 150 etc...

I've even placed explicit calls to invalidateProperties, 
invalidateDisplayList and invalidateSize at the end of the 
creationComplete handler with no luck.

any ideas?




[flexcoders] Re: positioning custom toolTips?

2008-10-22 Thread djbrown_rotonews


anyone?



[flexcoders] positioning custom toolTips?

2008-10-21 Thread djbrown_rotonews
I've got a dataGrid, but am using VBox's that implement IToolTip to 
generate my toolTips instead of relying on the built-in dataTip 
functionality. Every thing works fine until it comes to positioning 
the toolTips along the bottom right of the dataGrid, as the default 
behavior isn't re-positioning the toolTip correctly and I'm seeing 
most of the toolTip disappearing off the screen.

My toolTip is just a simple VBox with a simple mx:Text component, 
and I set the text property of the mx:Text component. It can be of 
varying length, and it doesn't appear that the height/width of the 
rendered VBox is being pushed up to the toolTip itself as the 
event.toolTip.width and height are 0 after I create the toolTip.

any ideas?

I'm capturing the toolTipCreate event from my DataGridColumn 
renderers (simple labels), creating a toolTip from a component that 
implements IToolTip, and then using that resulting toolTip instance 
to set the event.toolTip property.

var customToolTip:DataGridDropDeadSequenceToolTipRenderer = new  
DataGridDropDeadSequenceToolTipRenderer();
event.toolTip=customToolTip;



[flexcoders] Why are so many DataGridColumn headerRenderers created?

2008-10-15 Thread djbrown_rotonews
I've started messing around with the profiler tools inside FB3, and 
noticed that a large chunk (43%) of my memory is being taken up by 75 
instances (135 cumulative instances) of my generic headerRenderers 
used by my DataGridColumns. 

The renderer used just extends label, and sets a toolTip value based 
on the dataGridColumn value inside an overrided set data function. 

The renderers for my datagrid columms themselves only have one 
instance floating around in memory, whereas the headerRenderers have 
75 (there are only 21 columns in my grid total).

why so many, and what can I do to clean them up?



[flexcoders] Re: getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
We have a winner! My filterFunction for this collection checks on 
that attrib (among others) that I am modifying. I didn't realize the 
collection would be filtered without an explicit call to refresh().

thanks!

--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> Do you have a filter on the collection?
> 
> 
> On 9/26/08 9:00 AM, "djbrown_rotonews" <[EMAIL PROTECTED]> 
wrote:
> 
> 
> 
> 
> My entire class (SOCAdvisorVO) is marked as Bindable:
> 
> [Bindable]
> public class SOCAdvisorVO
> {
> // used for problem flight 'cleared'
> public var flightHasBeenClearedByUser:Boolean=false;
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> , "Michael Schmalle"
>  wrote:
> >
> > Hi,
> > Sounds like you need to check your bindings.
> >
> > I don't think there is any way possible that the ArrayCollection
> can become
> > intelligent and start deleting items without being told to by 
some
> outside
> > force. ;-)
> >
> > Sounds like it has to do with the;
> >
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true
> >
> > That would be my guess.
> >
> > Mike
> >
> > On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
> > djbrown_rotonews@> wrote:
> >
> > >   has anyone run into this problem? The code below is 
*removing*
> the
> > > item from the ArrayCollection when I modify that one attribute 
on
> > > the object. And the size of my ArrayCollection isn't increasing
> > > after the call to addItem() either. the call to getItemIndex is
> > > working just fine, but the object is removed and the size of 
the
> > > ArrayCollection is decreased by 1 when the
> > > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > > line is reached.
> > >
> > > any ideas?
> > >
> > > 
> > > var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> > > var indexOfFlightToEdit:int =
> > > flightsForStation.getItemIndex(flightToMarkAsRemoved);
> > > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > >
> > > // for some reason, simply setting the attrib to true is 
causing
> > > //the item to be removed from the array collection.
> > > flightsForStation.addItem(flightToMarkAsRemoved);
> > >
> > >
> > >
> >
> >
> >
> > --
> > Teoti Graphix, LLC
> > http://www.teotigraphix.com
> >
> > Teoti Graphix Blog
> > http://www.blog.teotigraphix.com
> >
> > You can find more by solving the problem then by 'asking the
> question'.
> >
>




[flexcoders] Re: getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
My entire class (SOCAdvisorVO) is marked as Bindable:

[Bindable]
public class SOCAdvisorVO
{
// used for problem flight 'cleared'
public var flightHasBeenClearedByUser:Boolean=false;


--- In flexcoders@yahoogroups.com, "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> Sounds like you need to check your bindings.
> 
> I don't think there is any way possible that the ArrayCollection 
can become
> intelligent and start deleting items without being told to by some 
outside
> force. ;-)
> 
> Sounds like it has to do with the;
> 
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true
> 
> That would be my guess.
> 
> Mike
> 
> On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
> [EMAIL PROTECTED]> wrote:
> 
> >   has anyone run into this problem? The code below is *removing* 
the
> > item from the ArrayCollection when I modify that one attribute on
> > the object. And the size of my ArrayCollection isn't increasing
> > after the call to addItem() either. the call to getItemIndex is
> > working just fine, but the object is removed and the size of the
> > ArrayCollection is decreased by 1 when the
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> > line is reached.
> >
> > any ideas?
> >
> > 
> > var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> > var indexOfFlightToEdit:int =
> > flightsForStation.getItemIndex(flightToMarkAsRemoved);
> > flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> >
> > // for some reason, simply setting the attrib to true is causing
> > //the item to be removed from the array collection.
> > flightsForStation.addItem(flightToMarkAsRemoved);
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the 
question'.
>




[flexcoders] getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread djbrown_rotonews
has anyone run into this problem? The code below is *removing* the 
item from the ArrayCollection when I modify that one attribute on 
the object. And the size of my ArrayCollection isn't increasing 
after the call to addItem() either. the call to getItemIndex is 
working just fine, but the object is removed and the size of the 
ArrayCollection is decreased by 1 when the 
flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
line is reached. 

any ideas?


var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
var indexOfFlightToEdit:int = 
flightsForStation.getItemIndex(flightToMarkAsRemoved);
flightToMarkAsRemoved.flightHasBeenClearedByUser=true;

// for some reason, simply setting the attrib to true is causing 
//the item to be removed from the array collection.
flightsForStation.addItem(flightToMarkAsRemoved);



[flexcoders] Re: dataTipRenderer available for DataGrid?

2008-05-27 Thread djbrown_rotonews
the code, as presented (using a Label), will reach the toolTipEvent 
(as desired), but only after I put a toolTip=" " at the end of the 
 

line.

thanks alex!
 

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> it compiles when using Label as the component, but it doesn't 
> compile when using DataGridItemRenderer (cannot resolve attribute 
> toolTipCreate. Should I use DGIR, but use a different event since 
> toolTipCreate isn't exposed?
> 
> 
>   
>  
>toolTipCreate="outerDocument.createPNRToolTip(event)"/

>   
> 
>   
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > In the future, please send code that compiles.
> > 
> >  
> > 
> > I'd forgotten that dataTip functionality is in the renderer and 
> not the
> > DG.  If you look at DataGridItemRenderer it has its own dataTip 
> code.
> > Label doesn't which is why it isn't set up to get the tooltip 
> events.
> > I'd probably copy code from DGIR to a subclass of Label.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of djbrown_rotonews
> > Sent: Tuesday, May 27, 2008 5:44 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
> > 
> >  
> > 
> > bump
> > 
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Busy week. I'll try to take a look next week maybe.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of djbrown_rotonews
> > > Sent: Thursday, May 22, 2008 6:49 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Re: dataTipRenderer available for 
DataGrid?
> > > 
> > > 
> > > 
> > > what am I missing then? My code never gets to the the 
> > > createPNRToolTip function referenced in the toolTipCreate 
event 
> > > handler. I messed around with the showDataTips property on the 
> > grid 
> > > itself, and it didn't change the behavior.
> > > 
> > >  > > dataProvider="{pnrsToProcess}">
> > > 
> > > 
> > >  
> > >  
> > >  > > toolTipCreate="outerDocument.createPNRToolTip(event)"/> 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > public function createPNRToolTip(event:ToolTipEvent):void {
> > > 
> > > }
> > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > Each renderer should get the event.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 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 djbrown_rotonews
> > > > Sent: Wednesday, May 21, 2008 5:47 AM
> > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > <mailto:flexcoders%
> > 40yahoogroups.com> 
> > > > Subject: [flexcoders] Re: dataTipRenderer available for 
> DataGrid?
> > > > 
> > > > 
> > > > 
> > > > I see where there's a ToolTipCreate event available, and 
I've 
> > used 
> > > > that in the past for custom tool tips over TextAreas etc.. I 
> see 
> > > the 
> > > > same event exposed for the DataGrid itself, but it doesn't 
> > appear 
> > > to 
> > > > exist for the individual columns. How would I handle the 
&g

[flexcoders] Re: dataTipRenderer available for DataGrid?

2008-05-27 Thread djbrown_rotonews
it compiles when using Label as the component, but it doesn't 
compile when using DataGridItemRenderer (cannot resolve attribute 
toolTipCreate. Should I use DGIR, but use a different event since 
toolTipCreate isn't exposed?



  





--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> In the future, please send code that compiles.
> 
>  
> 
> I'd forgotten that dataTip functionality is in the renderer and 
not the
> DG.  If you look at DataGridItemRenderer it has its own dataTip 
code.
> Label doesn't which is why it isn't set up to get the tooltip 
events.
> I'd probably copy code from DGIR to a subclass of Label.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Tuesday, May 27, 2008 5:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
> 
>  
> 
> bump
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Busy week. I'll try to take a look next week maybe.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of djbrown_rotonews
> > Sent: Thursday, May 22, 2008 6:49 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
> > 
> > 
> > 
> > what am I missing then? My code never gets to the the 
> > createPNRToolTip function referenced in the toolTipCreate event 
> > handler. I messed around with the showDataTips property on the 
> grid 
> > itself, and it didn't change the behavior.
> > 
> >  > dataProvider="{pnrsToProcess}">
> > 
> > 
> >  
> >  
> >  > toolTipCreate="outerDocument.createPNRToolTip(event)"/> 
> > 
> > 
> > 
> > 
> > 
> > public function createPNRToolTip(event:ToolTipEvent):void {
> > 
> > }
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Each renderer should get the event.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 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 djbrown_rotonews
> > > Sent: Wednesday, May 21, 2008 5:47 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Re: dataTipRenderer available for 
DataGrid?
> > > 
> > > 
> > > 
> > > I see where there's a ToolTipCreate event available, and I've 
> used 
> > > that in the past for custom tool tips over TextAreas etc.. I 
see 
> > the 
> > > same event exposed for the DataGrid itself, but it doesn't 
> appear 
> > to 
> > > exist for the individual columns. How would I handle the 
> situation 
> > > where I wanted to display a custom tool tip depending on what 
> > column 
> > > was being moused over?
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > There's a ToolTipEvent that you should be able to pick up 
and 
> > > return an
> > > > instance of a custom class to use as a tooltip
> > > > 
> > > > 
> > > > 
> > > > 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 djbrown_rotonews
> > > > Sent: Monday, May 19, 2008 1:20 PM
> > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > <mailto:flexcoders%
> > 40yahoogroups.com> 
> > > > Subject: [flexcoders] dataTipRenderer available for DataGrid?
> > > > 
> > > > 
> > > > 
> > > > How do I need to extend DataGrid to get the dataTipRenderer 
> > stuff 
> > > > exposed similiar to the charting classes?
> > > >
> > >
> >
>




[flexcoders] Re: dataTipRenderer available for DataGrid?

2008-05-22 Thread djbrown_rotonews
what am I missing then? My code never gets to the the 
createPNRToolTip function referenced in the toolTipCreate event 
handler. I messed around with the showDataTips property on the grid 
itself, and it didn't change the behavior.



 
   
  
   





public function createPNRToolTip(event:ToolTipEvent):void {

}
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Each renderer should get the event.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Wednesday, May 21, 2008 5:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
> 
>  
> 
> I see where there's a ToolTipCreate event available, and I've used 
> that in the past for custom tool tips over TextAreas etc.. I see 
the 
> same event exposed for the DataGrid itself, but it doesn't appear 
to 
> exist for the individual columns. How would I handle the situation 
> where I wanted to display a custom tool tip depending on what 
column 
> was being moused over?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > There's a ToolTipEvent that you should be able to pick up and 
> return an
> > instance of a custom class to use as a tooltip
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of djbrown_rotonews
> > Sent: Monday, May 19, 2008 1:20 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] dataTipRenderer available for DataGrid?
> > 
> > 
> > 
> > How do I need to extend DataGrid to get the dataTipRenderer 
stuff 
> > exposed similiar to the charting classes?
> >
>




[flexcoders] Re: dataTipRenderer available for DataGrid?

2008-05-21 Thread djbrown_rotonews
I see where there's a ToolTipCreate event available, and I've used 
that in the past for custom tool tips over TextAreas etc.. I see the 
same event exposed for the DataGrid itself, but it doesn't appear to 
exist for the individual columns. How would I handle the situation 
where I wanted to display a custom tool tip depending on what column 
was being moused over?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's a ToolTipEvent that you should be able to pick up and 
return an
> instance of a custom class to use as a tooltip
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Monday, May 19, 2008 1:20 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] dataTipRenderer available for DataGrid?
> 
> 
> 
> How do I need to extend DataGrid to get the dataTipRenderer stuff 
> exposed similiar to the charting classes?
>




[flexcoders] dataTipRenderer available for DataGrid?

2008-05-20 Thread djbrown_rotonews
How do I need to extend DataGrid to get the dataTipRenderer stuff 
exposed similiar to the charting classes?



[flexcoders] Re: Programmatic scrolling of a TileList?

2008-04-24 Thread djbrown_rotonews
that's getting me tons closer to where I want to be, Alex. Thanks!

and that carousel component looks pretty cool too.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Setting horizontalScrollPosition might be better.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Thursday, April 24, 2008 11:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Programmatic scrolling of a TileList?
> 
>  
> 
> I have no idea but maybe the carousel at
> http://giles.roadnight.name/components.cfm
> <http://giles.roadnight.name/components.cfm>  might give you some 
ideas.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "djbrown_rotonews"
>  wrote:
> >
> > any help out there?
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "djbrown_rotonews" 
> >  wrote:
> > >
> > > anyone? :)
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "djbrown_rotonews" 
> > >  wrote:
> > > >
> > > > 
> > > > I've got a tile list component that I want to be able to 
scroll 
> > > > through horizontally without the visual presence of the 
scroll 
> > > bars 
> > > > themselves. I've got a set of arrows that the user can click 
on 
> > to 
> > > > scroll through the items, but it's not quite working as 
desired.
> > > > 
> > > > Basically, my itemRenderers are data grids, but I don't want 
the 
> > > > user to be able to view just half a grid etc.. There might 
be 5 
> > > > grids under the covers, but I want only 3 full ones to be 
> > > displayed 
> > > > at any given time.
> > > > 
> > > > I'm using the button controls to increment through the 
> > > selectedIndex 
> > > > of the TileList itself, and then calling the scrollToIndex() 
> > > method 
> > > > using the index, but it behave as desired:
> > > > 
> > > > Default view:
> > > > Grids 1, 2 and 3 visible
> > > > User click to navigate to the right, so I'd want 
> > > > Grids 2, 3 and 4 to be visible.
> > > > 
> > > > The problem is that it's always displaying Grids 1, 2 and 3 
up 
> > to 
> > > > point where the selectedIndex is now Grid 4, and all I get 
> > > displayed 
> > > > in Grid 4 (I'd want Grids 2, 3, and 4)
> > > > 
> > > > I'm hoping that made some sense. will I need to extend the 
> > > TileList 
> > > > class and mess around with the visible property for each 
> > renderer 
> > > as 
> > > > well?
> > > >
> > >
> >
>




[flexcoders] Re: Programmatic scrolling of a TileList?

2008-04-24 Thread djbrown_rotonews
any help out there?

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> anyone? :)
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
>  wrote:
> >
> > 
> > I've got a tile list component that I want to be able to scroll 
> > through horizontally without the visual presence of the scroll 
> bars 
> > themselves. I've got a set of arrows that the user can click on 
to 
> > scroll through the items, but it's not quite working as desired.
> > 
> > Basically, my itemRenderers are data grids, but I don't want the 
> > user to be able to view just half a grid etc.. There might be 5 
> > grids under the covers, but I want only 3 full ones to be 
> displayed 
> > at any given time.
> > 
> > I'm using the button controls to increment through the 
> selectedIndex 
> > of the TileList itself, and then calling the scrollToIndex() 
> method 
> > using the index, but it behave as desired:
> > 
> > Default view:
> > Grids 1, 2 and 3 visible
> > User click to navigate to the right, so I'd want 
> > Grids 2, 3 and 4 to be visible.
> > 
> > The problem is that it's always displaying Grids 1, 2 and 3 up 
to 
> > point where the selectedIndex is now Grid 4, and all I get 
> displayed 
> > in Grid 4 (I'd want Grids 2, 3, and 4)
> > 
> > I'm hoping that made some sense. will I need to extend the 
> TileList 
> > class and mess around with the visible property for each 
renderer 
> as 
> > well?
> >
>




Re: RES: [flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread djbrown_rotonews
I currently have it hooked in via a mouseMove handler, and I create 
my proxyRenderer and DragSource in the handler. Is this where I'd 
set the xPos?


--- In flexcoders@yahoogroups.com, "Luciano Manerich Junior" 
<[EMAIL PROTECTED]> wrote:
>
> I would go for not dragging, and just handle the click event, 
adding an mouseMove handler to set the new X pos of the object.
> 
> 
> 
> De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Em nome de djbrown_rotonews
> Enviada em: terça-feira, 22 de abril de 2008 12:25
> Para: flexcoders@yahoogroups.com
> Assunto: [flexcoders] Restricting mouseX, mouseY while dragging?
> 
> 
> 
> I have the need to restrict the mouse (x,y) of my DragProxy when 
> dragging (basically, allow dragging only vertically and not 
> horizontally). What's the best way to go this using the various 
> Drag/Drop event handlers?
>




[flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread djbrown_rotonews
I have the need to restrict the mouse (x,y) of my DragProxy when 
dragging (basically, allow dragging only vertically and not 
horizontally). What's the best way to go this using the various 
Drag/Drop event handlers?



[flexcoders] Re: Programmatic scrolling of a TileList?

2008-04-15 Thread djbrown_rotonews
anyone? :)

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> 
> I've got a tile list component that I want to be able to scroll 
> through horizontally without the visual presence of the scroll 
bars 
> themselves. I've got a set of arrows that the user can click on to 
> scroll through the items, but it's not quite working as desired.
> 
> Basically, my itemRenderers are data grids, but I don't want the 
> user to be able to view just half a grid etc.. There might be 5 
> grids under the covers, but I want only 3 full ones to be 
displayed 
> at any given time.
> 
> I'm using the button controls to increment through the 
selectedIndex 
> of the TileList itself, and then calling the scrollToIndex() 
method 
> using the index, but it behave as desired:
> 
> Default view:
> Grids 1, 2 and 3 visible
> User click to navigate to the right, so I'd want 
> Grids 2, 3 and 4 to be visible.
> 
> The problem is that it's always displaying Grids 1, 2 and 3 up to 
> point where the selectedIndex is now Grid 4, and all I get 
displayed 
> in Grid 4 (I'd want Grids 2, 3, and 4)
> 
> I'm hoping that made some sense. will I need to extend the 
TileList 
> class and mess around with the visible property for each renderer 
as 
> well?
>




[flexcoders] Programmatic scrolling of a TileList?

2008-04-14 Thread djbrown_rotonews

I've got a tile list component that I want to be able to scroll 
through horizontally without the visual presence of the scroll bars 
themselves. I've got a set of arrows that the user can click on to 
scroll through the items, but it's not quite working as desired.

Basically, my itemRenderers are data grids, but I don't want the 
user to be able to view just half a grid etc.. There might be 5 
grids under the covers, but I want only 3 full ones to be displayed 
at any given time.

I'm using the button controls to increment through the selectedIndex 
of the TileList itself, and then calling the scrollToIndex() method 
using the index, but it behave as desired:

Default view:
Grids 1, 2 and 3 visible
User click to navigate to the right, so I'd want 
Grids 2, 3 and 4 to be visible.

The problem is that it's always displaying Grids 1, 2 and 3 up to 
point where the selectedIndex is now Grid 4, and all I get displayed 
in Grid 4 (I'd want Grids 2, 3, and 4)

I'm hoping that made some sense. will I need to extend the TileList 
class and mess around with the visible property for each renderer as 
well?




[flexcoders] using SliderDataTipClass?

2008-04-01 Thread djbrown_rotonews
I'm wanting to add a label to each of my thumbs, so that something 
like "Start time" and "End time" will be present under the thumb 
itself even when not dragging (I believe this requirement prevents me 
from simply using a dataTipFormatFunction). Can I do this by extending 
SliderDataTipClass?





[flexcoders] Re: Accordion question

2008-03-11 Thread djbrown_rotonews
that sounds like a better solution :) Do you have some sample code 
that would illustrate this? Is it using mx:Model?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> These days, we are pushing everyone to use a model-view or
> model-view-controller (MVC) architecture.
> 
>  
> 
> If you did, you would store the combobox selection in the data 
model and
> all views would be bound to that slot in the model.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Tuesday, March 11, 2008 7:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Accordion question
> 
>  
> 
> I have a GUI that has a "Tabbed view" and a "tiles view", both as 
> children of an Accordion (the tiles view is just a repeater inside 
of 
> a vbox as opposed to an actual tile list).
> 
> Anyhow, each component has a few combobox pulldowns etc.. I want 
to be 
> able to "synch" up those selections, so that when the user 
switches 
> from tabs to tiles that the menu selections are preserved and 
> displayed in the new view.
> 
> I've messed around with placing some code to do this inside the 
change 
> event handler of the accordion itself (iterating over the 
children, 
> grabbing the menu selections etc..). Is that the easiest way to do 
it?
>




[flexcoders] Accordion question

2008-03-11 Thread djbrown_rotonews
I have a GUI that has a "Tabbed view" and a "tiles view", both as 
children of an Accordion (the tiles view is just a repeater inside of 
a vbox as opposed to an actual tile list).

Anyhow, each component has a few combobox pulldowns etc.. I want to be 
able to "synch" up those selections, so that when the user switches 
from tabs to tiles that the menu selections are preserved and 
displayed in the new view.

I've messed around with placing some code to do this inside the change 
event handler of the accordion itself (iterating over the children, 
grabbing the menu selections etc..). Is that the easiest way to do it?



[flexcoders] TimeChooser conponent similiar to DateChooser?

2007-05-16 Thread djbrown_rotonews
Has anyone coded up a TimeChooser component that would behave similiar 
to the DateChooser component? Something that would allow us to 
generate combo boxes on the fly essentially, taking in start time, end 
time and increments as parameters?



[flexcoders] deploying a simple Flex app to WebSphere AppServer?

2007-01-27 Thread djbrown_rotonews
I'm trying to deploy a simple flex app to WAS6.1 after having it run 
under the included jrun4. What processes do I need to take, or is 
there a tutorial online that would step me thru the process?



[flexcoders] Re: changing the pageTitle programmatically?

2006-09-26 Thread djbrown_rotonews
can you provide me with a sample? The code below DOES change then 
contents of the statusbar in my browser, but doesn't impact the page 
title:

  var u:URLRequest = new URLRequest("javascript:window.title='" + 
station + "';void(0)");
navigateToURL(u, "_self");
//  var u2:URLRequest = new URLRequest("javascript:window.status='" 
+ station + "';void(0)");
 //  navigateToURL(u2, "_self");

--- In flexcoders@yahoogroups.com, "Ralf Bokelberg" 
<[EMAIL PROTECTED]> wrote:
>
> You could use the externalAPI and Javascript.
> Cheers,
> Ralf
> 
> On 8/8/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> > I have a use case where I need to change the pageTitle of my
> > application to change based on a selection in a combo box. Is 
this
> > possible? It looks like the pageTitle tag is used to generate 
the HTML
> > at run-time, and isn't dynamic in nature as I need.
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
> 
> 
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
>






--
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] Re: changing the pageTitle programmatically?

2006-09-26 Thread djbrown_rotonews
--- In flexcoders@yahoogroups.com, "Ralf Bokelberg" 
<[EMAIL PROTECTED]> wrote:
>
> You could use the externalAPI and Javascript.
> Cheers,
> Ralf
> 
> On 8/8/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> > I have a use case where I need to change the pageTitle of my
> > application to change based on a selection in a combo box. Is 
this
> > possible? It looks like the pageTitle tag is used to generate 
the HTML
> > at run-time, and isn't dynamic in nature as I need.
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
> 
> 
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
>







--
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] rollOver "outline box" for DataGrid?

2006-08-21 Thread djbrown_rotonews
Is there a way to create a rollOver rectangle/outline box in the 
DataGrid, as opposed to the solid rectangle that currently exists? I'm 
able to create an outline box over a specific cell that is rolled 
over, but can't seem to extend it to the entire row.








--
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] changing the pageTitle programmatically?

2006-08-08 Thread djbrown_rotonews
I have a use case where I need to change the pageTitle of my 
application to change based on a selection in a combo box. Is this 
possible? It looks like the pageTitle tag is used to generate the HTML 
at run-time, and isn't dynamic in nature as I need.






--
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: "only one root tag is allowed" error when migrating from Beta3 to final?

2006-08-01 Thread djbrown_rotonews
as a followup, simply adding  tags around the model attribute 
declarations did the trick.





2400



--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> 
wrote:
>
> 
> End of the URL just got cut off in the original post.
> 
> 
http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_change
s.c\
> fm
> 
<http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_chang
es.\
> cfm>
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > Randy, that link appears to be invalid. It sure would be useful.
> >
> >
> >
> > Tracy
> >
> >
> >
> >
> > Not Found
> >
> >
> > The requested URL /flexteam/archives/2006/06/flex_2_changes. was 
not
> > found on this server.
> >
> > 
> >
> > Apache/2.0.53 (Unix) DAV/2 JRun/4.0 Server at 
weblogs.macromedia.com
> > Port 80
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
> On
> > Behalf Of jrunrandy
> > Sent: Tuesday, August 01, 2006 7:42 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: "only one root tag is allowed" error 
when
> > migrating from Beta3 to final?
> >
> >
> >
> > Between B3 and final, the mx:Model tag started requiring well-
formed
> > E4X XML. It's listed in the Changes Between Beta 3 and Final page
> >
> 
(http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_chang
es.
> >
> 
<http://weblogs.macromedia.com/flexteam/archives/2006/06/flex_2_chang
es.
> > >
> > cfm), but is easy to miss.
> >
> > HTH
> > -Randy Nielsen
> > Flex Documentation Manager
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > , "djbrown_rotonews"
> > djbrown_rotonews@ wrote:
> > >
> > > I'm getting the above error on all my mx:Model declarations 
after
> > > moving my code from Beta3 to the final release. What's the 
solution?
> > >
> >
>







--
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] "only one root tag is allowed" error when migrating from Beta3 to final?

2006-07-31 Thread djbrown_rotonews
I'm getting the above error on all my mx:Model declarations after 
moving my code from Beta3 to the final release. What's the solution?





--
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] known bug? DataGrid/iconFunction help needed

2006-07-26 Thread djbrown_rotonews
I've been able to determined that the following works just fine when 
using mx:List, but it doesn't call the iconFunction at all when 
using mx:DataGrid. Is this a known bug?


http://www.adobe.com/2006/mxml";>




 














 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/

<*> 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: DataGrid/iconFunction help needed

2006-07-26 Thread djbrown_rotonews
--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to get the itemFunction property of a DataGrid to work. 
I 
> set it up correctly, but the function never seems to get called 
even 
> when the dataProvider's data is refreshed (I'm using 
> XMLListCollection as the dataProvider).
> 
> iconField and iconFunction are listed in the API for DataGridBase, 
> but not specifically in DataGrid. 
> 
>  
> 
> // display the icon if the item is in acceptedProblems
> private function myIcon(item:Object):Class{
> if (item==null)
>   return null;
> if (acceptedProblems.contains(item)) {
>   return iconSymbol_okay;
> } 
>  return null;
> }
> 
> This function doesn't even get called expect during the 
> initialization of the application as it runs through all the 
> contained GUI components.
>






 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/

<*> 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: DataGrid/itemFunction help needed

2006-07-26 Thread djbrown_rotonews
Whoops. I meant iconFunction, not itemFunction.

At any rate, here's a quick example. If you use a mx:List, it works 
flawlessly; if you use mx:DataGrid, the myIconFunction is never even 
called.


http://www.adobe.com/2006/mxml";>




 














 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/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] DataGrid/itemFunction help needed

2006-07-26 Thread djbrown_rotonews
I'm trying to get the itemFunction property of a DataGrid to work. I 
set it up correctly, but the function never seems to get called even 
when the dataProvider's data is refreshed (I'm using 
XMLListCollection as the dataProvider).

iconField and iconFunction are listed in the API for DataGridBase, 
but not specifically in DataGrid. 



// display the icon if the item is in acceptedProblems
private function myIcon(item:Object):Class{
if (item==null)
  return null;
if (acceptedProblems.contains(item)) {
  return iconSymbol_okay;
} 
 return null;
}

This function doesn't even get called expect during the 
initialization of the application as it runs through all the 
contained GUI components.





--
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] double click in a cell adds an icon?

2006-07-20 Thread djbrown_rotonews
I've got a dataGrid, and I want to add an icon to a particular cell 
when I doubleclick on it. I know how to capture the doubleclick event, 
etc.. but how do I go about adding the icon to the current contents of 
the renderer (it's plain text by default)






 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/
 




[flexcoders] using XMLList.contains() question

2006-07-20 Thread djbrown_rotonews
My xml stream is as follows, and I want to programmatically 
determine if it contains the  tag. How can I do this via the 
XMLList.contains() method?


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


  
  
  
  
  


and my attempt at some source code that isn't working:

public function generateCPMouseOver(data:Object,  
myListData:DataGridListData):String {
var xmlData:XML = XML(data);

var elems:XMLList = xmlData.elements();
var children:XMLList = xmlData.children();
var item:XML;

var found:Boolean = false;
for each(item in elems) {
trace("item: " + item.toXMLString());
var attribs:XMLList = item.attributes();
if (item.contains("")) found=true;
}
return found.toString();
}

and the output:
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
item: 
  
  

item: 
item: 
item: 
item: 







 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/
 





[flexcoders] help with XMLList.contains() needed

2006-07-19 Thread djbrown_rotonews
Below is output from my code that represents the elements in an 
XMLList. I'm wanting to determine if the stream contains a  
tag (this one does, not all do) and am having trouble doing so via 
the code attached. Can someone point out my error when using 
XMLList.contains()? I've tried contains with "cpData", "", 
etc.. and nothing seems to work.

item: 
item: 
item: 
  
  

item: 
item: 
item: 


public function generateCPMouseOver(data:Object, 
myListData:DataGridListData):String {
var xmlData:XML = XML(data);
var elems:XMLList = xmlData.elements();
var item:XML;

var found:Boolean = false;
for each(item in elems) {
   trace("item: " + item.toXMLString());
   if (item.contains("")) found=true;
}
return found.toString();
}





 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/
 




[flexcoders] Re: "falling between" items when using itemRollOver (DataGrid)

2006-07-07 Thread djbrown_rotonews
any help here?

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> I'm using the itemRollOver event mechanism to display additional 
info 
> about items in my DataGrid, and it appears that you can "fall 
between" 
> items with the mouse (ie, I'll be at Row 1 Column 5 and move the 
mouse 
> a tick down and it goes to Row 2 Column 0, and then back to Row 2 
> Column 5 after another slight move).
> 
>  Is there a way to programmaticaly prevent this behavior? The end 
> result is I get some "info flicker" as the event triggers some 
info 
> based on Row 2, Column 0 very quickly before proceeding to the 
next 
> event target.
>






 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/
 





[flexcoders] HTTPService (jsp, specifically) getting cached?

2006-07-05 Thread djbrown_rotonews
I've run into a situation where I want to re-issue a call to a jsp via 
an HTTPService with the same set of parameters. (It's a query to a db 
essentially, with the params specifying the WHERE clause of the SQL). 
The problem comes when I try and re-issue the HTTPService with the 
same parameters in that the jsp does NOT get called, and I simply get 
a cached result from the previous HTTPService call. 

Is there a way to cache/uncache these results so I don't have to add a 
guaranteed unique dummy variable as a parameter (currently using a 
timestamp as a workaround?






 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] "falling between" items when using itemRollOver (DataGrid)

2006-07-05 Thread djbrown_rotonews
I'm using the itemRollOver event mechanism to display additional info 
about items in my DataGrid, and it appears that you can "fall between" 
items with the mouse (ie, I'll be at Row 1 Column 5 and move the mouse 
a tick down and it goes to Row 2 Column 0, and then back to Row 2 
Column 5 after another slight move).

 Is there a way to programmaticaly prevent this behavior? The end 
result is I get some "info flicker" as the event triggers some info 
based on Row 2, Column 0 very quickly before proceeding to the next 
event target.






--
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: coloring an entire cell in a DataGrid?

2006-07-03 Thread djbrown_rotonews
doing so causes my datagrid to be empty. any ideas why?

   override public function set data(value:Object):void {
if (!value) return;
super.data=value;   
//this.setStyle("backgroundColor","red");
// that line causes my grid to be empty if I leave it 
// uncommented  

}

--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> in that data() block, I would just use:
> 
> this.setStyle("backgroundColor", "red");
> 
> to change the item renderer's background color.
> 
> see if this works.
> 
> Jeremy.
> 
> On 7/1/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> >
> >   any help? is there a more elegant way to do it inside of set 
data(),
> > or is the beginFill/drawRect/endFill method shown as good as it 
gets?
> >
> > --- In flexcoders@yahoogroups.com ,
> > "djbrown_rotonews"
> >
> >  wrote:
> > >
> > > Is the beginFill/drawRect/endFill the only way to do it inside 
of
> > > set data() as well, or is there an alternate way?
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > "Jeremy Lu"  wrote:
> > > >
> > > > Got it, thanks :-)
> > > >
> > > >
> > > >
> > > > On 6/27/06, Joan Tan  wrote:
> > > > >
> > > > > I believe that this was suggested to me by Alex. I think
> > your
> > > way
> > > > > should work too though.
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *From:* flexcoders@yahoogroups.com 
> > > [mailto:flexcoders@yahoogroups.com ] *On
> > > > > Behalf Of *Jeremy Lu
> > > > > *Sent:* Monday, June 26, 2006 4:22 PM
> > > > > *To:* flexcoders@yahoogroups.com 
> > > > > *Subject:* Re: [flexcoders] Re: coloring an entire cell in 
a
> > > DataGrid?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > hi Joan,
> > > > >
> > > > > Just wondering is there any particular reason that you 
don't
> > > change the
> > > > > background color in the data() setter like this:
> > > > >
> > > > > public function set data(value:Object
> > >
> > 
<http://../../../Object.html>):void<http://../../../specialTypes.html
> > > #void>
> > > > > {
> > > > >
> > > > > if( value.myColumnName > 50){
> > > > > //change bg to red
> > > > > }else{
> > > > > //change to other color
> > > > > }
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > > Jeremy.
> > > > >
> > > > > On 6/27/06, *Joan Tan*  wrote:
> > > > >
> > > > > The "color" style of Text only affects the text and the 
not the
> > > > > background. Text doesn't actually have a background color 
so
> > you
> > > must create
> > > > > an itemRenderer with a backgroundColor and then set it. 
This
> > > example was
> > > > > posted on another flexcoders thread entitled "datagrid". 
This
> > > itemRenderer
> > > > > will turn the background of a row to red if the value of 
the
> > > column
> > > > > "myColumnName" in that row is over 50.
> > > > >
> > > > >
> > > > >
> > > > > package {
> > > > >
> > > > >
> > > > >
> > > > > import mx.controls.Label;
> > > > >
> > > > > import mx.controls.dataGridClasses.*;
> > > > >
> > > > > import mx.controls.DataGrid;
> > > > >
> > > > > import flash.display.Graphics;
> > > > >
> > > > > import mx.styles.StyleManager;
> > > > >
> > > > >
> > > > >
> > > > > [Style(name="backgroundColor", type="uint", format="Color",
> > > > > inherit="no")]
> > > > >
> > > > >
> > > > >
> > > > > public class BackgroundComp extends Label {
> > > > >
> > > > >
> > > > 

[flexcoders] Re: coloring an entire cell in a DataGrid?

2006-06-30 Thread djbrown_rotonews
any help? is there a more elegant way to do it inside of set data(), 
or is the beginFill/drawRect/endFill method shown as good as it gets?


--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> Is the beginFill/drawRect/endFill the only way to do it inside of 
> set data() as well, or is there an alternate way?
> 
> --- In flexcoders@yahoogroups.com, "Jeremy Lu"  wrote:
> >
> > Got it, thanks :-)
> > 
> > 
> > 
> > On 6/27/06, Joan Tan  wrote:
> > >
> > >I believe that this was suggested to me by Alex. I think 
your 
> way
> > > should work too though.
> > >
> > >
> > >  --
> > >
> > > *From:* flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] *On
> > > Behalf Of *Jeremy Lu
> > > *Sent:* Monday, June 26, 2006 4:22 PM
> > > *To:* flexcoders@yahoogroups.com
> > > *Subject:* Re: [flexcoders] Re: coloring an entire cell in a 
> DataGrid?
> > >
> > >
> > >
> > >
> > > hi Joan,
> > >
> > > Just wondering is there any particular reason that you don't 
> change the
> > > background color in the data() setter like this:
> > >
> > > public function set data(value:Object 
> 
<http://../../../Object.html>):void<http://../../../specialTypes.html
> #void>
> > > {
> > >
> > > if( value.myColumnName > 50){
> > > //change bg to red
> > >   }else{
> > > //change to other color
> > >   }
> > >
> > > }
> > >
> > >
> > > Jeremy.
> > >
> > > On 6/27/06, *Joan Tan*  wrote:
> > >
> > > The "color" style of Text only affects the text and the not the
> > > background. Text doesn't actually have a background color so 
you 
> must create
> > > an itemRenderer with a backgroundColor and then set it. This 
> example was
> > > posted on another flexcoders thread entitled "datagrid". This 
> itemRenderer
> > > will turn the background of a row to red if the value of the 
> column
> > >  "myColumnName" in that row is over 50.
> > >
> > >
> > >
> > > package {
> > >
> > >
> > >
> > > import mx.controls.Label;
> > >
> > > import mx.controls.dataGridClasses.*;
> > >
> > > import mx.controls.DataGrid;
> > >
> > > import flash.display.Graphics;
> > >
> > > import mx.styles.StyleManager;
> > >
> > >
> > >
> > > [Style(name="backgroundColor", type="uint", format="Color",
> > > inherit="no")]
> > >
> > >
> > >
> > >   public class BackgroundComp extends Label {
> > >
> > >
> > >
> > >override protected function updateDisplayList
> (unscaledWidth:Number,
> > >
> > >
> > >
> > > unscaledHeight:Number):void
> > >
> > >{
> > >
> > >   super.updateDisplayList(unscaledWidth, 
> unscaledHeight);
> > >
> > >
> > >
> > >   var g:Graphics = graphics;
> > >
> > >   g.clear();
> > >
> > >   var grid1:DataGrid =
> > > DataGrid(DataGridListData(listData).owner);
> > >
> > >   if (grid1.isItemSelected(data) ||
> > > grid1.isItemHighlighted(data))
> > >
> > > return;
> > >
> > >   if (data.myColumnName > 50)
> > >
> > >   {
> > >
> > > g.beginFill(0xFF);
> > >
> > > g.drawRect(0, 0, unscaledWidth, 
> unscaledHeight);
> > >
> > > g.endFill();
> > >
> > > }
> > >
> > >   }
> > >
> > >   }
> > >
> > >
> > >
> > > }
> > >
> > >
> > >
> > >
> > >  --
> > >
> > > *From:* flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] *On
> > > Behalf Of *djbrown_rotonews
> > > *Sent:* Monday, June 26, 2006 10:13 AM
> > > *To:* flexcoders@yahoogroups.com
> > > *Subject:* [f

[flexcoders] submenu items on a ComboBox?

2006-06-29 Thread djbrown_rotonews
Is there a way to add submenu items on a ComboBox? Like the initial 
combobox would have 2 items "Colors" and "Fruit", and then a selection 
of "Colors" would display another menu like "Red" "Blue" "Yellow" 
etc.. I know that type of behavior is available in mx:Tree, but how 
about mx:ComboBox?






 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/
 




[flexcoders] stuck on initializing?

2006-06-29 Thread djbrown_rotonews
my flex app has just recently gotten "stuck" on initializing, but a co-
worker is able run it from his browser when pointing to my ip address. 
My browser briefly shows a re-direct url to
flex-internal?action=history 

any ideas on how to fix this in my local browser? I'd just assume not 
have to sit in my co-workers lap to develop :)





 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread djbrown_rotonews
I'm still not having any luck. The reset event is being called 
upstream and processed in my handler, with the proper value of 
prevIndex calculated, but the grid still jumps to the top after the 
data fill:

if (event.kind == CollectionEventKind.RESET) {
var prevIndex:int = this.dgDelays.verticalScrollPosition;
trace("prevIndex = ",prevIndex);
this.dgDelays.verticalScrollPosition=prevIndex;
}

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam" 
<[EMAIL PROTECTED]> wrote:
>
> I'm sorry, I totally misspoke. I meant to say RESET in my 
explanation
> below. 
> 
>  
> 
> When your collection is filled with new data after a fill() call 
to your
> DataService, the component bound to that collection will receive a
> CollectionEvent with kind = RESET. Internally, we re-populate the
> component with the new data and reset the scroll position to 0. 
> 
> 
> What you can do is add your own collectionChange event handler to 
your
> collection and upon receiving a RESET, reset the 
verticalScrollPosition
> to whatever value you've been tracking.
> 
>  
> 
> private function acHandler(event:CollectionEvent):void
> 
> {
> 
> if (event.kind == CollectionEventKind.RESET)
> 
> dg.verticalScrollPosition = vPos;
> 
> }
> 
>  
> 
> There's no need to use the scrollToIndex() method; by setting the
> verticalScrollPosition property directly, the scrollbar and 
content are
> update as if the user scrolled to that index. 
> 
>  
> 
> Best,
> 
> deepa
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Wednesday, June 28, 2006 7:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on
> update to dataProvider
> 
>  
> 
> I added a collectionChange event to my XMLListCollection (that's 
the 
> dataProvider for the grid) as follows:
> 
> public function preserveScrollPosition(event:CollectionEvent):void 
{
> 
> var prevIndex:int = this.dgDelays.verticalScrollPosition;
> trace("prevIndex = ",prevIndex);
> this.dgDelays.scrollToIndex(prevIndex);
> 
> }
> 
> and the trace info does give me the value of the currentScroll, 
but 
> the grid still goes back to the top after the data is populated.
> 
> is refresh() still being called after this guy?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "Deepa Subramaniam" 
>  wrote:
> >
> > When the actual data comes in, the DataGrid encounters a REFRESH
> > collectionChange event and if you look in
> > ListBase.collectionChangeHandler's REFRESH case, you'll see that 
> the
> > verticalScrollPosition is set to 0. 
> > 
> > What you need to do is set the scroll position *after* the data 
> has come
> > in and the DataGrid has processed the REFRESH event. 
> > 
> > -deepa
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of djbrown_rotonews
> > Sent: Tuesday, June 27, 2006 12:42 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top 
on
> > update to dataProvider
> > 
> > I actually tried this (my dataProvider for the grid is an 
> > XMLListCollection being populated by a jsp. The grid has custom 
> item 
> > renderers if that's relevant).
> > 
> > anyhow, I have an "update" button which will call the jsp and 
get 
> > new results when clicked. I've set it up so the click() method 
> > correctly captures the scroll position, calls the jsp, and then 
> sets 
> > the scrollToIndex to the previous value of the scroll position. 
It 
> > works great while the "busy cursor" is displayed, but it reverts 
> > back to scrolled all the way at the top once the actual data 
comes 
> > in from the jsp (it takes about 3 seconds to update the grid 
with 
> > the new data).
> > 
> > any ideas on where the scroll position is being reset?
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Deepa Subramaniam" 
> >  wrote:
> > >
> > > Hi Jordan -
> > > 
> > > 
> > > 
> > > You can keep track of the verticalScrollPosition property in 
your
> > > DataGrid and up

[flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread djbrown_rotonews
I added a collectionChange event to my XMLListCollection (that's the 
dataProvider for the grid) as follows:


public function preserveScrollPosition(event:CollectionEvent):void {

var prevIndex:int = this.dgDelays.verticalScrollPosition;
trace("prevIndex = ",prevIndex);
this.dgDelays.scrollToIndex(prevIndex);

}

and the trace info does give me the value of the currentScroll, but 
the grid still goes back to the top after the data is populated.

is refresh() still being called after this guy?

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam" 
<[EMAIL PROTECTED]> wrote:
>
> When the actual data comes in, the DataGrid encounters a REFRESH
> collectionChange event and if you look in
> ListBase.collectionChangeHandler's REFRESH case, you'll see that 
the
> verticalScrollPosition is set to 0. 
> 
> What you need to do is set the scroll position *after* the data 
has come
> in and the DataGrid has processed the REFRESH event. 
> 
> -deepa
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Tuesday, June 27, 2006 12:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on
> update to dataProvider
> 
> I actually tried this (my dataProvider for the grid is an 
> XMLListCollection being populated by a jsp. The grid has custom 
item 
> renderers if that's relevant).
> 
> anyhow, I have an "update" button which will call the jsp and get 
> new results when clicked. I've set it up so the click() method 
> correctly captures the scroll position, calls the jsp, and then 
sets 
> the scrollToIndex to the previous value of the scroll position. It 
> works great while the "busy cursor" is displayed, but it reverts 
> back to scrolled all the way at the top once the actual data comes 
> in from the jsp (it takes about 3 seconds to update the grid with 
> the new data).
> 
> any ideas on where the scroll position is being reset?
> 
> --- In flexcoders@yahoogroups.com, "Deepa Subramaniam" 
>  wrote:
> >
> > Hi Jordan -
> > 
> >  
> > 
> > You can keep track of the verticalScrollPosition property in your
> > DataGrid and upon receving UPDATES, re-set the 
> verticalScrollPosition to
> > the previous value and the DataGrid will jump to the last scroll
> > position and show the correct content. 
> > 
> >  
> > 
> > -deepa
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Jordan Snyder
> > Sent: Monday, June 26, 2006 7:34 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Keeping DataGrid from scrolling to top on 
> update
> > to dataProvider
> > 
> >  
> > 
> > Hello All,
> > 
> > I am working on an app in which I poll the server quite 
frequently 
> to
> > get new information.  The information comes to me in an XML 
format 
> that
> > I simply assign as the dataProvider for a DataGrid component. 
> > 
> > I have to keep in consideration the fact that the user may have 
> selected
> > a certain row, and may want to delete that row even after an 
> update to
> > the dataProvider is made, so I keep track of the selectedIndex 
> property
> > and reselect upon an update.
> > 
> > But if the user has not selected a row, the DataGrid will 
> automatically
> > scroll to the top upon an update, even if the user has scrolled 
to 
> the
> > bottom of the grid.  
> > 
> > Is there a way around this?  I found a way to scrollToIndex(), 
but 
> no
> > way of getting the currently viewed items.  It may have 
something 
> to do
> > with the various renderer properties available on the DataGrid, 
> but I
> > have a very limited understanding of this, so it's over my head.
> > 
> > Surely this problem has been run into before, but I can't seem 
to 
> find
> > the right combination of search terms to figure out a method of 
> solving
> > it.
> > 
> > Does anyone have any ideas or proven methods for the problem?  
Any 
> help
> > would be greatly appreciated.
> > 
> > Thank you,
> > 
> > Jordan Snyder
> > jordan.snyder@
> > www.jordansnyder.com
> >
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yaho

[flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-27 Thread djbrown_rotonews
I actually tried this (my dataProvider for the grid is an 
XMLListCollection being populated by a jsp. The grid has custom item 
renderers if that's relevant).

anyhow, I have an "update" button which will call the jsp and get 
new results when clicked. I've set it up so the click() method 
correctly captures the scroll position, calls the jsp, and then sets 
the scrollToIndex to the previous value of the scroll position. It 
works great while the "busy cursor" is displayed, but it reverts 
back to scrolled all the way at the top once the actual data comes 
in from the jsp (it takes about 3 seconds to update the grid with 
the new data).

any ideas on where the scroll position is being reset?

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Jordan -
> 
>  
> 
> You can keep track of the verticalScrollPosition property in your
> DataGrid and upon receving UPDATES, re-set the 
verticalScrollPosition to
> the previous value and the DataGrid will jump to the last scroll
> position and show the correct content. 
> 
>  
> 
> -deepa
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Jordan Snyder
> Sent: Monday, June 26, 2006 7:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Keeping DataGrid from scrolling to top on 
update
> to dataProvider
> 
>  
> 
> Hello All,
> 
> I am working on an app in which I poll the server quite frequently 
to
> get new information.  The information comes to me in an XML format 
that
> I simply assign as the dataProvider for a DataGrid component. 
> 
> I have to keep in consideration the fact that the user may have 
selected
> a certain row, and may want to delete that row even after an 
update to
> the dataProvider is made, so I keep track of the selectedIndex 
property
> and reselect upon an update.
> 
> But if the user has not selected a row, the DataGrid will 
automatically
> scroll to the top upon an update, even if the user has scrolled to 
the
> bottom of the grid.  
> 
> Is there a way around this?  I found a way to scrollToIndex(), but 
no
> way of getting the currently viewed items.  It may have something 
to do
> with the various renderer properties available on the DataGrid, 
but I
> have a very limited understanding of this, so it's over my head.
> 
> Surely this problem has been run into before, but I can't seem to 
find
> the right combination of search terms to figure out a method of 
solving
> it.
> 
> Does anyone have any ideas or proven methods for the problem?  Any 
help
> would be greatly appreciated.
> 
> Thank you,
> 
> Jordan Snyder
> [EMAIL PROTECTED]
> www.jordansnyder.com
>







 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Re: coloring an entire cell in a DataGrid?

2006-06-27 Thread djbrown_rotonews
Is the beginFill/drawRect/endFill the only way to do it inside of 
set data() as well, or is there an alternate way?

--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> Got it, thanks :-)
> 
> 
> 
> On 6/27/06, Joan Tan <[EMAIL PROTECTED]> wrote:
> >
> >I believe that this was suggested to me by Alex. I think your 
way
> > should work too though.
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Jeremy Lu
> > *Sent:* Monday, June 26, 2006 4:22 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* Re: [flexcoders] Re: coloring an entire cell in a 
DataGrid?
> >
> >
> >
> >
> > hi Joan,
> >
> > Just wondering is there any particular reason that you don't 
change the
> > background color in the data() setter like this:
> >
> > public function set data(value:Object 
<http://../../../Object.html>):void<http://../../../specialTypes.html
#void>
> > {
> >
> > if( value.myColumnName > 50){
> > //change bg to red
> >   }else{
> > //change to other color
> >   }
> >
> > }
> >
> >
> > Jeremy.
> >
> > On 6/27/06, *Joan Tan* <[EMAIL PROTECTED]> wrote:
> >
> > The "color" style of Text only affects the text and the not the
> > background. Text doesn't actually have a background color so you 
must create
> > an itemRenderer with a backgroundColor and then set it. This 
example was
> > posted on another flexcoders thread entitled "datagrid". This 
itemRenderer
> > will turn the background of a row to red if the value of the 
column
> >  "myColumnName" in that row is over 50.
> >
> >
> >
> > package {
> >
> >
> >
> > import mx.controls.Label;
> >
> > import mx.controls.dataGridClasses.*;
> >
> > import mx.controls.DataGrid;
> >
> > import flash.display.Graphics;
> >
> > import mx.styles.StyleManager;
> >
> >
> >
> > [Style(name="backgroundColor", type="uint", format="Color",
> > inherit="no")]
> >
> >
> >
> >   public class BackgroundComp extends Label {
> >
> >
> >
> >override protected function updateDisplayList
(unscaledWidth:Number,
> >
> >
> >
> > unscaledHeight:Number):void
> >
> >{
> >
> >   super.updateDisplayList(unscaledWidth, 
unscaledHeight);
> >
> >
> >
> >   var g:Graphics = graphics;
> >
> >   g.clear();
> >
> >   var grid1:DataGrid =
> > DataGrid(DataGridListData(listData).owner);
> >
> >   if (grid1.isItemSelected(data) ||
> > grid1.isItemHighlighted(data))
> >
> > return;
> >
> >   if (data.myColumnName > 50)
> >
> >   {
> >
> > g.beginFill(0xFF);
> >
> > g.drawRect(0, 0, unscaledWidth, 
unscaledHeight);
> >
> > g.endFill();
> >
> > }
> >
> >   }
> >
> >   }
> >
> >
> >
> > }
> >
> >
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *djbrown_rotonews
> > *Sent:* Monday, June 26, 2006 10:13 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: coloring an entire cell in a 
DataGrid?
> >
> >
> >
> >
> > I'm using an itemRenderer to set the text color via the setStyle
> > ("color",) construct, but it doesn't appear to be that 
simple
> > for backgroundColor. Is the data() method part of the renderer 
API?
> >
> > --- In flexcoders@yahoogroups.com , "Jeremy
> > Lu"  wrote:
> > >
> > > Using item renderer, yes.
> > >
> > > Check it in the manual and pay attention to data() method.
> > >
> > >
> > >
> > > On 6/26/06, djbrown_rotonews  wrote:
> > > >
> > > > Is there a way to color the entire cell, and not sure the 
cell
> > text
> > > > itself, inside a DataGrid?
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >  
> >
>







 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/
 





[flexcoders] Re: coloring an entire cell in a DataGrid?

2006-06-26 Thread djbrown_rotonews

I'm using an itemRenderer to set the text color via the setStyle
("color",) construct, but it doesn't appear to be that simple 
for backgroundColor. Is the data() method part of the renderer API?

--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> Using item renderer, yes.
> 
> Check it in the manual and pay attention to data() method.
> 
> 
> 
> On 6/26/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> >
> >   Is there a way to color the entire cell, and not sure the cell 
text
> > itself, inside a DataGrid?
> >
> >  
> >
>







 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] coloring an entire cell in a DataGrid?

2006-06-26 Thread djbrown_rotonews
Is there a way to color the entire cell, and not sure the cell text 
itself, inside a DataGrid? 





 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Re: toolTip type behavior for DataGridColumns?

2006-06-23 Thread djbrown_rotonews

I actually solved the problem. I had to explicity handle it inside 
my itemRenderer implementation (via this.toolTip="blah blah" ).

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> weird. 
> 
> I've set up the following and it doesn't appear to work:
> 
>  headerRenderer="myHeaderRenderer" id="dptrsts" resizable="false" 
> textAlign="center" fontWeight="bold" headerText="STS"  
> width="{col1.width}" headerWordWrap="true" dataField="depstatus" 
> labelFunction="departureStatusLabelFunction" 
> sortCompareFunction="sortAlpha" 
itemRenderer="components.renderer"/>
> 
> and my dataGrid as follows:
>  id="dgDelays"  verticalGridLines="false" 
horizontalGridLines="false" 
> horizontalGridLineColor="white"  fontWeight="normal" fontSize="12" 
> alternatingItemColors="[#00,#00]" color="#ff" 
> headerColors="[#00, #ff]" rowHeight="20"
>  showDataTips="true" 
> dataProvider="{delays_xml}" itemRollOver="itemRollOverEvent
(event)" 
> columns="{soc_cols}" textRollOverColor="black">
> 
>   
> 
> 
> I even tried making with width of the column smaller than the 
> displayed text, as I read where dataTips are only displayed 
> for "clipped" text, and it made no difference.
> 
> 
> --- In flexcoders@yahoogroups.com, "Shannon Hicks"  wrote:
> >
> > nope... works for any list-based component.
> >  
> > in the datagrid, you set showDataTips="true"
> >  
> > then in the columns, you set dataTipField="fieldname"
> >  
> > Shan
> > 
> >_  
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of djbrown_rotonews
> > Sent: Friday, June 23, 2006 2:10 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: toolTip type behavior for 
> DataGridColumns?
> > 
> > 
> > 
> > that only works for Flex Charting components though, right?
> > 
> > --- In HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@, "Tracy
> > Spratt"  
> > wrote:
> > >
> > > They are called dataTips.
> > > 
> > > 
> > HYPERLINK
> 
> "http://livedocs.macromedia.com/labs/1/flex20beta3/langref/mx/contr
> ols"http:
> > //livedocs.-macromedia.-com/labs/-1/flex20beta3/-langref/mx/-
> controls
> > /Da
> > > taGrid.html
> > > 
> > > Tracy
> > > 
> > > 
> > > 
> > > -_-_-__
> > > 
> > > From: HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@ 
> > [mailto:HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED] On
> > > Behalf Of djbrown_rotonews
> > > Sent: Friday, June 23, 2006 11:41 AM
> > > To: HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@
> > > Subject: [flexcoders] toolTip type behavior for 
DataGridColumns?
> > > 
> > > 
> > > 
> > > I'm wanting to add some toolTip type behavior when the user 
> rolls 
> > over 
> > > some data in a DataGridColumn. It doesn't appear that the 
> > > DataGridColumn natively supports toolTip behavior, but is 
there 
> a 
> > way 
> > > I can mimic one via the itemRollOver event? 
> > > 
> > > Something like popping up a Label just under the current x,y 
> > > coordinates would suffice.
> > >
> > 
> > 
> > 
> >  
> > 
> > 
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
> 6/21/2006
> > 
> > 
> > 
> > -- 
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
> 6/21/2006
> >
>







 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/
 





[flexcoders] Re: toolTip type behavior for DataGridColumns?

2006-06-23 Thread djbrown_rotonews
weird. 

I've set up the following and it doesn't appear to work:



and my dataGrid as follows:





I even tried making with width of the column smaller than the 
displayed text, as I read where dataTips are only displayed 
for "clipped" text, and it made no difference.


--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> nope... works for any list-based component.
>  
> in the datagrid, you set showDataTips="true"
>  
> then in the columns, you set dataTipField="fieldname"
>  
> Shan
> 
>_____  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Friday, June 23, 2006 2:10 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: toolTip type behavior for 
DataGridColumns?
> 
> 
> 
> that only works for Flex Charting components though, right?
> 
> --- In HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED], "Tracy
> Spratt"  
> wrote:
> >
> > They are called dataTips.
> > 
> > 
> HYPERLINK
> "http://livedocs.macromedia.com/labs/1/flex20beta3/langref/mx/contr
ols"http:
> //livedocs.-macromedia.-com/labs/-1/flex20beta3/-langref/mx/-
controls
> /Da
> > taGrid.html
> > 
> > Tracy
> > 
> > 
> > 
> > -_-_-__
> > 
> > From: HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED] 
> [mailto:HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED] On
> > Behalf Of djbrown_rotonews
> > Sent: Friday, June 23, 2006 11:41 AM
> > To: HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED]
> > Subject: [flexcoders] toolTip type behavior for DataGridColumns?
> > 
> > 
> > 
> > I'm wanting to add some toolTip type behavior when the user 
rolls 
> over 
> > some data in a DataGridColumn. It doesn't appear that the 
> > DataGridColumn natively supports toolTip behavior, but is there 
a 
> way 
> > I can mimic one via the itemRollOver event? 
> > 
> > Something like popping up a Label just under the current x,y 
> > coordinates would suffice.
> >
> 
> 
> 
>  
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
6/21/2006
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
6/21/2006
>







 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/
 




[flexcoders] Re: toolTip type behavior for DataGridColumns?

2006-06-23 Thread djbrown_rotonews
that only works for Flex Charting components though, right?

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> 
wrote:
>
> They are called dataTips.
> 
> 
http://livedocs.macromedia.com/labs/1/flex20beta3/langref/mx/controls
/Da
> taGrid.html
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Friday, June 23, 2006 11:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] toolTip type behavior for DataGridColumns?
> 
>  
> 
> I'm wanting to add some toolTip type behavior when the user rolls 
over 
> some data in a DataGridColumn. It doesn't appear that the 
> DataGridColumn natively supports toolTip behavior, but is there a 
way 
> I can mimic one via the itemRollOver event? 
> 
> Something like popping up a Label just under the current x,y 
> coordinates would suffice.
>






 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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] toolTip type behavior for DataGridColumns?

2006-06-23 Thread djbrown_rotonews
I'm wanting to add some toolTip type behavior when the user rolls over 
some data in a DataGridColumn. It doesn't appear that the 
DataGridColumn natively supports toolTip behavior, but is there a way 
I can mimic one via the itemRollOver event? 

Something like popping up a Label just under the current x,y 
coordinates would suffice.





 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/
 





[flexcoders] Re: toolTip for dataGrid headers?

2006-06-22 Thread djbrown_rotonews

That did the trick. Still some minor issues when sorting columns 
(the arrow ends up messing up the alignment of the header text), but 
this gets me most of the way there. 

thanks

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Like this:
> 
> public function HeaderRenderer() {
>height = 34;
> }
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > Even though you set headerWordWrap to true, when a 
headerRenderer 
> is 
> > used those properties are repaced when the renderer is created.  
> > Keep in mind, the default item renderer is a Text field.  In the 
> > HeaderRenderer AS, change the Height (maybe to 40) and the 
header 
> > text should wrap.  You might also have to deal with the header 
> text 
> > alignment.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
> >  wrote:
> > >
> > > 
> > > That did the trick, nearly. My header text, that used to span 
> > > two "rows", now only has the first "row" displayed and omits 
the 
> > > remainder of the header. I have headerWordWrap set to true, 
but 
> > > there must be something else I have to do. any help?
> > > 
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> > > >
> > > > 
> > > > DJ,
> > > > 
> > > > I included a hack for this in the following example.  Since 
> the 
> > > column's
> > > > headeRenderer is a dataGridItemRenderer (TextField), it has 
a 
> > > toolTip
> > > > property.  The headerText is set before the itemRenderer is 
> > > created, so
> > > > you can compare to data.text to identify the column.
> > > > 
> > > > http://www.cflex.net/showfiledetails.cfm?
> > > ChannelID=1&Object=File&objectI\
> > > > D=443
> > > > <http://www.cflex.net/showfiledetails.cfm?
> > > ChannelID=1&Object=File&object\
> > > > ID=443>
> > > > 
> > > > -TH
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > >  wrote:
> > > > >
> > > > > I've seen references to using the setValue() function of 
the 
> > > custom
> > > > > renderer to gain access to the header itself and putting 
the 
> > > toolTip
> > > > > code in there, but it doesn't look like setValue is called 
> any
> > > > > longer using Beta3. any ideas/suggestions?
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > djbrown_rotonews@ wrote:
> > > > > >
> > > > > >
> > > > > > I'm discovered that I need to implement my own 
> > headerRenderer 
> > > as
> > > > > part
> > > > > > of each DataGridColumn, but how do I go about accessing 
> what
> > > > > column
> > > > > > I'm currently looking at. I'm wanting to add a generic
> > > > > headerRenderer
> > > > > > for all 22 columns of my DataGrid, displaying a tool tip 
> > based 
> > > on
> > > > > the
> > > > > > id of the UIComponent I'm currently looking at.
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > >  wrote:
> > > > > > >
> > > > > > > I'm wanting to add toolTip for dataGrid headers, where 
a 
> > tool
> > > > > tip is
> > > > > > > displayed when hovering over a header of a data grid 
that
> > > > > displays
> > > > > > > more information about that particular column. It 
> doesn't 
> > > appear
> > > > > > than
> > > > > > > an itemRollOverEvent is generated when rolling over a 
> > > header, so
> > > > > > > what's the best way to do this?
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>






 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] Re: toolTip for dataGrid headers?

2006-06-22 Thread djbrown_rotonews

That did the trick, nearly. My header text, that used to span 
two "rows", now only has the first "row" displayed and omits the 
remainder of the header. I have headerWordWrap set to true, but 
there must be something else I have to do. any help?

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> DJ,
> 
> I included a hack for this in the following example.  Since the 
column's
> headeRenderer is a dataGridItemRenderer (TextField), it has a 
toolTip
> property.  The headerText is set before the itemRenderer is 
created, so
> you can compare to data.text to identify the column.
> 
> http://www.cflex.net/showfiledetails.cfm?
ChannelID=1&Object=File&objectI\
> D=443
> <http://www.cflex.net/showfiledetails.cfm?
ChannelID=1&Object=File&object\
> ID=443>
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
>  wrote:
> >
> > I've seen references to using the setValue() function of the 
custom
> > renderer to gain access to the header itself and putting the 
toolTip
> > code in there, but it doesn't look like setValue is called any
> > longer using Beta3. any ideas/suggestions?
> >
> >
> > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > djbrown_rotonews@ wrote:
> > >
> > >
> > > I'm discovered that I need to implement my own headerRenderer 
as
> > part
> > > of each DataGridColumn, but how do I go about accessing what
> > column
> > > I'm currently looking at. I'm wanting to add a generic
> > headerRenderer
> > > for all 22 columns of my DataGrid, displaying a tool tip based 
on
> > the
> > > id of the UIComponent I'm currently looking at.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > >  wrote:
> > > >
> > > > I'm wanting to add toolTip for dataGrid headers, where a tool
> > tip is
> > > > displayed when hovering over a header of a data grid that
> > displays
> > > > more information about that particular column. It doesn't 
appear
> > > than
> > > > an itemRollOverEvent is generated when rolling over a 
header, so
> > > > what's the best way to do this?
> > > >
> > >
> >
>






 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/
 




[flexcoders] Re: toolTip for dataGrid headers?

2006-06-21 Thread djbrown_rotonews
I've seen references to using the setValue() function of the custom
renderer to gain access to the header itself and putting the toolTip
code in there, but it doesn't look like setValue is called any
longer using Beta3. any ideas/suggestions?


--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> 
> I'm discovered that I need to implement my own headerRenderer as 
part 
> of each DataGridColumn, but how do I go about accessing what 
column 
> I'm currently looking at. I'm wanting to add a generic 
headerRenderer 
> for all 22 columns of my DataGrid, displaying a tool tip based on 
the 
> id of the UIComponent I'm currently looking at.
> 
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
>  wrote:
> >
> > I'm wanting to add toolTip for dataGrid headers, where a tool 
tip is 
> > displayed when hovering over a header of a data grid that 
displays 
> > more information about that particular column. It doesn't appear 
> than 
> > an itemRollOverEvent is generated when rolling over a header, so 
> > what's the best way to do this?
> >
>






 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] FlexPrintJob and large DataGrids?

2006-06-20 Thread djbrown_rotonews
I've got a large DataGrid that the user needs to scroll (vertically) 
through to view completely. When I go to print this, I only get the 
portion that is currently displayed to print out (I'm using the 
dataGrid itself as the UI component to print, so that's not the 
issue). Any ideas?

Here's the relevant snippets:


public function printGrid(e:Event):void {
import mx.printing.FlexPrintJob;
var myPrintJob:FlexPrintJob = new FlexPrintJob();
myPrintJob.start();
myPrintJob.addObject(dgBags, FlexPrintJobScaleType.SHOW_ALL);
myPrintJob.send();
}








 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] Re: toolTip for dataGrid headers?

2006-06-20 Thread djbrown_rotonews

I'm discovered that I need to implement my own headerRenderer as part 
of each DataGridColumn, but how do I go about accessing what column 
I'm currently looking at. I'm wanting to add a generic headerRenderer 
for all 22 columns of my DataGrid, displaying a tool tip based on the 
id of the UIComponent I'm currently looking at.


--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> I'm wanting to add toolTip for dataGrid headers, where a tool tip is 
> displayed when hovering over a header of a data grid that displays 
> more information about that particular column. It doesn't appear 
than 
> an itemRollOverEvent is generated when rolling over a header, so 
> what's the best way to do this?
>






 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/
 





[flexcoders] toolTip for dataGrid headers?

2006-06-19 Thread djbrown_rotonews
I'm wanting to add toolTip for dataGrid headers, where a tool tip is 
displayed when hovering over a header of a data grid that displays 
more information about that particular column. It doesn't appear than 
an itemRollOverEvent is generated when rolling over a header, so 
what's the best way to do this?





 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] Re: ContextMenu and DataGrid question

2006-06-15 Thread djbrown_rotonews
I had to go one more level "up" and grab the 
event.mouseTarget.parent to get it to work as a generic renderer, 
and then call listData off of that guy, but your code got me 98% of 
the way there (I'm using Beta3, which may be why I had to change 
some things). Thanks

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam" 
<[EMAIL PROTECTED]> wrote:
>
> Hi -
> 
>  
> 
> So the mouseTarget property is a reference to the 
DataGridItemRenderer
> which the context menu opened upon. You can access the listData 
property
> off of a DataGridItemRenderer to then access rowIndex and 
columnIndex
> and whatever other goodies you'd like. Check out my example below.
> 
>  
> 
> Cheers,
> 
> Deepa
> 
>  
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="initComp();">
> 
>  
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Wednesday, June 14, 2006 9:09 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ContextMenu and DataGrid question
> 
>  
> 
> I'm trying to set up a ContextMenu inside a DataGrid that has 
> knowledge of where in the grid the right click occured. 
> 
> All I'm able to see via the ContextMenuEvent is the mouseTarget 
that 
> knows about the underlying text in the cell. I'm needing something 
> similiar to rowIndex and columnIndex that ListEvent provides 
(allowing 
> me subsequent access to listData etc..)
> 
> Any examples/tips would be appreciated.
>







 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] ContextMenu and DataGrid question

2006-06-14 Thread djbrown_rotonews
I'm trying to set up a ContextMenu inside a DataGrid that has 
knowledge of where in the grid the right click occured. 

All I'm able to see via the ContextMenuEvent is the mouseTarget that 
knows about the underlying text in the cell. I'm needing something 
similiar to rowIndex and columnIndex that ListEvent provides (allowing 
me subsequent access to listData etc..)

Any examples/tips would be appreciated.






 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/
 





[flexcoders] Re: mouseOver for specific cells in DataGrid?

2006-06-01 Thread djbrown_rotonews



Does the rollOver/rollOut event have the notion of where in the grid 
it came from?

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> 
wrote:
>
> By the way, you almost always should use rollOver/rollOut instead 
of
> mouseOver/mouseOut. The "mouse" versions have the peculiar 
behavior that
> mousing over a child cause a mouseOut from the parent, which 
usually
> isn't what you want.
> 
>  
> 
> - Gordon
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Joan Tan
> Sent: Wednesday, May 31, 2006 11:54 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] mouseOver for specific cells in DataGrid?
> 
>  
> 
> The MouseOver event is a flash MouseEvent, so it does not have any
> knowledge of the data under it. It does have a localX and locallY
> property that you might be able to use to figure out what row and 
column
> you are at assuming that your rowHeight and column widths are 
constant.
> 
>  
> 
> Joan
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Wednesday, May 31, 2006 8:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] mouseOver for specific cells in DataGrid?
> 
>  
> 
> I'm wanting to implement a mouseOver event that is cell-specific 
for a 
> DataGrid. Does the mouseOver event for the DataGrid itself have 
> knowledge of the row/column that is being hovered over?
> 
> 
> 
> 
> 
> 
> --
> 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=ms&k=Web+site+design+development&w1=Web+
> 
site+design+development&w2=Computer+software+development&w3=Software+
des
> 
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+p
rac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>  
> 
> Computer software development
> <http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=We
> 
b+site+design+development&w2=Computer+software+development&w3=Softwar
e+d
> 
esign+and+development&w4=Macromedia+flex&w5=Software+development+best
+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>  
> 
> Software design and development
> <http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=
> 
Web+site+design+development&w2=Computer+software+development&w3=Softw
are
> 
+design+and+development&w4=Macromedia+flex&w5=Software+development+be
st+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>  
> 
> Macromedia flex
> <http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+
> 
development&w2=Computer+software+development&w3=Software+design+and+d
eve
> 
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&
s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>  
> 
> Software development best practice
> <http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&
> 
w1=Web+site+design+development&w2=Computer+software+development&w3=So
ftw
> 
are+design+and+development&w4=Macromedia+flex&w5=Software+development
+be
> st+practice&c=5&s=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]
> 
subject=Unsubscribe> 
>     
> *   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








  
  
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.



  











[flexcoders] mouseOver for specific cells in DataGrid?

2006-05-31 Thread djbrown_rotonews



I'm wanting to implement a mouseOver event that is cell-specific for a 
DataGrid. Does the mouseOver event for the DataGrid itself have 
knowledge of the row/column that is being hovered over?









--
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.



  











[flexcoders] re-ordering of DataGridColumns based on a GUI component selection?

2006-05-25 Thread djbrown_rotonews



I need to be able to change the ordering of my displayed 
DataGridColumns based on a selection made via another GUI component. 
I've captured the "state" of this other GUI component via a Model, but 
how do I go about adding some if/then/else logic inside my 
DataGrid/Columns/Array/DataGridColumn mxml block of code? any 
suggestions would be appreciated.









--
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.



  











[flexcoders] itemRenderer/dataGrid rollOverColor question

2006-05-22 Thread djbrown_rotonews



I've got a dataGrid setup, with each cell having an itemRenderer 
associated with it. The itemRenderer is setting the text color based 
on the value in each cell, via a setStyle("color", ) call. The problem 
is that this prevents my rollOverColor declaration in my DataGrid from 
working (you can still see the color "behind" each cell around the 
border, but the cell itself doesn't retain the rollOverColor). 

I tried setting the rollOverColor in the itemRenderer code itself with 
no luck. Is there a way to set the opacity of the cell to 0 that would 
allow the underlying default colors from the dataGrid itself 
to "bleed" through?










--
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.



  











[flexcoders] complex GUIs "inside" a tab panel?

2006-05-19 Thread djbrown_rotonews



I'm trying to wrap a TabBar around a panel that contains a series of 
pulldown menus and a datagrid. I'm wanting to "save" the state of each 
menu for the different views of the data (one view per tabbed panel), 
which requires the use of a Repeater I believe, but when I wrap the 
menu definitions inside a Repeater block, it doesn't display in the 
GUI. any ideas?












--
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.



  











[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-16 Thread djbrown_rotonews



Anyone else with some insight here? It's getting beyond frustrating 
to try and come up with a generic solution to a really 
simple "problem".

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> The frustrating thing? This type of functionality was available in 
> Beta1.5, but has since evaporated. Note their example of 
> implementing sortCompareFunction is EXACTLY what I'm wanting to do 
> in Beta2 and beyond.
> 
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
>  wrote:
> >
> > I'm with you, thinking there HAS to be a simpler way of doing 
it. 
> > Why we don't have access to the columnIndex, for example, 
baffles 
> > me. I've messed around with the whole process of over-riding 
> > headerRelease and all, but it also would swap out two "rows" 
when 
> I 
> > tried it, so I gave up and started digging deeper into this 
> simpler 
> > method. 
> > 
> > let me know if you figure this thing out.
> > 
> > --- In flexcoders@yahoogroups.com, "Scott Romer"  
wrote:
> > >
> > > I'm working on a very similar problem.  When I specify the
> > > sortCompareFunction on a DataGridColumn, it looks like it 
tries 
> to
> > > actually execute that function from the SortField.  Try tracing
> > > through and see for yourself...
> > > 
> > > It looks like it takes the column's datafield and creates a 
> > sortField
> > > for it. Then sets the sortCompareFunction from the column as 
the
> > > compareFunction on the sortField.  In which case the 
SortField's
> > > compare function should have a signature like this: (per doc)
> > > 
> > > function myCompare(a:Object, b:Object):int
> > > 
> > > 
> > > Hence the third parameter (fields) that we both seem to try to 
> use 
> > is
> > > always null?
> > > 
> > > There must be a simpler way that we are just not seeing.  On a 
> flip
> > > side, I'm going to try to move towards the example in their 
> > documentation:
> > > 
> > 
> 
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/comm
> > on/html/wwhelp.htm?context=LiveDocs_Parts&file=0608.html
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > >  wrote:
> > > >
> > > > It's default is null (obviously). Any idea how I can modify 
> > > > the "call" to sortCompareFunction in the dataGridColumn line 
> to 
> > add 
> > > > this argument to the function call?
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Doug Lowder" 
 
> > > > wrote:
> > > > >
> > > > > 
> > > > > The DataGridColumn docs
> > > > > 
> > > > 
> > 
> 
<http://livedocs.macromedia.com/labs/1/flex20beta2/langref/mx/control
> > > > s/d\
> > > > > ataGridClasses/DataGridColumn.html#sortCompareFunction>   
> say 
> > the
> > > > > sortCompareFunction gets passed a fields parameter in 
> addition 
> > to 
> > > > the
> > > > > item objects being compared.  Have you checked the fields 
> > > > parameter to
> > > > > see what's in it?
> > > > > 
> > > > > Doug
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > >  wrote:
> > > > > >
> > > > > > bump. any help?
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > > djbrown_rotonews@ wrote:
> > > > > > >
> > > > > > > anyone? I've seen similir questions asked before, and 
> > never 
> > > > saw an
> > > > > > > answer that directly pertains to the DataGrdColumn 
issue.
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > > >  wrote:
> > > > > > > >
> > > > > > > > I'm using Flex Beta 2 and wanting to implement a 
> generic 
> > sort
> > > > > > that
> > > > > > > > will handle the approximate 20 columns I'm 
displaying.
> > > > > > > >
> &

[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-15 Thread djbrown_rotonews



The frustrating thing? This type of functionality was available in 
Beta1.5, but has since evaporated. Note their example of 
implementing sortCompareFunction is EXACTLY what I'm wanting to do 
in Beta2 and beyond.


--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> I'm with you, thinking there HAS to be a simpler way of doing it. 
> Why we don't have access to the columnIndex, for example, baffles 
> me. I've messed around with the whole process of over-riding 
> headerRelease and all, but it also would swap out two "rows" when 
I 
> tried it, so I gave up and started digging deeper into this 
simpler 
> method. 
> 
> let me know if you figure this thing out.
> 
> --- In flexcoders@yahoogroups.com, "Scott Romer"  wrote:
> >
> > I'm working on a very similar problem.  When I specify the
> > sortCompareFunction on a DataGridColumn, it looks like it tries 
to
> > actually execute that function from the SortField.  Try tracing
> > through and see for yourself...
> > 
> > It looks like it takes the column's datafield and creates a 
> sortField
> > for it. Then sets the sortCompareFunction from the column as the
> > compareFunction on the sortField.  In which case the SortField's
> > compare function should have a signature like this: (per doc)
> > 
> > function myCompare(a:Object, b:Object):int
> > 
> > 
> > Hence the third parameter (fields) that we both seem to try to 
use 
> is
> > always null?
> > 
> > There must be a simpler way that we are just not seeing.  On a 
flip
> > side, I'm going to try to move towards the example in their 
> documentation:
> > 
> 
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/comm
> on/html/wwhelp.htm?context=LiveDocs_Parts&file=0608.html
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> >  wrote:
> > >
> > > It's default is null (obviously). Any idea how I can modify 
> > > the "call" to sortCompareFunction in the dataGridColumn line 
to 
> add 
> > > this argument to the function call?
> > > 
> > > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> > > wrote:
> > > >
> > > > 
> > > > The DataGridColumn docs
> > > > 
> > > 
> 
<http://livedocs.macromedia.com/labs/1/flex20beta2/langref/mx/control
> > > s/d\
> > > > ataGridClasses/DataGridColumn.html#sortCompareFunction>   
say 
> the
> > > > sortCompareFunction gets passed a fields parameter in 
addition 
> to 
> > > the
> > > > item objects being compared.  Have you checked the fields 
> > > parameter to
> > > > see what's in it?
> > > > 
> > > > Doug
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > >  wrote:
> > > > >
> > > > > bump. any help?
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > djbrown_rotonews@ wrote:
> > > > > >
> > > > > > anyone? I've seen similir questions asked before, and 
> never 
> > > saw an
> > > > > > answer that directly pertains to the DataGrdColumn issue.
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > > >  wrote:
> > > > > > >
> > > > > > > I'm using Flex Beta 2 and wanting to implement a 
generic 
> sort
> > > > > that
> > > > > > > will handle the approximate 20 columns I'm displaying.
> > > > > > >
> > > > > > > I've got it set up as follows:
> > > > > > > 
> > > > > > > textAlign="center" fontWeight="bold" headerText="STA"
> > > > > > > width="{dgDelays.width/22}" headerWordWrap="on"
> > > > > > dataField="acfrmsta"
> > > > > > > labelFunction="labelFunction" 
> > > sortCompareFunction="sortAlpha"/>
> > > > > > >
> > > > > > > and my sortAlpha takes the form of:
> > > > > > > public function sortAlpha(a:Object,b:Object):int {
> > > > > > >
> > > >

[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-12 Thread djbrown_rotonews



I'm with you, thinking there HAS to be a simpler way of doing it. 
Why we don't have access to the columnIndex, for example, baffles 
me. I've messed around with the whole process of over-riding 
headerRelease and all, but it also would swap out two "rows" when I 
tried it, so I gave up and started digging deeper into this simpler 
method. 

let me know if you figure this thing out.

--- In flexcoders@yahoogroups.com, "Scott Romer" <[EMAIL PROTECTED]> wrote:
>
> I'm working on a very similar problem.  When I specify the
> sortCompareFunction on a DataGridColumn, it looks like it tries to
> actually execute that function from the SortField.  Try tracing
> through and see for yourself...
> 
> It looks like it takes the column's datafield and creates a 
sortField
> for it. Then sets the sortCompareFunction from the column as the
> compareFunction on the sortField.  In which case the SortField's
> compare function should have a signature like this: (per doc)
> 
> function myCompare(a:Object, b:Object):int
> 
> 
> Hence the third parameter (fields) that we both seem to try to use 
is
> always null?
> 
> There must be a simpler way that we are just not seeing.  On a flip
> side, I'm going to try to move towards the example in their 
documentation:
> 
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/comm
on/html/wwhelp.htm?context=LiveDocs_Parts&file=0608.html
> 
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
>  wrote:
> >
> > It's default is null (obviously). Any idea how I can modify 
> > the "call" to sortCompareFunction in the dataGridColumn line to 
add 
> > this argument to the function call?
> > 
> > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> > wrote:
> > >
> > > 
> > > The DataGridColumn docs
> > > 
> > 
<http://livedocs.macromedia.com/labs/1/flex20beta2/langref/mx/control
> > s/d\
> > > ataGridClasses/DataGridColumn.html#sortCompareFunction>   say 
the
> > > sortCompareFunction gets passed a fields parameter in addition 
to 
> > the
> > > item objects being compared.  Have you checked the fields 
> > parameter to
> > > see what's in it?
> > > 
> > > Doug
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > >  wrote:
> > > >
> > > > bump. any help?
> > > >
> > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > djbrown_rotonews@ wrote:
> > > > >
> > > > > anyone? I've seen similir questions asked before, and 
never 
> > saw an
> > > > > answer that directly pertains to the DataGrdColumn issue.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > > > >  wrote:
> > > > > >
> > > > > > I'm using Flex Beta 2 and wanting to implement a generic 
sort
> > > > that
> > > > > > will handle the approximate 20 columns I'm displaying.
> > > > > >
> > > > > > I've got it set up as follows:
> > > > > > 
> > > > > > textAlign="center" fontWeight="bold" headerText="STA"
> > > > > > width="{dgDelays.width/22}" headerWordWrap="on"
> > > > > dataField="acfrmsta"
> > > > > > labelFunction="labelFunction" 
> > sortCompareFunction="sortAlpha"/>
> > > > > >
> > > > > > and my sortAlpha takes the form of:
> > > > > > public function sortAlpha(a:Object,b:Object):int {
> > > > > >
> > > > > > var field:String="acfrmsta";
> > > > > > var string1:String = a[field].attribute("dataValue");
> > > > > > var string2:String = b[field].attribute("dataValue");
> > > > > >
> > > > > > if (string1==string2)
> > > > > > return 0;
> > > > > > else if (string1 < string2)
> > > > > > return -1;
> > > > > > else
> > > > > > return 1;
> > > > > > }
> > > > > >
> > > > > > as you can see, I have to hard-code in the value of 
arfrmsta 
> > in
> > > > > the
> > > > > > sortalpha() method. How can I drill down and get this 
value
> > > > > > programatically if I don't have access to something like
> > > > > columnIndex
> > > > > > (which DOES exist apparently in DataGridListData)? 
Either 
> > that,
> > > > or
> > > > > I
> > > > > > can iterate over the column headers if something like
> > > > > isItemSelected
> > > > > > () existed.
> > > > > >
> > > > >
> > > >
> > >
> >
>











--
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.



  












[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-11 Thread djbrown_rotonews



It's default is null (obviously). Any idea how I can modify 
the "call" to sortCompareFunction in the dataGridColumn line to add 
this argument to the function call?

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> 
wrote:
>
> 
> The DataGridColumn docs
> 
<http://livedocs.macromedia.com/labs/1/flex20beta2/langref/mx/control
s/d\
> ataGridClasses/DataGridColumn.html#sortCompareFunction>   say the
> sortCompareFunction gets passed a fields parameter in addition to 
the
> item objects being compared.  Have you checked the fields 
parameter to
> see what's in it?
> 
> Doug
> 
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
>  wrote:
> >
> > bump. any help?
> >
> > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > djbrown_rotonews@ wrote:
> > >
> > > anyone? I've seen similir questions asked before, and never 
saw an
> > > answer that directly pertains to the DataGrdColumn issue.
> > >
> > > --- In flexcoders@yahoogroups.com, "djbrown_rotonews"
> > >  wrote:
> > > >
> > > > I'm using Flex Beta 2 and wanting to implement a generic sort
> > that
> > > > will handle the approximate 20 columns I'm displaying.
> > > >
> > > > I've got it set up as follows:
> > > > 
> > > > textAlign="center" fontWeight="bold" headerText="STA"
> > > > width="{dgDelays.width/22}" headerWordWrap="on"
> > > dataField="acfrmsta"
> > > > labelFunction="labelFunction" 
sortCompareFunction="sortAlpha"/>
> > > >
> > > > and my sortAlpha takes the form of:
> > > > public function sortAlpha(a:Object,b:Object):int {
> > > >
> > > > var field:String="acfrmsta";
> > > > var string1:String = a[field].attribute("dataValue");
> > > > var string2:String = b[field].attribute("dataValue");
> > > >
> > > > if (string1==string2)
> > > > return 0;
> > > > else if (string1 < string2)
> > > > return -1;
> > > > else
> > > > return 1;
> > > > }
> > > >
> > > > as you can see, I have to hard-code in the value of arfrmsta 
in
> > > the
> > > > sortalpha() method. How can I drill down and get this value
> > > > programatically if I don't have access to something like
> > > columnIndex
> > > > (which DOES exist apparently in DataGridListData)? Either 
that,
> > or
> > > I
> > > > can iterate over the column headers if something like
> > > isItemSelected
> > > > () existed.
> > > >
> > >
> >
>











--
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.



  











[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-11 Thread djbrown_rotonews



bump. any help?

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> anyone? I've seen similir questions asked before, and never saw an 
> answer that directly pertains to the DataGrdColumn issue.
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
>  wrote:
> >
> > I'm using Flex Beta 2 and wanting to implement a generic sort 
that 
> > will handle the approximate 20 columns I'm displaying. 
> > 
> > I've got it set up as follows:
> >     
> > textAlign="center" fontWeight="bold" headerText="STA" 
> > width="{dgDelays.width/22}" headerWordWrap="on" 
> dataField="acfrmsta" 
> > labelFunction="labelFunction" sortCompareFunction="sortAlpha"/>
> > 
> > and my sortAlpha takes the form of:
> > public function sortAlpha(a:Object,b:Object):int  {
> >               
> > var field:String="acfrmsta";
> > var string1:String = a[field].attribute("dataValue");
> > var string2:String = b[field].attribute("dataValue");
> >         
> > if (string1==string2)
> >   return 0;
> > else if (string1 < string2)
> >   return -1;
> > else
> >  return 1;
> > }
> > 
> > as you can see, I have to hard-code in the value of arfrmsta in 
> the 
> > sortalpha() method. How can I drill down and get this value 
> > programatically if I don't have access to something like 
> columnIndex 
> > (which DOES exist apparently in DataGridListData)? Either that, 
or 
> I 
> > can iterate over the column headers if something like 
> isItemSelected
> > () existed.
> >
>










--
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.



  












[flexcoders] sorting user headerRelease in dataGrid sorts just once?

2006-05-10 Thread djbrown_rotonews



I'm trying to use a headerRelease in Beta2 to sort by columns in my 
dataGrid. I've been able to determine via debugging that it's 
only "swapping" two rows, and leaving the remaining rows in their 
original order. Any idea what might be going wrong? 

I have a filterFunction set up for delays_xml, and I output the 
collection when initialized (as it appears in the grid before a 
header click) and after (after the headerRelease) and only 
two "rows" have switched places, so it's like it's only calling the 
sort method once (the two "rows" have switched places in the 
collection, like a swap sort would tend to do)

My relevant code:


source="{getadvisordelays.result.*}" filterFunction="filterData"/>



id="dgDelays"  dataProvider="{delays_xml}" 
headerRelease="headerReleaseEvent(event,this.dgDelays)">















--
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.



  












[flexcoders] sorting an XMLListCollection

2006-05-10 Thread djbrown_rotonews



I have a dataGrid of about 20 columns, whose dataProvider is an 
XMLListCollection:


source="{getadvisordelays.result.*}" filterFunction="filterData"/>

where getadvisordelays is an HTTPService call to a jsp, returning 
results in an e4x format:

method="GET" showBusyCursor="true" resultFormat="e4x">

I'm wanting the ability for the user to sort columns when they click 
on the column header. Do I apply the sort as part of the 
XMLListCollection via the "sort" attrib, or via a 
sortCompareFunction on the individual dataGridColumns?

I made an initial try of adding a custom compare function as part of 
the dataGridColumn, but I get an error of "expecting 3 args, but 
could 2" when I click on the column header:


fontWeight="bold" headerText="STA" width="{dgDelays.width/22}" 
headerWordWrap="on" dataField="acfrmsta" 
labelFunction="labelFunction" sortCompareFunction="sortAlpha"/>

my sortAlpha function prototype is:
  public function sortAlpha
(a:Object,b:Object,index:Number):Number

I couldn't see why it was passing just two args, so I started 
investigating sorting on the XMLListCollection instead.

any suggestions?













--
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.



  











[flexcoders] Re: generic sorts for DataGridColumns?

2006-05-10 Thread djbrown_rotonews



anyone? I've seen similir questions asked before, and never saw an 
answer that directly pertains to the DataGrdColumn issue.

--- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
<[EMAIL PROTECTED]> wrote:
>
> I'm using Flex Beta 2 and wanting to implement a generic sort that 
> will handle the approximate 20 columns I'm displaying. 
> 
> I've got it set up as follows:
>     
> textAlign="center" fontWeight="bold" headerText="STA" 
> width="{dgDelays.width/22}" headerWordWrap="on" 
dataField="acfrmsta" 
> labelFunction="labelFunction" sortCompareFunction="sortAlpha"/>
> 
> and my sortAlpha takes the form of:
> public function sortAlpha(a:Object,b:Object):int  {
>               
> var field:String="acfrmsta";
> var string1:String = a[field].attribute("dataValue");
> var string2:String = b[field].attribute("dataValue");
>         
> if (string1==string2)
>   return 0;
> else if (string1 < string2)
>   return -1;
> else
>  return 1;
> }
> 
> as you can see, I have to hard-code in the value of arfrmsta in 
the 
> sortalpha() method. How can I drill down and get this value 
> programatically if I don't have access to something like 
columnIndex 
> (which DOES exist apparently in DataGridListData)? Either that, or 
I 
> can iterate over the column headers if something like 
isItemSelected
> () existed.
>











--
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.



  











[flexcoders] generic sorts for DataGridColumns?

2006-05-09 Thread djbrown_rotonews



I'm using Flex Beta 2 and wanting to implement a generic sort that 
will handle the approximate 20 columns I'm displaying. 

I've got it set up as follows:
    
textAlign="center" fontWeight="bold" headerText="STA" 
width="{dgDelays.width/22}" headerWordWrap="on" dataField="acfrmsta" 
labelFunction="labelFunction" sortCompareFunction="sortAlpha"/>

and my sortAlpha takes the form of:
public function sortAlpha(a:Object,b:Object):int  {
              
var field:String="acfrmsta";
var string1:String = a[field].attribute("dataValue");
var string2:String = b[field].attribute("dataValue");
        
if (string1==string2)
  return 0;
else if (string1 < string2)
  return -1;
else
 return 1;
}

as you can see, I have to hard-code in the value of arfrmsta in the 
sortalpha() method. How can I drill down and get this value 
programatically if I don't have access to something like columnIndex 
(which DOES exist apparently in DataGridListData)? Either that, or I 
can iterate over the column headers if something like isItemSelected
() existed.









--
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.



  












[flexcoders] Re: Gui component events inside

2006-05-08 Thread djbrown_rotonews



In the snippet I've included below, {hours.hour} is just a reference 
to some static XML that contains 24 strings (one for each hour), 
with the value I want associated with each (ie, 23:00 etc...)

timeRange is a model that contains the current endTime (another 
ComboBox, in the same nature as startTime) and startTime combo box 
selections that get passed as arguments to a jsp call. How would I 
modify my cbStartTime definition to enable the 
timeRange.STARTTIME=cbSTartTime.selectedItem.data (it's a compile-
time syntax error if left as is when using a Repeater)

when using a Repeater?

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Each control (Repeater, comboBox) needs to utilyze binding.  If 
you 
> use an arrayCollection as the dataProvider for all your controls, 
> you can easily manipulate and bind the data that resides in the 
> model (preferably modelLocator).
> 
> TH
> 
> --- In flexcoders@yahoogroups.com, "djbrown_rotonews" 
>  wrote:
> >
> > I've got the following GUI component that updates a value inside 
> an 
> > mx:Model I've defined:
> > 
> > 
> > dataProvider="{hours.hour}" 
> > change="timeRange.STARTTIME=cbStartTime.selectedItem.data"/> 
> > 










--
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.



  











[flexcoders] Gui component events inside

2006-05-08 Thread djbrown_rotonews



I've got the following GUI component that updates a value inside an 
mx:Model I've defined:


dataProvider="{hours.hour}" 
change="timeRange.STARTTIME=cbStartTime.selectedItem.data"/> 

I'm in the process of adding a  construct around one of 
my GUI panels that contains about 4 ComboBoxes (including the one 
above) and a 20-column DataGrid. I'm not able to drill-down as 
before (cbStartTime.selectedItem.data has no meaning when using a 
Repeater apparently. Likewise, my relative positioning of GUI 
components (where the x of the current is based on the right edge of 
the previous component) won't work for similiar reasons). 

I need the GUI "replicated" n number of times for n different views 
based on a selection from a check box elsewhere in the GUI, so I 
think using a Repeater is the way to go, but how do I access 
specific values (like x, selectedIndex, etc..) of the "current" 
component being repeated?

I wrapped my GUI component (a panel with many sub-components) as 
follows:




id="sta1">

where mockStations is just a 3-length array of Strings. I didn't 
have any luck with a similiar construct where I could drill-down 
using rp.currentItem to get access to the values I need.

Also, I get a compile-time error about implicit coercion between 
data types when I use my old DataGridColumn stuff along with a 
Repeater as well.










--
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.



  












[flexcoders] Re: re-filtering data in DataGrid?

2006-05-04 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> > I know that the DataGrid has a filterFunction param where you can
> > specify any filtering capabilities you want to display in the
> > DataGrid. Can this function call be re-issued programmatically?
> 
> You're referring to the 'filterFunction' of the collection, right?
> Call 'refresh' and the filter will run again.
>


thanks. that did the trick.









--
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.



  











[flexcoders] Re: re-filtering data in DataGrid?

2006-05-04 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> > I know that the DataGrid has a filterFunction param where you can
> > specify any filtering capabilities you want to display in the
> > DataGrid. Can this function call be re-issued programmatically?
> 
> You're referring to the 'filterFunction' of the collection, right?
> Call 'refresh' and the filter will run again.
>


thanks. that did the trick.









--
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.



  











[flexcoders] re-filtering data in DataGrid?

2006-05-04 Thread djbrown_rotonews



I know that the DataGrid has a filterFunction param where you can 
specify any filtering capabilities you want to display in the 
DataGrid. Can this function call be re-issued programmatically? I've 
got an app where I want to display some data from a jsp call, filtered 
based on initial (and default) values of some combo boxes, but 
also "re-filtered" again if the user selects another value from the 
combo box without re-calling the jsp again. Is that possible? 

I'm willing to add a button called "filter" to capture the current 
states of the combo boxes and trigger the filterFunction call again if 
that helps. The filterFunction expects one arg though, so a straight 
call to filterData() from the filter button's click method won't do 
the trick.










--
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.



  











[flexcoders] Re: problems with XMLListCollection and dataProvider. please help

2006-05-03 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/3/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> > --- In flexcoders@yahoogroups.com, "Manish Jethani"
> >  wrote:
> > >
> > > On 5/3/06, djbrown_rotonews  wrote:
> > >
> > > > I have a local var node, set to the dataField of the passed 
in
> > > > DataGridColumn.
> > >
> > > So given this node, what do you want to display in the 
DataGrid?
> > >
> > >   
> > >
> > > If "fa" is what you want to display, then your labelFunction 
should
> > > return 'item.name()'
> 
> > I actually want to display the "3" in the above example (ie,
> > dataValue).
> 
> Okay, so you have "dataValue" in a variable called 'node'.
> 
>  var node:String = "dataValue";
>  var valueToReturn:String = item.attribute(node);
> 
> Manish
>

actually, I store "fa" in the node var, and want to return the 
associated "dataValue" for the item["fa"]










--
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



   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.



  











[flexcoders] Re: problems with XMLListCollection and dataProvider. please help

2006-05-02 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/3/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> 
> > I have a local var node, set to the dataField of the passed in
> > DataGridColumn.
> 
> So given this node, what do you want to display in the DataGrid?
> 
>   
> 
> If "fa" is what you want to display, then your labelFunction should
> return 'item.name()'
> 
> Manish
>

I actually want to display the "3" in the above example (ie, 
dataValue). 









--
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.



  











[flexcoders] Re: problems with XMLListCollection and dataProvider. please help

2006-05-02 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/3/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> 
> > I have a local var node, set to the dataField of the passed in
> > DataGridColumn.
> 
> So given this node, what do you want to display in the DataGrid?
> 
>   
> 
> If "fa" is what you want to display, then your labelFunction should
> return 'item.name()'
> 
> Manish
>

to be a bit clearer, I want this labelFunction to return the 
dataValue for the "fa" node (for this particular call; I'm basically 
interating over all "nodes" in the XML and display the dataValue of 
each in a seperate DataGridColumn) of the passed in item. I can get 
access to the "fa" string via column.dataField, and my passed item 
is of type XML, the value of which is:
item  =  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  











--
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.



  











[flexcoders] Re: problems with XMLListCollection and dataProvider. please help

2006-05-02 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/3/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> 
> > [EMAIL PROTECTED] =
> > item.leg.node =
> > item.leg[node] =
> > [EMAIL PROTECTED] =
> > item..cpfrmsta =
> 
> item[node]
> 
> ?
> 
> Manish
>

I have a local var node, set to the dataField of the passed in 
DataGridColumn. The part is working as expected.

public function labelFunction(item:XML, column:DataGridColumn):String
{
   var node:String = column.dataField;
   trace("node = " ,node);

   trace ( "item  = ", item);
   trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
   trace("item.leg.node = ", item.leg.node);
   trace ("item.leg[node] = ", item.leg[node]);
   trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
   trace ("item..cpflt = " , item..cpflt);

    < rest of function snipped>
}










--
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.



  












[flexcoders] Re: problems with XMLListCollection and dataProvider. please help

2006-05-02 Thread djbrown_rotonews



--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 5/2/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
> 
> > as the "source" attrib, and they each throw an error of some 
form.
> > can anyone tell me what I'm doing wrong? I'm using the following 
as
> > a source for my implementation:
> > http://mannu.livejournal.com/324821.html
> >
> > My returned XML takes the form of:
> [snip]
> 
> A couple of things:
> 
>  1.  'result' has been renamed to 'lastResult' in Beta 3
>  2.  'resultFormat' should be 'e4x' for the result to be XMLList
> 
> Manish
>

yeah, changing the resultFormat to 'e4x' got rid of the various 
exceptions I was getting, but I'm still struggling with "drilling" 
down into the XML data in order to display it.

My DataGridColumns have a labelFunction declared, with the 
implementation below:

public function labelFunction(item:XML, column:DataGridColumn):String
{      
  var node:String = column.dataField;
  trace("node = " ,node);

  trace ( "item  = ", item);
  trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
  trace("item.leg.node = ", item.leg.node);
  trace ("item.leg[node] = ", item.leg[node]);
  trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
  trace ("item..cpflt = " , item..cpflt);

   < rest of function snipped>
}

--

and the following output is produced. obviously, I get the root XML 
object just fine, but my numerous attempts to get individual 
elements hasn't been successful. How can I return the "dataValue" 
from the desired "node" for each item? I'm using Flex Beta2

Console output:

node =  fa
item  =  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

[EMAIL PROTECTED] =  
item.leg.node =  
item.leg[node] =  
[EMAIL PROTECTED] =  
item..cpfrmsta =  









--
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.



  











[flexcoders] problems with XMLListCollection and dataProvider. please help

2006-05-02 Thread djbrown_rotonews



I'm in the process of converting some old code that took the form of:


method="GET" showBusyCursor="true">  


and a DataGrid hook point of:
dataProvider="{mx.utils.ArrayUtil.toArray
(getadvisordelays.result.delays.leg)

to display my XML results in a DataGrid. It worked just fine.

However, I'm wanting to use a combo of e4x and XMLListCollection to 
filter the results on the jsp on the client side, and am running 
into problems.

I set up my XMLListCollection as follows:

source="{getadvisordelays.result.delays.leg}"/>

But I get an 
Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to 
XMLList

error when it tries to retrieve the data. I've tried 
getadvisordelays.result.*
getadvisordelays.result.delays.*
getadvisordelays.resullt.delays.leg.*

as the "source" attrib, and they each throw an error of some form. 
can anyone tell me what I'm doing wrong? I'm using the following as 
a source for my implementation:
http://mannu.livejournal.com/324821.html

My returned XML takes the form of:


    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   












--
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.