[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-15 Thread aceoohay
Alex:

I posted the screenshot on the bug report. Please see;

https://bugs.adobe.com/jira/browse/SDK-16897

Paul

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Paul, if you would be willing to share the screen shot of your app that you 
> showed me, I think most would agree that the popup subsystem in Flex was 
> designed exactly for what you want to do, and not a hack.  I hope those that 
> vote for your bug describe their scenarios that require it.  Maybe the more 
> critical feature Flex needs is an easier way to popup modules.  Until we see 
> other scenarios that require distinct tabloops that aren't MDI oriented, I 
> don't think this issue will get sufficient priority to be addressed.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of aceoohay
> Sent: Saturday, March 14, 2009 10:43 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> 
> 
> Yes, Alex has been very generous with his time offline, and I will be trying 
> his popup approach.
> 
> However I believe the popup solution is a hack in the perjorative sense. I 
> believe that the flex language should allow at a minimum the ability to 
> define a separate tab loop for each module.
> 
> Paul
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > Paul and I have discussed off line. He's got a bunch of module panels that 
> > we wants to overlap and drag around the screen and have tabbing stay within 
> > which ever panel was clicked in and moved on top of the others. Flex has 
> > all of this built-in. Once he gets his modules popped up, he should be all 
> > set.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of jim.abbott45
> > Sent: Friday, March 13, 2009 3:21 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> >
> >
> > Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.
> >
> > See: https://bugs.adobe.com/jira/browse/SDK-16897
> >
> > --Jim
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, 
> > "aceoohay"  wrote:
> > >
> > > Alex:
> > >
> > > Neither of these options are practical in the real world (at least my 
> > > world) since we have over 135 modules currently, and up to 10 can be 
> > > loaded at any one time. We cannot have the cursor willy nilly hopping 
> > > from module to module going to panels that are partially obscured by 
> > > other panels, etc.
> > >
> > > Does the mx.managers.FocusManager allow the ability to establish multiple 
> > > tab loops within a single application?
> > >
> > > If so, how can this be used to define a tab loop for a single container?
> > >
> > > If not, is there anything that will allow defining a tab loop for a 
> > > container?! With multiple tab loops available on the stage at one time. 
> > > The user can use the mouse to jump from module to module.
> > >
> > > Paul
> > >
> > > --- In flexcoders@yahoogroups.com, 
> > > Alex Harui aharui@ wrote:
> > > >
> > > > Setting tabEnabled on anything you don't want to have focus is one 
> > > > answer. So is non-modal popups.
> > > >
> > > > Alex Harui
> > > > Flex SDK Developer
> > > > Adobe Systems Inc.
> > > > Blog: http://blogs.adobe.com/aharui
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > > > [mailto:flexcoders@yahoogroups.com]
> > > >  On Behalf Of aceoohay
> > > > Sent: Wednesday, March 11, 2009 8:00 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> > > >
> > > >
> > > > Alex:
> > > >
> > > > Let me restate my primary question;
> > > >
> > > &! gt; "...has anyone else tried to create a flex component with ! a 
> > > separa te tab loop, if so how did you make it work?"
> > > >
> > > > Since the documentation seems to indicate that FocusManager will allow 
> > > > multiple tab loops that was the approach I was investigating.
> > > >
> > > > My primary goal, irrespective of how I do it is to create what I call a 
> > > > "tab domain." Whatever it is called, what I need is the ability to 
> > > > define a captive group of objects from which focus will never leave by 
> > > > pressing the tab key.
> > > >
> > > > Paul
> > > >
> > >
> >
>




[flexcoders] Debugger can't find framework source

2009-03-15 Thread reflexactions
I noticed that after I switch my app to use framework RSL's the debugger always 
shows the framework as "no source".

I have checked that in the library path the source attachment property is set 
and is valid.

All I need do is switch between framework linkage "merged in code" and "RSL" 
for it to show/not show source code in the debugger.

This is running FB standalone. 

Does anyone know how to get it to find the source code when using the framework 
as an RSL?



Re: [flexcoders] Ribbon in FLEX

2009-03-15 Thread J.C. Berry
Hi Allen, though I did not ask before I would be interested in your code. Do
you have a working sample?

On Sun, Mar 15, 2009 at 5:58 PM, Allan Pichler  wrote:

>Hi all….
>
>
>
> I’m sorry to say that for some reason I am missing the list of people who
> wanted the code/graphics for a ribbon/editor toolbar I made quite a while
> ago.
>
>
>
> If interested parties would raise their hand off list (so to speak) please
> do so….. I have finally had time to locate the files in question.
>
>
>
> I apologize for the trouble and wish everyone a great Sunday night!
>
>
>
> *Allan Pichler*
>
> Brewmaster - ColdFusion/Flex/Ajax/UI
>
>
>
> Email:   dreamc...@gmail.com
>
> Phone: (415) 683 0313
>
> Skype:  apichler
>
> Yahoo:  allan_pichler
>
> LinkedIn: http://www.linkedin.com/in/apichler
>
> Website: http://www.unzipmenow.com
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Jeffry Houser
> *Sent:* Friday, March 13, 2009 9:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Ribbon in FLEX
>
>
>
>
>  This is one of the components were were considering for Flextras; however
> I'm unclear how a Ribbon is different than a TabNavigator, though.
>
>  I'd love to hear more thoughts on it, either on-list or off.
>
> Sam Lai wrote:
>
> http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
>
>
>
> Kind of like the toolbar for picking controls in Adobe Dreamweaver
>
> (unless they've changed it in recent versions).
>
>
>
> Unfortunately I haven't heard of any Flash implementations, only
>
> Silverlight implementations. You could implement it yourself using a
>
> TabNavigator and Panel controls inside each tab for groups, and
>
> buttons inside them. It's the styling that will be a pain - the
>
> official specs are available from Microsoft for free though, with some
>
> conditions attached
>
> (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
>
> use the images and even code if you know XAML from the Silverlight
>
> version - http://silverlightribbon.codeplex.com/
>
>
>
> Personally I'd be making my own interpretation of the ribbon control
>
> instead of following the Microsoft version to the dot, especially
>
> seeing as they have changed a few bits in Windows 7 which will
>
> probably filter down to Office in Office 2010 (e.g. the confusion with
>
> the File menu - the Orb in the top corner is now gone).
>
>
>
> 2009/3/13 Tracy Spratt  :
>
>
>
> I am not familiar with that control, can you describe it?
>
>
>
>
>
>
>
> Tracy Spratt,
>
>
>
> Lariat Services, development services available
>
>
>
> 
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
> ] On
>
> Behalf Of Claudio M. E. Bastos Iorio
>
> Sent: Friday, March 13, 2009 2:13 AM
>
> To: flexcoders@yahoogroups.com
>
> Subject: [flexcoders] Ribbon in FLEX
>
>
>
>
>
>
>
> Hi,
>
>
>
> Is there any component (free or paid) similar to the office 2007 ribbon
>
> control?
>
>
>
>
>
>
>
> TIA
>
>
>
>
>
>
>
> __
>
>
>
> Claudio M. E. Bastos Iorio
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
>
>
> --
>
> Flexcoders Mailing List
>
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
> http://groups.yahoo.com/group/flexcoders/
>
>
>
> Individual Email | Traditional
>
>
>
> http://groups.yahoo.com/group/flexcoders/join
>
> (Yahoo! ID required)
>
>
>
> mailto:flexcoders-dig...@yahoogroups.com 
> 
>
> mailto:flexcoders-fullfeatu...@yahoogroups.com 
> 
>
>
>
> flexcoders-unsubscr...@yahoogroups.com
>
>
>
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
>
>
>  --
>
> Jeffry Houser, Technical Entrepreneur
>
> Adobe Community Expert: http://tinyurl.com/684b5h
>
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
>
> --
>
> Easy to use Interface Components for Flex Developers
>
> http://www.flextras.com?c=104
>
> --
>
> http://www.theflexshow.com
>
> http://www.jeffryhouser.com
>
> --
>
> Part of the DotComIt Brain Trust
>
>
>



-- 
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
jcharlesbe...@gmail.com
"I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com



This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the individual
or entity named above. If the reader

Re: [flexcoders] Ribbon in FLEX

2009-03-15 Thread Josh McDonald
Why not just post a link to the list?

-Josh

2009/3/16 Allan Pichler 

>Hi all….
>
>
>
> I’m sorry to say that for some reason I am missing the list of people who
> wanted the code/graphics for a ribbon/editor toolbar I made quite a while
> ago.
>
>
>
> If interested parties would raise their hand off list (so to speak) please
> do so….. I have finally had time to locate the files in question.
>
>
>
> I apologize for the trouble and wish everyone a great Sunday night!
>
>
>
> *Allan Pichler*
>
> Brewmaster - ColdFusion/Flex/Ajax/UI
>
>
>
> Email:   dreamc...@gmail.com
>
> Phone: (415) 683 0313
>
> Skype:  apichler
>
> Yahoo:  allan_pichler
>
> LinkedIn: http://www.linkedin.com/in/apichler
>
> Website: http://www.unzipmenow.com
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Jeffry Houser
> *Sent:* Friday, March 13, 2009 9:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Ribbon in FLEX
>
>
>
>
>  This is one of the components were were considering for Flextras; however
> I'm unclear how a Ribbon is different than a TabNavigator, though.
>
>  I'd love to hear more thoughts on it, either on-list or off.
>
> Sam Lai wrote:
>
> http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
>
>
>
> Kind of like the toolbar for picking controls in Adobe Dreamweaver
>
> (unless they've changed it in recent versions).
>
>
>
> Unfortunately I haven't heard of any Flash implementations, only
>
> Silverlight implementations. You could implement it yourself using a
>
> TabNavigator and Panel controls inside each tab for groups, and
>
> buttons inside them. It's the styling that will be a pain - the
>
> official specs are available from Microsoft for free though, with some
>
> conditions attached
>
> (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
>
> use the images and even code if you know XAML from the Silverlight
>
> version - http://silverlightribbon.codeplex.com/
>
>
>
> Personally I'd be making my own interpretation of the ribbon control
>
> instead of following the Microsoft version to the dot, especially
>
> seeing as they have changed a few bits in Windows 7 which will
>
> probably filter down to Office in Office 2010 (e.g. the confusion with
>
> the File menu - the Orb in the top corner is now gone).
>
>
>
> 2009/3/13 Tracy Spratt  :
>
>
>
> I am not familiar with that control, can you describe it?
>
>
>
>
>
>
>
> Tracy Spratt,
>
>
>
> Lariat Services, development services available
>
>
>
> 
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
> ] On
>
> Behalf Of Claudio M. E. Bastos Iorio
>
> Sent: Friday, March 13, 2009 2:13 AM
>
> To: flexcoders@yahoogroups.com
>
> Subject: [flexcoders] Ribbon in FLEX
>
>
>
>
>
>
>
> Hi,
>
>
>
> Is there any component (free or paid) similar to the office 2007 ribbon
>
> control?
>
>
>
>
>
>
>
> TIA
>
>
>
>
>
>
>
> __
>
>
>
> Claudio M. E. Bastos Iorio
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
>
>
> --
>
> Flexcoders Mailing List
>
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
> http://groups.yahoo.com/group/flexcoders/
>
>
>
> Individual Email | Traditional
>
>
>
> http://groups.yahoo.com/group/flexcoders/join
>
> (Yahoo! ID required)
>
>
>
> mailto:flexcoders-dig...@yahoogroups.com 
> 
>
> mailto:flexcoders-fullfeatu...@yahoogroups.com 
> 
>
>
>
> flexcoders-unsubscr...@yahoogroups.com
>
>
>
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
>
>
>  --
>
> Jeffry Houser, Technical Entrepreneur
>
> Adobe Community Expert: http://tinyurl.com/684b5h
>
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
>
> --
>
> Easy to use Interface Components for Flex Developers
>
> http://www.flextras.com?c=104
>
> --
>
> http://www.theflexshow.com
>
> http://www.jeffryhouser.com
>
> --
>
> Part of the DotComIt Brain Trust
>
>
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


RE: [flexcoders] Ribbon in FLEX

2009-03-15 Thread Allan Pichler
Hi all..

 

I'm sorry to say that for some reason I am missing the list of people who
wanted the code/graphics for a ribbon/editor toolbar I made quite a while
ago.

 

If interested parties would raise their hand off list (so to speak) please
do so... I have finally had time to locate the files in question.

 

I apologize for the trouble and wish everyone a great Sunday night!

 

Allan Pichler

Brewmaster - ColdFusion/Flex/Ajax/UI

 

Email:   dreamc...@gmail.com

Phone: (415) 683 0313

Skype:  apichler

Yahoo:  allan_pichler

LinkedIn: http://www.linkedin.com/in/apichler

Website: http://www.unzipmenow.com

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jeffry Houser
Sent: Friday, March 13, 2009 9:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Ribbon in FLEX

 


 This is one of the components were were considering for Flextras; however
I'm unclear how a Ribbon is different than a TabNavigator, though.  

 I'd love to hear more thoughts on it, either on-list or off.  

Sam Lai wrote: 

http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL1007963
41033#2
 
Kind of like the toolbar for picking controls in Adobe Dreamweaver
(unless they've changed it in recent versions).
 
Unfortunately I haven't heard of any Flash implementations, only
Silverlight implementations. You could implement it yourself using a
TabNavigator and Panel controls inside each tab for groups, and
buttons inside them. It's the styling that will be a pain - the
official specs are available from Microsoft for free though, with some
conditions attached
(http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
use the images and even code if you know XAML from the Silverlight
version - http://silverlightribbon.codeplex.com/
 
Personally I'd be making my own interpretation of the ribbon control
instead of following the Microsoft version to the dot, especially
seeing as they have changed a few bits in Windows 7 which will
probably filter down to Office in Office 2010 (e.g. the confusion with
the File menu - the Orb in the top corner is now gone).
 
2009/3/13 Tracy Spratt  
:
  

I am not familiar with that control, can you describe it?
 
 
 
Tracy Spratt,
 
Lariat Services, development services available
 

 
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Friday, March 13, 2009 2:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ribbon in FLEX
 
 
 
Hi,
 
Is there any component (free or paid) similar to the office 2007 ribbon
control?
 
 
 
TIA
 
 
 
__
 
Claudio M. E. Bastos Iorio
 
 
 
 


 
 

 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62
079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 
  





-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



<><>

[flexcoders] Re: Styling a list item renderer

2009-03-15 Thread Amy
--- In flexcoders@yahoogroups.com, Aaron Hardy  wrote:
>
> Hey flexers,
> 
> What's the formal way to set a styleName to a list item renderer?  It 
> seems like ListBase would have an itemRendererStyleName of some sort, 
> but I have yet to discover it.  I realize in the renderer class 
> constructor I could do something like this.styleName = 'mystyle'; but it 
> doesn't seem flexible enough.  What if I want to use the same renderer 
> in two different lists, but styled differently?  I'm just thinking 
> there's got to be a better way that I'm missing.

http://flexdiary.blogspot.com/2008/08/tilelist-with-stylefunction.html
http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-stylefunction.html

HTH;

Amy



Re: [flexcoders] GENERIC compareFucntion without hardcoding of dataField ?

2009-03-15 Thread Josh McDonald
Just off the top of my head, probably have 1 and -1 mixed up :)

function createCompareFunction(fieldName : String) : Function
{
  return function(left : Object, right : Object) : Number
 {
 if (left[fieldName] < right[fieldName])
   return -1;
 if (left[fieldName] > right[fieldName])
   return 1;
 return 0;
 }
}

Then you can just call:

createCompareFunction("field1");
createCompareFunction("field2");
createCompareFunction("fieldN");

-Josh

2009/3/15 Dharmendra Chauhan 

>   Hi All,
>My flex2  *DataGrid*  has got at least *50 columns* of type Date.I
> also have list which opens when use select  a context menu item ,in this
> list user can select  any no of columns on which he wants  multiple sorting
> to be happen.
>
> Lets say user has selected 5 Columns for multi sorting,I create 5 sortField
> with compareFunction in loop as follows
>
>   var sortFieldArray:Array = new Array();
>   for(var *dataField *in *selectedColumnArray*){
> var field:SortField = new SortField(dataField );
>
>  field.compareFunction = function(itemA:Object,itemB:Object):int{
> var dateA:Date =itemA[*dataField *] ;
> var dateB:Date =itemB[*dataField *] ;
>
>  .
>  }
> sortFieldArray.push(field);
>   }
> Problem which I have been facing is ,local var dataField is always
> referring to the last value of *selectedColumnArray *hence sorting is
> happening based on last column only.
>
> I dont want to create separate compareFunction for each column , simply
> because at compilation time I dont know about the no of column which user
> can choose to participate in multipleSorting.And I dont want to create 50
> compareFunction with *hardcoded dataField* name
>
>
> Is it possible to create *GENERIC compareFucntion *which can take
> dataField without hard coding ?
>
> Please throw some light on this it?
>
>
> Regards,
> Dharmendra chauhan
>
>
>
>
>
>
>
>
>
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Weired Focus Change behaviour on tab pressing

2009-03-15 Thread geeky developer
Hey Alex
Thanks for replying but if I changed it to GroupName instead of group, it
would let me make only one selection of the radio button. No doubt it fixed
the tab focus issue but I like to use pairs of radio button like in the
below example code, I like unitRoleGroup as one group and I like to select
one of them at a time and networkSettingsGroup as another group in which I
will like to select one at a time. It would let me do that if I change the
property name to "group ", it would let me select one of the options if use
group instead of groupName but then it would screw up the tab focus and if I
change the group to groupName as recommended, then it fixes the tab focus
issue but then it combines all the 4 radio button options into one and I
would be able to select only one of them, thats not what i need. I like to
create 2 different groups of radio buttons like the way it is shown in the
code and i  would like the tab ordering work properly with selecting one of
the option at a time in each radio button group, Any idea to fix it? Thanks
a lot for your help


/*CODE */


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

















































On Fri, Mar 13, 2009 at 3:12 PM, Alex Harui  wrote:

>You have to set groupName, not group.
>
>
>
> 
>
> 
>
> 
>
>  groupName="networkSettingsGroup" styleName="textMedium"/>
>
>  styleName="textMedium"/>
>
> 
>
>
>
> Same for the other radiobuttons
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *anuj181
> *Sent:* Friday, March 13, 2009 10:21 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Weired Focus Change behaviour on tab pressing
>
>
>
> Hi Guys
> I am trying to make the focus changed consistently to different components
> in my app but it is showing different behavior when user presses tab. Few
> things are happening here if one of the radio button from the first radio
> group has been selected then pressing tab button will keep on cycling
> through first 3 components and if the radio buttons are not selected then
> changing focus on the tab pressing works fine, All I need is that whenever
> user presses tab key, it changes the focus consistently through all of the
> components(doesn't matter if the radio button is selected or not) and the
> same behavior will be followed when user presses the shift+Tab.
> Anyone has any idea about whats going on here,Please help me in fixing this
> issue,
> Thanks a lot
> geekyDeveloper
> /***CODE***/
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  paddingTop="5" paddingRight="5" paddingBottom="5" paddingLeft="5">
>
>  width="200"/>
>
>  indicatorGap="25" labelWidth="200"
> paddingTop="0" paddingRight="0" paddingBottom="0" paddingLeft="0"
> height="262">
>
> 
>  height="25" paddingTop="10">
> 
> 
> 
> 
> 
>  styleName="textMedium"/>
>  styleName="textMedium"/>
> 
> 
> 
>  restrict="a-zA-Z0-9_"
> />
> 
> 
> 
> 
>
> 
> 
> 
> 
>  group="{networkSettingsGroup}" styleName="textMedium"/>
>  styleName="textMedium"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
>
> 
>
>   
>


[flexcoders] Re: Datagrid Display update problem

2009-03-15 Thread elnomdeguerre1
Thank you very much! This problem was costing heaps and heaps of time. Great 
job with Flex btw!

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> The DataGrid does not update the dataProvider until you switch to a new row.  
> Editing different columns in the same row doesn't cause an update in order to 
> minimize update event traffic.
> 
> There are past topics on this issue in the archive.  Usually, I recommend 
> cheating by getting the ITEM_EDIT_END event and change the reason to NEW_ROW 
> if it was NEW_COLUMN
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of elnomdeguerre1
> Sent: Wednesday, March 11, 2009 4:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Datagrid Display update problem
> 
> 
> HI,
> 
> I know that there have been lots of discussion about the datagrid topic but I 
> simply couldn't figure this bug out.
> 
> I have a datagrid with a custom editor and renderer that displays an amount. 
> Based on this amount I make a calculation which is then displayed in an 
> adjacent uneditable cell.
> 
> When the focus leaves the first cell the second cell is not updated 
> immediately, I have to change focus to either outside the datagrid or to 
> another row in the datagrid for the calculated amount to show up.
> 
> I do call the the Datagrid(owner).invalidateList() function and I've tried 
> the IList(dataprovider).itemupdated(data) function as well. None of them seem 
> to work... I've even called invalidateDisplayList in desperation.
> 
> The cell that is supposed to display the data has a custom itemrender(label), 
> which does nothing but change the color of the text based on some other 
> variable and assign text= data.CalculatedAmount on DataChange. I've debugged 
> through this method and I do see that the data is is there, and it is 
> assigned but it simply isn't shown on the screen.
> 
> I'm really at my wit's end with this problem. Any help would be greatly 
> appreciated.
>




[flexcoders] Committing change events

2009-03-15 Thread reflexactions
Is there a way to bind properties in mxml to the committing change event only?

tks



RE: [flexcoders] datagrid cell

2009-03-15 Thread Tracy Spratt
No, you do not do that.  You just assign the array to the dataGrid's
dataProvider property.

You never work directly with columns or rows of the datagrid.  DataGrid and
List and the other data driven controls are just that, "data driven".  You
always work with the dataProvider.

There is not a one to one relationship between the rows of the dataGrid and
the elements in your data. Google for: flex itemRenderer recycle.

Tracy Spratt,
Lariat Services, development services available

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Vivian Richard
Sent: Sunday, March 15, 2009 4:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] datagrid cell

   Thanks Tracy,

   actually what I need to do is - I want to
   populate  a datagrid from a 2 dimensional array.
   suppose I have a 2D array which ar[][]. Now I
   want to manually put the content of the array
   in a datagrid. By the way I have already created
   columns by figuring out the width of the 2D array.
   Now all I need to do is iterate through the array
   and put them in the datagrid cell.

   regards...




On Sun, Mar 15, 2009 at 12:38 PM, Tracy Spratt 
wrote:
> This is “Red Flag” question.  You do *not* retrieve data from a datagrid
> cell.  Your retrieve data from the datagrid’s dataProvider.
>
>
>
> Do you understand about item renderers and recycling?
>
>
>
> How are you getting “row number”
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of hworke
> Sent: Sunday, March 15, 2009 3:54 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] datagrid cell
>
>
>
> Hi am trying to retrieve the data from a datagrid
> pointed by its column number and row number. Suppose
> if 4,5 is given I need to find the value that is
> stored in column 4 and row 5. How do I do that.
>
> Regards...
>
> 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62
079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







Re: [flexcoders] datagrid cell

2009-03-15 Thread Vivian Richard
   Thanks Tracy,

   actually what I need to do is - I want to
   populate  a datagrid from a 2 dimensional array.
   suppose I have a 2D array which ar[][]. Now I
   want to manually put the content of the array
   in a datagrid. By the way I have already created
   columns by figuring out the width of the 2D array.
   Now all I need to do is iterate through the array
   and put them in the datagrid cell.

   regards...




On Sun, Mar 15, 2009 at 12:38 PM, Tracy Spratt  wrote:
> This is “Red Flag” question.  You do *not* retrieve data from a datagrid
> cell.  Your retrieve data from the datagrid’s dataProvider.
>
>
>
> Do you understand about item renderers and recycling?
>
>
>
> How are you getting “row number”
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of hworke
> Sent: Sunday, March 15, 2009 3:54 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] datagrid cell
>
>
>
> Hi am trying to retrieve the data from a datagrid
> pointed by its column number and row number. Suppose
> if 4,5 is given I need to find the value that is
> stored in column 4 and row 5. How do I do that.
>
> Regards...
>
> 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



[flexcoders] XML node access problem

2009-03-15 Thread kandalf26
Hi everybody, I'm having a problem with XML. I need anybody that tell me why is 
it not working, please.

In this picture:
http://asylum.homelinux.org/xml-error.png

There's a debugging session where the error can be shown. You'll see in the 
Expressions window, the XML var highlighted and at the right of it the value of 
it, which is a valid XML structure. With this value expanded the two child 
nodes can be seen.
I need to get to the value of the node called "service" which is an immediate 
child of the root node.
Right below this expression, there are two more expressions, one which works 
but it's no good for coding and the second one which should works (as the docs 
say it should) but is, actually, not working. The debugger is raising an error 
and I'm not getting the data.

Can anybody tell me what's wrong with this?

Thanx a lot in advance.





RE: [flexcoders] datagrid cell

2009-03-15 Thread Tracy Spratt
This is "Red Flag" question.  You do *not* retrieve data from a datagrid
cell.  Your retrieve data from the datagrid's dataProvider.

 

Do you understand about item renderers and recycling?

 

How are you getting "row number"

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of hworke
Sent: Sunday, March 15, 2009 3:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid cell

 



Hi am trying to retrieve the data from a datagrid
pointed by its column number and row number. Suppose
if 4,5 is given I need to find the value that is
stored in column 4 and row 5. How do I do that.

Regards...





Re: [flexcoders] Styling a list item renderer

2009-03-15 Thread Aaron Hardy
Thanks Alex.  Pairing a renderer with a custom list component seems a 
bit overkill and smells of over-coupling.  In any case, your response 
answers my question and I greatly appreciate it.  Thanks again!


Aaron

Alex Harui wrote:


So if the renderer used say, a style named "aaronRadius" to determine 
the size of the circle, you don't have to change the styleName on the 
renderer.


If you put a List selector in your styles block with "aaronRadius" in 
it, it should transfer through to the renderer. You won't be able to 
use aaronRadius in the style MetaData, but you could pair your renderer with an AaronList 
subclass that defines aaronRadius on it, and makes your renderer the 
default renderer.


Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui 

-Original Message-
From: flexcoders@yahoogroups.com  
[mailto:flexcoders@yahoogroups.com 
] On Behalf Of Aaron Hardy

Sent: Saturday, March 14, 2009 7:48 PM
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Styling a list item renderer

Thanks for the response Alex. The styles I'm mostly talking about are
very specific to the item renderer. For example, my renderer has a
colored circle in it along with a few other things. I'd like to specify
a radius style that can be a specific radius for one list and a
different radius for a separate list.

Thanks again for taking the time to participate on the list.

Aaron

Alex Harui wrote:
>
> There isn't a formal way. The styleName property will be assigned the
> List (actually an inner content pane), but I think after it has been
> added to the content pane you can reset it, like in createChildren or
> commitProperties. Normally, all of the styles of a renderer are
> supplied by styles set on the List. Which styles would you want to
> apply to List that are different from ones you'd want to apply to the
> renderer?
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. >
>
> Blog: http://blogs.adobe.com/aharui  
>

>
> *From:* flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com ]

