[flexcoders] Thanks Alex!

2013-11-05 Thread James Finnigan
I have no idea who is still listening to this thread but I think it's time
to humbly, and gratefully thank Alex for his devotion to Flex and this
thread.  Two years ago our world was shaken and we've all moved onto
different (not better) things. ;)

Alex has continued to demonstrate and keep his promise in supporting Flex
two years down the road and will probably continue to monitor these and
other threads for several more.



Hats off to you Alex!  You are to commended for your devotion and
sacrifices to our beloved Flex!

James

LongLiveFlex/


Re: [flexcoders] Thanks Alex!

2013-11-05 Thread Alex Harui
Thanks, but it's not so hard since I'm paid to do it.

It would help for you all to switch to Apache Flex and ask your questions over 
there.  The main Apache Flex website is: http://flex.apache.org/
You can subscribe to the mailing lists or a forum version by following 
instructions here: http://flex.apache.org/community-mailinglists.html
And in case you haven't been following, Apache just released 4.11.0 which has 
some 200 bug fixes over Adobe 4.6, and several of us, including myself are 
working on FlexJS, a version of Flex that runs without Flash.  More information 
on that is here:  https://cwiki.apache.org/confluence/display/FLEX/FlexJS

-Alex

From: [ p e r c e p t i c o n ] 
percepti...@gmail.commailto:percepti...@gmail.com
Reply-To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Date: Tuesday, November 5, 2013 9:15 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Thanks Alex!



I second third and fourth that

On Nov 5, 2013, at 10:37 AM, James Finnigan 
james.alan.finni...@gmail.commailto:james.alan.finni...@gmail.com wrote:



I have no idea who is still listening to this thread but I think it's time to 
humbly, and gratefully thank Alex for his devotion to Flex and this thread.  
Two years ago our world was shaken and we've all moved onto different (not 
better) things. ;)

Alex has continued to demonstrate and keep his promise in supporting Flex two 
years down the road and will probably continue to monitor these and other 
threads for several more.



Hats off to you Alex!  You are to commended for your devotion and sacrifices to 
our beloved Flex!

James

LongLiveFlex/







Re: [flexcoders] Nested TabNabvigator/Repeater error

2013-11-05 Thread Alex Harui
So if I understand correctly, clicking on some nested Tab changes some other 
ViewStack's selectedIndex.  If that's correct, try subclassing the ViewStack's 
selectedIndex setter so you can set a breakpoint and catch when only that 
ViewStack is changed.  Then the call stack should contain some good clues.

From: Tom McNeer tmcn...@gmail.commailto:tmcn...@gmail.com
Reply-To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Date: Monday, November 4, 2013 3:31 PM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested TabNabvigator/Repeater error [4 Attachments]


[Attachment(s) from Tom McNeer included below]

I've finally had time to check this out a little further.

As a reminder, I'm creating nested TabNavigator elements dynamically. I avoided 
using a Repeater and attached a CollectionChange event listener to the 
ArrayCollection that is the main data provider. The function called by the 
listener walks through the structure, creating TabNavigators with VBox 
children, and at the bottom level, a custom component (DocDataGrid) that is a 
VBox which wraps a DataGrid.

The problem is that a click on a tab in the lowest-level TabNavigator doesn't 
display the selected child. Rather, it sends the user several levels back up 
the component tree.

I've followed the click through TabBars and NavBars and Buttons till there's a 
click event fired where I can't determine what's supposed to hear the click. 
The selectedIndex appears correct through each level in the inheritance, but 
then the process fails.

I've even added some hack-y invalidateDisplayList() calls in hopes that they 
might have an effect.

I'm including the code that creates the elements, along with some screen shots 
that I hope will better explain what's going on.

If you have time to look them over, and if you see where I'm going wrong, I 
would certainly appreciate any pointers.

Thanks very much in advance.

private function buildUI(e:CollectionEvent):
void{
clearTabs();
var vb:VBox;
var tn:TabNavigator;
var ddg:DocDataGrid;
for(var i:int=0;iacCaseDocuments.length;i++){
var arSubtypes:Array = acCaseDocuments[i].subtypes as Array;
vb = new VBox();
vb.idhttp://vb.id='docType' + i;
vb.setStyle('horizontalAlign','center');
vb.label = acCaseDocuments[i].friendlyName as String;
vb.percentWidth=95;
vb.percentHeight=95;
vb.styleName='contentWhite';
tn = new TabNavigator();
tn.idhttp://tn.id='docSubtab' + i;
tn.percentWidth=100;
tn.percentHeight=100;
tn.x=5;
tn.y=5;
tn.setStyle(backgroundAlpha,0);
tn.setStyle('borderThickness',1);
tn.setStyle('paddingTop',0);
tn.creationPolicy=all;
for(var j:int=0;jarSubtypes.length;j++){
ddg = new DocDataGrid();
ddg.idhttp://ddg.id= 'docSubtype' + j;
ddg.label=arSubtypes[j].friendlyName as String;
ddg.gridData.source=arSubtypes[j].documents as Array;
ddg.gridData.refresh();
tn.addChild(ddg);
}
tn.invalidateDisplayList();
vb.addChild(tn);
docTabs.addChild(vb);
}
setFirstTab(e);
}


On Thu, Oct 24, 2013 at 12:32 PM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:


Never tried right clicking on the framework files before.  You're right that it 
doesn't work.  But double-clicking should set a breakpoint.  It does for me.

From: Tom McNeer tmcn...@gmail.commailto:tmcn...@gmail.com
Reply-To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Date: Thursday, October 24, 2013 7:44 AM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested TabNabvigator/Repeater error



Alex,

Thanks again for your reply. Sorry I was unclear. I wasn't suggesting that the 
framework had code to switch the ViewStack on click.

I was responding to your comment about the concern being the logic that 
responds to the change in the TabNavigator and TabBar. And I simply meant that 
my code does not contain any handlers for any actions on the TabNavigators 
created in my AS code, nor on the underlying TabBars. But rather, the click on 
the visible Tab that _appears_ to be 

Re: [flexcoders] Nested TabNabvigator/Repeater error

2013-11-05 Thread Tom McNeer
Hi Alex,

Thanks for your suggestion. It may be a couple of days before I can get
back to testing it; I'm reworking many backend routines and database
functions/procs for the same application.

But when I'm able to test it, I'll report back.

As always, thanks for your generous help.


On Tue, Nov 5, 2013 at 1:47 PM, Alex Harui aha...@adobe.com wrote:



 So if I understand correctly, clicking on some nested Tab changes some
 other ViewStack's selectedIndex.  If that's correct, try subclassing the
 ViewStack's selectedIndex setter so you can set a breakpoint and catch when
 only that ViewStack is changed.  Then the call stack should contain some
 good clues.

 From: Tom McNeer tmcn...@gmail.com
 Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Date: Monday, November 4, 2013 3:31 PM
 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Nested TabNabvigator/Repeater error [4
 Attachments]



 I've finally had time to check this out a little further.

 As a reminder, I'm creating nested TabNavigator elements dynamically. I
 avoided using a Repeater and attached a CollectionChange event listener to
 the ArrayCollection that is the main data provider. The function called by
 the listener walks through the structure, creating TabNavigators with VBox
 children, and at the bottom level, a custom component (DocDataGrid) that is
 a VBox which wraps a DataGrid.

 The problem is that a click on a tab in the lowest-level TabNavigator
 doesn't display the selected child. Rather, it sends the user several
 levels back up the component tree.

 I've followed the click through TabBars and NavBars and Buttons till
 there's a click event fired where I can't determine what's supposed to hear
 the click. The selectedIndex appears correct through each level in the
 inheritance, but then the process fails.

 I've even added some hack-y invalidateDisplayList() calls in hopes that
 they might have an effect.

 I'm including the code that creates the elements, along with some screen
 shots that I hope will better explain what's going on.

 If you have time to look them over, and if you see where I'm going wrong,
 I would certainly appreciate any pointers.

 Thanks very much in advance.

 private function buildUI(e:CollectionEvent):
 void{
 clearTabs();
 var vb:VBox;
 var tn:TabNavigator;
 var ddg:DocDataGrid;
 for(var i:int=0;iacCaseDocuments.length;i++){
 var arSubtypes:Array = acCaseDocuments[i].subtypes as
 Array;
 vb = new VBox();
 vb.id='docType' + i;
 vb.setStyle('horizontalAlign','center');
 vb.label = acCaseDocuments[i].friendlyName as String;
 vb.percentWidth=95;
 vb.percentHeight=95;
 vb.styleName='contentWhite';
 tn = new TabNavigator();
 tn.id='docSubtab' + i;
 tn.percentWidth=100;
 tn.percentHeight=100;
 tn.x=5;
 tn.y=5;
 tn.setStyle(backgroundAlpha,0);
 tn.setStyle('borderThickness',1);
 tn.setStyle('paddingTop',0);
 tn.creationPolicy=all;
 for(var j:int=0;jarSubtypes.length;j++){
 ddg = new DocDataGrid();
 ddg.id= 'docSubtype' + j;
 ddg.label=arSubtypes[j].friendlyName as String;
 ddg.gridData.source=arSubtypes[j].documents as
 Array;
 ddg.gridData.refresh();
 tn.addChild(ddg);
 }
 tn.invalidateDisplayList();
 vb.addChild(tn);
 docTabs.addChild(vb);
 }
 setFirstTab(e);
 }


 On Thu, Oct 24, 2013 at 12:32 PM, Alex Harui aha...@adobe.com wrote:



 Never tried right clicking on the framework files before.  You're right
 that it doesn't work.  But double-clicking should set a breakpoint.  It
 does for me.

 From: Tom McNeer tmcn...@gmail.com
 Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Date: Thursday, October 24, 2013 7:44 AM

 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Nested TabNabvigator/Repeater error



 Alex,

 Thanks again for your reply. Sorry I was unclear. I wasn't suggesting
 that the framework had code to switch the ViewStack on click.

 I was responding to your comment about the concern being the logic that
 responds to the change in the TabNavigator and TabBar. And I simply meant
 that my code does not contain any handlers for any actions on the
 TabNavigators created in my AS code, nor on the underlying TabBars. But
 rather, the click on the visible Tab that _appears_ to be 