> *On Behalf Of *Aaron Hardy
> *Sent:* Saturday, March 14, 2009 10:19 AM
> *To:* flexcoders@yahoogroups.com 
> *Subject:* [flexcoders] Styling a list item renderer
>
> Hey flexers,
>
> What's the formal way to set a styleName to a list item renderer? It
> seems like ListBase would have an itemRendererStyleName of some sort,
> but I have yet to discover it. I realize in the renderer class
> constructor I could do something like this.styleName = 'mystyle'; but it
> doesn't seem flexible enough. What if I want to use the same renderer
> in two different lists, but styled differently? I'm just thinking
> there's got to be a better way that I'm missing.
>
> Thanks everyone.
>
> Aaron
>
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 

Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 

Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
! 
Groups Links







[flexcoders] Re: changes on item renderers on a List

2009-03-15 Thread gwangdesign
Hi Alex, 

Thanks much for the lead.

What do you mean "virtualization"? Are you referring to recycling of the 
renderers?

The "fancy" stuff I am working on are supposed to be dealing with large amount 
of data while still showing more detailed view of some portions where the user 
is interested...

Another problem I am struggling with is whether to have my component determine 
the states of the item renderers. For example, how do you choreograph the 
transitions of all the item renderers involved (like shrinking the items that 
just lost focus and then expanding the item that just get focus)? It seems it 
should be the job of my component; but when an item renderer expands, it may 
mean to display more detailed information by switching to another state, which 
looks like it may be better handled by its own.

geng

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> If you're doing some fancy stuff and don't need virtualization you can just 
> use a VBox.  You could probably fake a single selection model with states 
> pretty easily.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of gwangdesign
> Sent: Saturday, March 14, 2009 10:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: changes on item renderers on a List
> 
> 
> Hi Tracy,
> 
> Thanks for the heads-up. I was aware that list based components recycle their 
> item renderers. For example, when you scroll the list, it could break the 
> component if there are some renderers that were already in the expanded 
> states;)
> 
> I went ahead and did these in my component which subclasses List.
> 
> (Dictating states of listItemRenderers in the List subcomponent)
> http://maohao.com/blogs/wordpress/TestSimpleZoomableList/bin-release/TestSimpleZoomableList.html
> 
> (Letting the individual item renderers to decide which state they want to go)
> http://weblogs.macromedia.com/pent/archives/2006/04/a_list_itemrend.html
> 
> After all the struggle, I found out there are really _a lot_ going on under 
> the hood on a List/ListBase component (this includes "buffering" spare list 
> item renderers, managing scrolling, clipping, etc.) When I have some time, I 
> may just extend UIComponent, or hunt for some other components that are more 
> tolerant of transitions...:)
> 
> Thanks and have a nice weekend.
> 
> -geng
> 
> --- In flexcoders@yahoogroups.com, 
> "Tracy Spratt"  wrote:
> >
> > I think I would approach this by having an "isExpanded" property on the
> > dataProvider items, and toggle that property using logic in a change
> > handler. The renderer would use that property to set its visual state.
> >
> >
> >
> > There won't be any clear relationship between selectedItems and the visual
> > renderers.
> >
> >
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> >
> > _
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On
> > Behalf Of gwangdesign
> > Sent: Friday, March 13, 2009 6:05 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] changes on item renderers on a List
> >
> >
> >
> > Hi,
> >
> > I am re-sending this question since this seemingly simple question has been
> > taking me a bit much longer than I expected;)
> >
> > I have a whole bunch of item renderers inside a List (or it lays out and
> > scrolls the renderers the way a List does). Here is what I am trying to do:
> > I'd like to expand/shrink these item renderers based on whether they are
> > newly "selected" or "de-selected". My approach right now is extending List
> > class. I listen to ListEvent.CHANGE event and invalidate my component as it
> > occurs. I then try to figure out which renderer has been
> > selected/deselected... and I can't.
> >
> > Basically my component is interested in the following actions:
> > 1. When "allowMultipleSelection" is true, user selects an item that hasn't
> > been selected yet;
> > 2. When "allowMultipleSelection" is true, user selects an already selected
> > item;
> > 3. When "allowMultipleSelection" is false, user selects a new item;
> > 4. When "allowMultipleSelection" is false, user selects an already selected
> > item;
> >
> > I poke into the code of mx.controls.ListBase and List and the code is a bit
> > over my head right now;)
> >
> > Any ideas? pseudo code is welcome!
> >
> > Thanks and have a great weekend!
> >
> > -geng
> >
>