[flexcoders] Retrieve current item on a DataGroup

2013-11-05 Thread Jairo França
I have a question that seems easy, but i can't solve.
I have a DataGroup with a custom ItemRenderer.
How can I retrieve the current item that was selected with a double 
click (something like a SelectedItem on a DataGrid)?
Can I retrieve the itemRenderer instance of the element?



Thansk

My code is:




 s:Group height=100% width=100%
 s:Scroller height=100% width=100% id=scr
 s:DataGroup id=dg height=100% width=100% 
itemRenderer=myItemRenderer
  dataProvider={_data} 
doubleClickEnabled=true doubleClick=dg_doubleClickHandler(event)
 s:layout
 s:TileLayout/
 /s:layout
 /s:DataGroup
 /s:Scroller
 /s:Group


[flexcoders] Function from string?

2013-11-05 Thread A. P. Damien
I'm writing a game. Well, actually I guess it's more of a game engine. I 
want the game logic to be in a script.  The script will take the form of 
a series of rooms, each of which can contain:

   . doors to other rooms
   . characters the player can interact with
   . things the player can pick up and use

Any of these can have conditions on them. The condition can be expressed as:
   . Player must have (thing) in his inventory
   . Player must have at least X points
   . Player must have at least $Y money
   . Call function f

That last seems to be a problem. I would like to be able to take a 
function name I've read from the script and call the corresponding 
function. Or, alternatively, the script can contain the name of a class 
which must contain a method named (for example) conditionTest.

But I haven't figured out a way to convert a string to either a Function 
or a Class.  Is there a way of doing this?  If I were working in 
Javascript, I'd just call eval, but that seems to be forbidden in AS3, 
right?

Can I do this? Or do I have to put all the functions I might want to 
call this way in an array, and look them up that way?  Or what?


RE: [flexcoders] Thanks Alex!

2013-11-05 Thread Yu, Deyang
Hi Alex,

I just start working on to use Falcon to convert our existing Flex4 application 
to Html5.  Before I dig into it, want to know how reliable it is? Should I wait 
for a bit for a better version?

Thanks and regards,
Deyang

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Tuesday, November 05, 2013 1:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Thanks Alex!


Thanks, but it's not so hard since I'm paid to do it.

It would help for you all to switch to Apache Flex and ask your questions over 
there.  The main Apache Flex website is: http://flex.apache.org/
You can subscribe to the mailing lists or a forum version by following 
instructions here: http://flex.apache.org/community-mailinglists.html
And in case you haven't been following, Apache just released 4.11.0 which has 
some 200 bug fixes over Adobe 4.6, and several of us, including myself are 
working on FlexJS, a version of Flex that runs without Flash.  More information 
on that is here:  https://cwiki.apache.org/confluence/display/FLEX/FlexJS

-Alex

From: [ p e r c e p t i c o n ] 
percepti...@gmail.commailto:percepti...@gmail.com
Reply-To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Date: Tuesday, November 5, 2013 9:15 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Thanks Alex!


I second third and fourth that

On Nov 5, 2013, at 10:37 AM, James Finnigan 
james.alan.finni...@gmail.commailto:james.alan.finni...@gmail.com wrote:

I have no idea who is still listening to this thread but I think it's time to 
humbly, and gratefully thank Alex for his devotion to Flex and this thread.  
Two years ago our world was shaken and we've all moved onto different (not 
better) things. ;)

Alex has continued to demonstrate and keep his promise in supporting Flex two 
years down the road and will probably continue to monitor these and other 
threads for several more.



Hats off to you Alex!  You are to commended for your devotion and sacrifices to 
our beloved Flex!

James

LongLiveFlex/