[flexcoders] Re: how to call dynamic servlet

2009-03-15 Thread anitha2324
Hi All , 

Sorry for the late reply , i have been told to send the working code for me and 
here is it below , it might be complicated but this is what i have right now , 

Thanks "Tracy Spratt"  nts333rd  for your advise , 

i welcome ur suggest i ll try to test ur way , what i need is to get the 
elements returned by the xml from the servlet one by one and the below code did 
that but anyhow i ll test your way ...

thanking all ...

here is the current working code



http://www.adobe.com/2006/mxml"; layout="absolute" 
creationComplete="init()">







[flexcoders] Date Calculation : DayLightSaving Time

2009-03-15 Thread sngeorge2000

Hello All,

Currently we are getting a difference of one day while selecting a date outside 
of the DayLightSaving period and a day within the DayLightSaving Period.
Rite now we are calculating the difference between the dates using the 
following code.

 (toDateField.selectedDate.getTime()
-fromDateField.selectedDate.getTime())/milliSecondsPerDay
where milliSecondsPerDay = 1000 * 60 * 60 * 24;

I understand that it is a bug in flex as mentioned in the following link.
http://bugs.adobe.com/jira/browse/SDK-19092

We are desperately in need for a fix for the bug as we got this as a production 
defect in an application made for a particular financial institution. 
Any fixes to this problem would be deeply be appreciated.

Regards,
Sneha




  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/



[flexcoders] Last Column is getting unnecessary space on column resize ?

2009-03-15 Thread Dharmendra Chauhan

Hi All,
I have a resizable  dataGrid with horizontalScrollPolicy = "auto
" , when I resize any column , width of last column is being increased ?

If  I am not resizing it ( last column) ,why is it increasing its width
?

I dived   in to  dataGrid code and found a method  calculateColumnSizes
(), this method has got code which assign unnecessary  space to the last
column.
Since this is private method ,I cant ovrride it .

Also , when i try to minimize its width ,it required more than 2 attempt
to acheive it  ..why It is so ?

Last colun resizing behavior should be similier to the rest of the
column ?

Is anybosy has ever faced these issue ?

Does anybody know the solution ?


Regards,
Dharmendra













[flexcoders] GENERIC compareFucntion without hardcoding of dataField ?

2009-03-15 Thread Dharmendra Chauhan
Hi All,
My flex2  DataGrid  has got at least 50 columns of type Date.I
also have list which opens when use select  a context menu item ,in this
list user can select  any no of columns on which he wants  multiple
sorting to be happen.

Lets say user has selected 5 Columns for multi sorting,I create 5
sortField with compareFunction in loop as follows

   var sortFieldArray:Array = new Array();
   for(var dataField in selectedColumnArray){
 var field:SortField = new SortField(dataField );

  field.compareFunction = function(itemA:Object,itemB:Object):int{
 var dateA:Date =itemA[dataField ] ;
 var dateB:Date =itemB[dataField ] ;

  .
  }
 sortFieldArray.push(field);
   }
Problem which I have been facing is ,local var dataField is always 
referring to the last value of selectedColumnArray hence sorting is
happening based on last column only.

I dont want to create separate compareFunction for each column , simply
because at compilation time I dont know about the no of column which
user can choose to participate in multipleSorting.And I dont want to
create 50 compareFunction with hardcoded dataField name


Is it possible to create GENERIC compareFucntion which can take
dataField without hard coding ?

Please throw some light on this it?


Regards,
Dharmendra chauhan









 


[flexcoders] datagrid cell

2009-03-15 Thread hworke


   Hi am trying to retrieve the data from a datagrid
   pointed by its column number and row number. Suppose
   if 4,5 is given I need to find the value that is
   stored in column 4 and row 5. How do I do that.

   Regards...



[flexcoders] Cool Flex Component Site (opensource)

2009-03-15 Thread aoi_zip
cool all opensource (lgpl)

http://www.openzet.org/samples/