[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-27 Thread chigwell23
1. Datagrid displays fine

2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the 
lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by 
myFlexSQL web service against SQLServer2005.

3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 "rows" of data 
that appear in the datagrid.

4. The XMLListCollection format:

lstRepRankDrill (mx.collections.XMLListCollection)
...[0] (XML)
..
.


.
. etc

Code:
- Datagrid declaration


- load XMLListCollection with back end result set
lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results);

- add filter
lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

- filter code
private function filterRepRankDtlChnl(item:XML):Boolean{
...trace(item.toXMLString());
...if(item.results.record.chnl_cd == "PREM") return true;
..else return false;  
}

NOTE: trace(item.toXMLString()); in filter code prints all the data, not just 
one "row". Trace=

item (XML)
...
..
.. etc all 60 of them.

So even though the grid data is fine, the filter is getting passed all the 
data, and the filter gets called once. I wonder if it is because the data is 
hierarchical and there is a discrepancy between the dataprovider and the filter 
owner. The dataprovider is _inside_ the lstRepRankDrill XMLListCollection as 
lstRepRankDrill[0].record. The filter is placed on the outside 
XMLListCollection :

lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

Its almost like where the filter is placed (XMLListCollection rather than 
dataprovider subnode lstRepRankDrill[0].record) is causing all the data to be 
forwarded into filter param item, and passed only once.





--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Lets clarify terminology.  "dataProvider" must always be a list of some
> kind, like an array, and XMLList an ArrayCollection or an XMLListCollection.
> It can not be a single XML node.
> 
>  
> 
> This expression should return an XMLList: lstRepRankDrill[0].record
> 
>  
> 
> If you trace(lstRepRankDrill[0].record.toXMLString());  //what do you see?
> 
>  
> 
> Does your DG display correctly without the filter?
> 
>  
> 
> Post the declaration for the dataGrid.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of chigwell23
> Sent: Thursday, August 27, 2009 2:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
> dataprovider question
> 
>  
> 
>   
> 
> thanks for your time Tracy, yes absolutely the whole shooting match is sent
> to the _one_ call to the function i.e. lstRepRankDrill, which is actually
> more than the dataprovider which is {lstRepRankDrill[0].record}. I know that
> the fact there is only one call to the filter is significant, but do not
> know why, unless it is because I have to put the filter on
> lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is
> hierarchical. Obviously I cannot put the filter on lstRepRankDrill[0].record
> as it is XML and not an XMLListCollection. Am using DG not ADG if that makes
> any difference. Eventually found 2 other Google questions out there with the
> same scenario - one call to the filter with the whole XMLListCollection
> being passed. No answers to them :-(
> 
> --- In flexcod...@yahoogro  ups.com,
> "Tracy Spratt"  wrote:
> >
> > I don't use ADG all that much, but the filter functions should get a
> > "record" node for each call of the filter function. Have you used
> > toXMLString() to trace out the item? Inside the filter function you can
> use
> > any e4x expressions to traverse the xml, down into the child nodes or even
> > up to parent nodes.
> > 
> > 
> > 
> > I am pretty sure you are not getting the entire dataProvider in the
> > function. Do the trace.
> > 
> > 
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> > _ 
> > 
> > From: flexcod...@yahoogro  ups.com
> [mailto:flexcod...@yahoogro  ups.com]
> On
> > Behalf Of chigwell23
> > Sent: Thursday, August 27, 2009 4:25 AM
> > To: flexcod...@yahoogro  ups.com
> > Subject: [flexcoders] Re: Apply filterFunction to datagrid
> XMLListCollection
> > dataprovider question
> > 
> > 
> > 
> > 
> > 
> > I wonder if is even possible to use the filter function with hierarchical
> > XML, as all of the examples I have seen are of array collections or flat
> > XML?
> > 
> > This I think is the problem - the complete data provider is being passed
> > into the item parameter of the filter i.e. the xml hierarchy in its
> > entirety. I am presuming that the filter wants one "row" at a time so it
> can
> > do its compare. Where do I have control of this? I am not sure

RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Gordon Smith
Yes, that is what Alex is saying. Handler B will not begin before handler A 
finishes. Event handlers don't get paused. Furthermore, when you (or the 
Player) calls dispatchEvent(), all the event handlers listening for that event 
execute before dispatchEvent() returns.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jon Gunnip
Sent: Thursday, August 27, 2009 5:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Race conditions when event handlers triggered from 
different targets



Alex,

Thanks. Just to be clear, are you saying that once event handler A'
begins executing, another event handler B' will not begin executing
until A' finishes?

Even in a single-threaded environment, not knowing how the flash
player works, it is possible that the player could decide to "pause"
an executing event handler to allow another to progress. That would
create the scenario I am describing.

Jon

On Thu, Aug 27, 2009 at 6:54 PM, Alex 
Haruimailto:aharui%40adobe.com>> wrote:
> Because actionscript is single-threaded, your scenario cannot happen.
>
> 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 Jon Gunnip
> Sent: Thursday, August 27, 2009 1:49 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Race conditions when event handlers triggered from 
> different targets
>
> Thanks, Tracy. I'm not principally concerned with knowing when two
> operations have completed. I'm more concerned about checking the
> status of a global variable in event handler A' and then having that
> variable's value changed by event handler B' before A' is finished
> executing.  In Java you might use a synchronized block for this.  I
> was hoping the flash player might make some guarantees that make a
> concern like this unnecessary, especially since it executes in a
> single thread.
>
> Are there any resources that describe the internals of the Flash
> player?  Is there a spec like there is for the Java runtime?
>
> Thanks,
> Jon
>
> On Thu, Aug 27, 2009 at 12:44 PM, Tracy 
> Sprattmailto:tracy%40nts3rd.com>> wrote:
>>
>>
>> You can't predict order, but you can be assured that there is no parallel
>> processing of actionscript code.  I don't know the internals of the flash
>> player well enough to say in detail but there are rules that control what
>> code is processed when.
>>
>>
>>
>> If you need to know that two async processes have completed, use a flag or
>> dictionary, set a flag value in each handler, and check it in each handler.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>
>> 
>>
>> From: flexcoders@yahoogroups.com 
>> [mailto:flexcoders@yahoogroups.com] On
>> Behalf Of Jon Gunnip
>> Sent: Thursday, August 27, 2009 10:04 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Race conditions when event handlers triggered from
>> different targets
>>
>>
>>
>>
>>
>> Hi,
>>
>> I have a concern about possible race conditions in our Flex
>> application. I've read in "Essential ActionScript 3.0" that the Flash
>> runtime will not interrupt the execution of an event handler to update
>> the screen. I'm wondering if there are any similar guarantees about
>> the order in which two event handlers registered with different
>> targets are executed. Consider the following:
>>
>> User presses button A triggering event handler A'
>> In same frame, result returned from HTTPService B, triggering event handler
>> B'
>>
>> If A' starts executing before B', will it run to completion before B'
>> starts executing, or could their execution be interleaved?
>>
>> Thanks,
>> Jon
>>
>>
>
>
> 
>
> --
> 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 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: Is there a way to get the original array index of a selection in a datagrid?

2009-08-27 Thread turbo_vb

Hi Paul,

If you use an ArrayCollections as the dataProvider for the DataGrid
instead, you can remove an item like so:

myArrayCollection.removeItemAt( myDataGrid.selectedIndex );

The DataGrid's selectedIndex is the same as the index of the item in the
ArrayCollection.

-TH

--- In flexcoders@yahoogroups.com, "tendancer2000" 
wrote:
>
> I have a datagrid with an Array dataprovider. A user double clicks on
a row which takes them to a new state where they can do things with that
data item including an action that should remove it from the original
array.
>
> I was planning on using the selectedIndex property to index into the
array but I see that is an index into the datagrid, not the original
array.
>
> Since I have the selected Object I can loop around my original array
until I find it, and then remove it, but that's not real efficient. The
better solution is probably to redesign my array, make it associative,
but I am curious to know if there is a way to do it with what there
already is.
>
> Thanks, and thanks to Alex for answering my previous question.
>
> Paul
>




Re: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Jon Gunnip
Alex,

Thanks.  Just to be clear, are you saying that once event handler A'
begins executing, another event handler B' will not begin executing
until A' finishes?

Even in a single-threaded environment, not knowing how the flash
player works, it is possible that the player could decide to "pause"
an executing event handler to allow another to progress.  That would
create the scenario I am describing.

Jon

On Thu, Aug 27, 2009 at 6:54 PM, Alex Harui wrote:
> Because actionscript is single-threaded, your scenario cannot happen.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Jon Gunnip
> Sent: Thursday, August 27, 2009 1:49 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Race conditions when event handlers triggered from 
> different targets
>
> Thanks, Tracy. I'm not principally concerned with knowing when two
> operations have completed. I'm more concerned about checking the
> status of a global variable in event handler A' and then having that
> variable's value changed by event handler B' before A' is finished
> executing.  In Java you might use a synchronized block for this.  I
> was hoping the flash player might make some guarantees that make a
> concern like this unnecessary, especially since it executes in a
> single thread.
>
> Are there any resources that describe the internals of the Flash
> player?  Is there a spec like there is for the Java runtime?
>
> Thanks,
> Jon
>
> On Thu, Aug 27, 2009 at 12:44 PM, Tracy Spratt wrote:
>>
>>
>> You can't predict order, but you can be assured that there is no parallel
>> processing of actionscript code.  I don't know the internals of the flash
>> player well enough to say in detail but there are rules that control what
>> code is processed when.
>>
>>
>>
>> If you need to know that two async processes have completed, use a flag or
>> dictionary, set a flag value in each handler, and check it in each handler.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of Jon Gunnip
>> Sent: Thursday, August 27, 2009 10:04 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Race conditions when event handlers triggered from
>> different targets
>>
>>
>>
>>
>>
>> Hi,
>>
>> I have a concern about possible race conditions in our Flex
>> application. I've read in "Essential ActionScript 3.0" that the Flash
>> runtime will not interrupt the execution of an event handler to update
>> the screen. I'm wondering if there are any similar guarantees about
>> the order in which two event handlers registered with different
>> targets are executed. Consider the following:
>>
>> User presses button A triggering event handler A'
>> In same frame, result returned from HTTPService B, triggering event handler
>> B'
>>
>> If A' starts executing before B', will it run to completion before B'
>> starts executing, or could their execution be interleaved?
>>
>> Thanks,
>> Jon
>>
>>
>
>
> 
>
> --
> 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 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] Is there a way to get the original array index of a selection in a datagrid?

2009-08-27 Thread tendancer2000
I have a datagrid with an Array dataprovider. A user double clicks on a row 
which takes them to a new state where they can do things with that data item 
including an action that should remove it from the original array.

I was planning on using the selectedIndex property to index into the array but 
I see that is an index into the datagrid, not the original array.

Since I have the selected Object I can loop around my original array until I 
find it, and then remove it, but that's not real efficient. The better solution 
is probably to redesign my array, make it associative, but I am curious to know 
if there is a way to do it with what there already is.

Thanks, and thanks to Alex for answering my previous question.

Paul



RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Gordon Smith
> Are there any resources that describe the internals of the Flash player?
> Is there a spec like there is for the Java runtime?

Unfortunately, no. About the closest thing is a spec for the SWF file format. 
But that spec doesn't really explain how the Player loads and executes a SWF 
file.

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, August 27, 2009 3:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Race conditions when event handlers triggered from 
different targets



Because actionscript is single-threaded, your scenario cannot happen.

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 Jon Gunnip
Sent: Thursday, August 27, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Race conditions when event handlers triggered from 
different targets

Thanks, Tracy. I'm not principally concerned with knowing when two
operations have completed. I'm more concerned about checking the
status of a global variable in event handler A' and then having that
variable's value changed by event handler B' before A' is finished
executing. In Java you might use a synchronized block for this. I
was hoping the flash player might make some guarantees that make a
concern like this unnecessary, especially since it executes in a
single thread.

Are there any resources that describe the internals of the Flash
player? Is there a spec like there is for the Java runtime?

Thanks,
Jon

On Thu, Aug 27, 2009 at 12:44 PM, Tracy 
Sprattmailto:tracy%40nts3rd.com>> wrote:
>
>
> You can't predict order, but you can be assured that there is no parallel
> processing of actionscript code.  I don't know the internals of the flash
> player well enough to say in detail but there are rules that control what
> code is processed when.
>
>
>
> If you need to know that two async processes have completed, use a flag or
> dictionary, set a flag value in each handler, and check it in each handler.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On
> Behalf Of Jon Gunnip
> Sent: Thursday, August 27, 2009 10:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Race conditions when event handlers triggered from
> different targets
>
>
>
>
>
> Hi,
>
> I have a concern about possible race conditions in our Flex
> application. I've read in "Essential ActionScript 3.0" that the Flash
> runtime will not interrupt the execution of an event handler to update
> the screen. I'm wondering if there are any similar guarantees about
> the order in which two event handlers registered with different
> targets are executed. Consider the following:
>
> User presses button A triggering event handler A'
> In same frame, result returned from HTTPService B, triggering event handler
> B'
>
> If A' starts executing before B', will it run to completion before B'
> starts executing, or could their execution be interleaved?
>
> Thanks,
> Jon
>
>



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



RE: [flexcoders] horizontallist scrolltoindex question

2009-08-27 Thread Alex Harui
increment horizontalScrollPosition?

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 fotis.chatzinikos
Sent: Thursday, August 27, 2009 4:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] horizontallist scrolltoindex question



Any ideas how to simulate scroll bar arrow clicks? I.E. moving a lists element 
one - by - one and not by 'page' as scrolltoindex does.

By page i mean the following:
list contains 5 elements
scroll to index 0->5 does nothing visually, while scroll to index 6 brings 6 as 
the first element and you can see 7,8,9 and 10

The strange thing is that moving backwords works perfectly ok...

So, anyway to make this :

1 2 3 4 5 --> into --> 2 3 4 5 6

?
Thanks,
Fotis



[flexcoders] horizontallist scrolltoindex question

2009-08-27 Thread fotis.chatzinikos
Any ideas how to simulate scroll bar arrow clicks? I.E. moving a lists element 
one - by - one and not by 'page' as scrolltoindex does.

By page i mean the following:
list contains 5 elements
scroll to index 0->5 does nothing visually, while scroll to index 6 brings 6 as 
the first element and you can see 7,8,9 and 10

The strange thing is that moving backwords works perfectly ok...

So, anyway to make this :

1 2 3 4 5 --> into --> 2 3 4 5 6

?
Thanks,
Fotis



Re: [flexcoders] how to wait for one event to finish?

2009-08-27 Thread coder3

i see that you create a singlton to dispatch and addeventlistener. that makes
sense.

but what is this class EventListener?

thanks!!

c



nathanleewei-2 wrote:
> 
> public class MessageEventBus extends EventListener {
> public static getInstance(): MessageEventBus {
> 
> }
> }
> //
> public class ParentApplication {
> var messageEventBus:MessageEventBus = MessageEventBus.getInstance();
> public ParentApplication {
>
> }
> 
> public function onHttpServiceResult(event:ResultEvent):void {
> //...
> //...
> messageEventBus.dispatchEvent(new
> Event("ParentApplicationFinish"));
> }
> }
> 
> 
> //
> public class AModule {
> var messageEventBus:MessageEventBus = MessageEventBus.getInstance();
> public ParentApplication {
>messageEventBus.addEventListener("ParentApplicationFinish",
> onParentApplicationFinish);
> }
> public function onParentApplicationFinish(event.Event):void {
> //do what you want.
> }
> }
> 
> 
> 
> --- In flexcoders@yahoogroups.com, coder3  wrote:
>>
>> 
>> Hi
>> 
>> I have a module, that needs to wait for the parentApplication to finish
>> the
>> httpservice so that it can get the data and do some stuff.
>> 
>> so the httpservice has a result handling function, 
>> 
>> how can the module know when to get the result? i guess i need to use
>> eventlistener, how?
>> 
>> thanks!
>> c
>> 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/how-to-wait-for-one-event-to-finish--tp25067200p25067200.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-wait-for-one-event-to-finish--tp25067200p25181436.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] SWF File Not Loading

2009-08-27 Thread Alex Harui
You can add trace statements to the app to see if it does load or not

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 Angelo Anolin
Sent: Wednesday, August 26, 2009 11:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWF File Not Loading


Hi FlexCoders,

Got a question again.

I am embedding my SWF object in an ASPX page.

The HTML markup for the aspx page is shown as below:

http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";
height='100%'
width='100%'>


http://www.adobe.com/go/getflashplayer";
   type="application/x-shockwave-flash"
   height="100%"
   width="100%"
   flashVars="">



When I run the page, the SWF file is not loading.  I think the embedded SWF 
object itself is not being rendered.
I tried to simulate the same on another site I have and when the SWF file is 
not present, right clicking on the page (where the SWF is embedded) will give a 
context menu informing user that Movie is not loaded.
I wonder why when I try to embed the same on another page, the embedded object 
is not there.
I tried to view the source and in the HTML markup, the object should be there.
* This is from the View Source
http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";
height="88%"
width='100%'>


http://www.adobe.com/go/getflashplayer";
   type="application/x-shockwave-flash"
   height="88%"
   width="100%"
   flashVars="">


Appreciate your inputs. Thanks.

start: -00-00 end: -00-00



RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Alex Harui
Because actionscript is single-threaded, your scenario cannot happen.

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


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jon Gunnip
Sent: Thursday, August 27, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Race conditions when event handlers triggered from 
different targets

Thanks, Tracy. I'm not principally concerned with knowing when two
operations have completed. I'm more concerned about checking the
status of a global variable in event handler A' and then having that
variable's value changed by event handler B' before A' is finished
executing.  In Java you might use a synchronized block for this.  I
was hoping the flash player might make some guarantees that make a
concern like this unnecessary, especially since it executes in a
single thread.

Are there any resources that describe the internals of the Flash
player?  Is there a spec like there is for the Java runtime?

Thanks,
Jon

On Thu, Aug 27, 2009 at 12:44 PM, Tracy Spratt wrote:
>
>
> You can't predict order, but you can be assured that there is no parallel
> processing of actionscript code.  I don't know the internals of the flash
> player well enough to say in detail but there are rules that control what
> code is processed when.
>
>
>
> If you need to know that two async processes have completed, use a flag or
> dictionary, set a flag value in each handler, and check it in each handler.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jon Gunnip
> Sent: Thursday, August 27, 2009 10:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Race conditions when event handlers triggered from
> different targets
>
>
>
>
>
> Hi,
>
> I have a concern about possible race conditions in our Flex
> application. I've read in "Essential ActionScript 3.0" that the Flash
> runtime will not interrupt the execution of an event handler to update
> the screen. I'm wondering if there are any similar guarantees about
> the order in which two event handlers registered with different
> targets are executed. Consider the following:
>
> User presses button A triggering event handler A'
> In same frame, result returned from HTTPService B, triggering event handler
> B'
>
> If A' starts executing before B', will it run to completion before B'
> starts executing, or could their execution be interleaved?
>
> Thanks,
> Jon
>
> 




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





RE: [flexcoders] use combobox itemrenderer in stead of textinput

2009-08-27 Thread Alex Harui
Try using colorpicker.

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 Webdevotion
Sent: Thursday, August 27, 2009 12:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] use combobox itemrenderer in stead of textinput


Hello,

I have a combobox using an itemrenderer.
On change I want to display the same itemrenderer ( class )
as the selected item in the combobox.

e.g.:
a combobox with a colors list
on change: show the selected color in stead of the color value

Hope it makes sense : )

Thanks!




Re: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Jon Gunnip
Thanks, Tracy. I'm not principally concerned with knowing when two
operations have completed. I'm more concerned about checking the
status of a global variable in event handler A' and then having that
variable's value changed by event handler B' before A' is finished
executing.  In Java you might use a synchronized block for this.  I
was hoping the flash player might make some guarantees that make a
concern like this unnecessary, especially since it executes in a
single thread.

Are there any resources that describe the internals of the Flash
player?  Is there a spec like there is for the Java runtime?

Thanks,
Jon

On Thu, Aug 27, 2009 at 12:44 PM, Tracy Spratt wrote:
>
>
> You can’t predict order, but you can be assured that there is no parallel
> processing of actionscript code.  I don’t know the internals of the flash
> player well enough to say in detail but there are rules that control what
> code is processed when.
>
>
>
> If you need to know that two async processes have completed, use a flag or
> dictionary, set a flag value in each handler, and check it in each handler.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jon Gunnip
> Sent: Thursday, August 27, 2009 10:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Race conditions when event handlers triggered from
> different targets
>
>
>
>
>
> Hi,
>
> I have a concern about possible race conditions in our Flex
> application. I've read in "Essential ActionScript 3.0" that the Flash
> runtime will not interrupt the execution of an event handler to update
> the screen. I'm wondering if there are any similar guarantees about
> the order in which two event handlers registered with different
> targets are executed. Consider the following:
>
> User presses button A triggering event handler A'
> In same frame, result returned from HTTPService B, triggering event handler
> B'
>
> If A' starts executing before B', will it run to completion before B'
> starts executing, or could their execution be interleaved?
>
> Thanks,
> Jon
>
> 




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



Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-27 Thread Doug McCune
Entering your license key into FB was supposed to automatically run the
extraction too (although sometimes this didn't work and you had to manually
run the extraction to get at the source). But yeah, now it seems like you
just download the 3.4 DMV zip file from the official adobe website.

On Thu, Aug 27, 2009 at 2:08 PM, tntomek  wrote:

>
>
> --- In flexcoders@yahoogroups.com , Jeffry
> Houser  wrote:
> >
> >
> > But, if I have the ActionScript source code why would I need to do
> > that? Can't I just compile my own swc?
> >
> > I feel like I'm missing a piece of the puzzle.
> >
> >
> > tntomek wrote:
> > >
> > >
> > >
> > > Previously for 3.3 you had to run a java command that looked at your
> > > flex builder license file
> > >
> > >
> >
> > --
> > 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
> >
>
> Prior to 3.4 you didnt have the source code until you ran the java
> encrypted extract
>
>  
>


[flexcoders] Re: Flex DMV 3.4.0

2009-08-27 Thread tntomek
--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
> 
>   But, if I have the ActionScript source code why would I need to do 
> that?  Can't I just compile my own swc? 
> 
>  I feel like I'm missing a piece of the puzzle. 
> 
> 
> tntomek wrote:
> >  
> >
> >
> > Previously for 3.3 you had to run a java command that looked at your 
> > flex builder license file
> >
> > 
> 
> -- 
> 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
>

Prior to 3.4 you didnt have the source code until you ran the java encrypted 
extract



Re: [flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-27 Thread Satish Chowdary
Thanks Tim now its working thanks a lot

 సతీష్





From: turbo_vb 
To: flexcoders@yahoogroups.com
Sent: Thursday, 27 August, 2009 12:48:00 PM
Subject: [flexcoders] Re: Data Grid ShowHeaders property problem

  

I'm sure that you tried this yourself, but take out showHeaders= "false"
and leave in headerHeight= "0"..

-TH

--- In flexcod...@yahoogro ups.com, Satish Chowdary 
wrote:
>
> HiTimHoff,
>
> I tried with headerHeight = "0", but it still throws the error
>
> here is my piece of code...for better understanding. ..
>
> and please let me know where i can make changes to achieve this..
>
>  headerHeight= "0" showHeaders= "false"
> height="100% " width="100%" backgroundColor= "#F4F4E9"
variableRowHeight= "true" verticalScrollPolic y="off">
> 
>  editorDataField= "selected" rendererIsEditor= "true"
backgroundColor= "#F4F4E9" >
> 
> 
> 
> 
> 
> 
>  dataField="@ name"
> wordWrap="true"
> backgroundColor= "#F4F4E9"
> headerStyleName= "hdrVerdana" fontFamily=" verdanaSoft" fontSize="10"
letterSpacing= "0.5">
> 
> 
> 
>
>
>
>
> Thanks inAdvance
> Satish
> సతీష్
>
>
>
>
>  _ _ __
> From: turbo_vb timh...@...
> To: flexcod...@yahoogro ups.com
> Sent: Wednesday, 26 August, 2009 5:24:09 PM
> Subject: [flexcoders] Re: Data Grid ShowHeaders property problem
>
>
>
> Hi Satish,
>
> You can use headerHeight= "0"; to hide the DataGrid headers.
>
> -TH
>
> --- In flexcod...@yahoogro ups.com, Satish Chowdary 
> wrote:
> >
> > Hi All,
> >
> > i am trying to disable datagrid column headers so i use showheader
> property
> > but it gives the following Error.
> > it throws following Error
> > Error #1010: A term is undefined and has no properties.
> >
> > Any Idea to resolve this
> >
> >
> > Thanks inAdvacne
> > Satish
> > సతీష్
> >
> >
> >
> > See the Web's breaking stories, chosen by people like you. Check
> out Yahoo! Buzz. http://in.buzz. yahoo.com/
> >
>
>
>
>
>
> See the Web's breaking stories, chosen by people like you. Check
out Yahoo! Buzz. http://in.buzz. yahoo.com/
>


   


  Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com

RE: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-27 Thread Tracy Spratt
Lets clarify terminology.  "dataProvider" must always be a list of some
kind, like an array, and XMLList an ArrayCollection or an XMLListCollection.
It can not be a single XML node.

 

This expression should return an XMLList: lstRepRankDrill[0].record

 

If you trace(lstRepRankDrill[0].record.toXMLString());  //what do you see?

 

Does your DG display correctly without the filter?

 

Post the declaration for the dataGrid.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of chigwell23
Sent: Thursday, August 27, 2009 2:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
dataprovider question

 

  

thanks for your time Tracy, yes absolutely the whole shooting match is sent
to the _one_ call to the function i.e. lstRepRankDrill, which is actually
more than the dataprovider which is {lstRepRankDrill[0].record}. I know that
the fact there is only one call to the filter is significant, but do not
know why, unless it is because I have to put the filter on
lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is
hierarchical. Obviously I cannot put the filter on lstRepRankDrill[0].record
as it is XML and not an XMLListCollection. Am using DG not ADG if that makes
any difference. Eventually found 2 other Google questions out there with the
same scenario - one call to the filter with the whole XMLListCollection
being passed. No answers to them :-(

--- In flexcod...@yahoogro  ups.com,
"Tracy Spratt"  wrote:
>
> I don't use ADG all that much, but the filter functions should get a
> "record" node for each call of the filter function. Have you used
> toXMLString() to trace out the item? Inside the filter function you can
use
> any e4x expressions to traverse the xml, down into the child nodes or even
> up to parent nodes.
> 
> 
> 
> I am pretty sure you are not getting the entire dataProvider in the
> function. Do the trace.
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of chigwell23
> Sent: Thursday, August 27, 2009 4:25 AM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Re: Apply filterFunction to datagrid
XMLListCollection
> dataprovider question
> 
> 
> 
> 
> 
> I wonder if is even possible to use the filter function with hierarchical
> XML, as all of the examples I have seen are of array collections or flat
> XML?
> 
> This I think is the problem - the complete data provider is being passed
> into the item parameter of the filter i.e. the xml hierarchy in its
> entirety. I am presuming that the filter wants one "row" at a time so it
can
> do its compare. Where do I have control of this? I am not sure I do since
> the only code is
> 
> lstRepRankDrill.filterFunction = filterRepRankDtlChnl;
> 
> The data provider is
> 
> dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML
> hierarchy to get to the data. (Wrapper nodes are returned by SQL back end.

> 
> --- In flexcod...@yahoogro  ups.com,
> "Tracy Spratt"  wrote:
> >
> > Break the code into smaller pieces and debug to see what is wrong.
> > 
> > 
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> > _ 
> > 
> > From: flexcod...@yahoogro  ups.com
> [mailto:flexcod...@yahoogro  ups.com]
> On
> > Behalf Of chigwell23
> > Sent: Thursday, August 27, 2009 2:40 AM
> > To: flexcod...@yahoogro  ups.com
> > Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection
> > dataprovider question
> > 
> > 
> > 
> > 
> > 
> > private function filterRepRankDtlChnl(item:Object):Boolean{
> > if(item.results.record.chnl_cd == "PREM") return true;
> > else return false; 
> > }
> > 
> > Filter is not filtering and I think it maybe item.results.record.chnl_cd
-
> > the item:Object is in this format:
> > 
> > item
> > ...
> > ..
> > .
> > . etc
> > 
> > What is the correct "path" for chnl_cd and might this be the problem?
TIA,
> > 
> > Mic.
> >
>





[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-27 Thread chigwell23
thanks for your time Tracy, yes absolutely the whole shooting match is sent to 
the _one_ call to the function i.e. lstRepRankDrill, which is actually more 
than the dataprovider which is {lstRepRankDrill[0].record}. I know that the 
fact there is only one call to the filter is significant, but do not know why, 
unless it is because I have to put the filter on lstRepRankDrill.filterFunction 
= filterRepRankDtlChnl; and it is hierarchical. Obviously I cannot put the 
filter on lstRepRankDrill[0].record as it is XML and not an XMLListCollection. 
Am using DG not ADG if that makes any difference.  Eventually found 2 other 
Google questions out there with the same scenario - one call to the filter with 
the whole XMLListCollection being passed. No answers to them :-(

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> I don't use ADG all that much, but the filter functions should get a
> "record" node for each call of the filter function.  Have you used
> toXMLString() to trace out the item?  Inside the filter function you can use
> any e4x expressions to traverse the xml, down into the child nodes or even
> up to parent nodes.
> 
>  
> 
> I am pretty sure you are not getting the entire dataProvider in the
> function.  Do the trace.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of chigwell23
> Sent: Thursday, August 27, 2009 4:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
> dataprovider question
> 
>  
> 
>   
> 
> I wonder if is even possible to use the filter function with hierarchical
> XML, as all of the examples I have seen are of array collections or flat
> XML?
> 
> This I think is the problem - the complete data provider is being passed
> into the item parameter of the filter i.e. the xml hierarchy in its
> entirety. I am presuming that the filter wants one "row" at a time so it can
> do its compare. Where do I have control of this? I am not sure I do since
> the only code is
> 
> lstRepRankDrill.filterFunction = filterRepRankDtlChnl;
> 
> The data provider is
> 
> dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML
> hierarchy to get to the data. (Wrapper nodes are returned by SQL back end. 
> 
> --- In flexcod...@yahoogro  ups.com,
> "Tracy Spratt"  wrote:
> >
> > Break the code into smaller pieces and debug to see what is wrong.
> > 
> > 
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> > _ 
> > 
> > From: flexcod...@yahoogro  ups.com
> [mailto:flexcod...@yahoogro  ups.com]
> On
> > Behalf Of chigwell23
> > Sent: Thursday, August 27, 2009 2:40 AM
> > To: flexcod...@yahoogro  ups.com
> > Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection
> > dataprovider question
> > 
> > 
> > 
> > 
> > 
> > private function filterRepRankDtlChnl(item:Object):Boolean{
> > if(item.results.record.chnl_cd == "PREM") return true;
> > else return false; 
> > }
> > 
> > Filter is not filtering and I think it maybe item.results.record.chnl_cd -
> > the item:Object is in this format:
> > 
> > item
> > ...
> > ..
> > .
> > . etc
> > 
> > What is the correct "path" for chnl_cd and might this be the problem? TIA,
> > 
> > Mic.
> >
>




Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-27 Thread Jeffry Houser


 But, if I have the ActionScript source code why would I need to do 
that?  Can't I just compile my own swc? 

I feel like I'm missing a piece of the puzzle. 



tntomek wrote:
 



Previously for 3.3 you had to run a java command that looked at your 
flex builder license file





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



Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Beau Scott
All this said... there are hacky ways to visually emulate it... It's
effectively the same as using separate methods, but visually looks like what
you're after. There are some scope caveats to it ("this" references the
global scope rather than the current class, duplicate named variables are
overwritten to local scope), and potentially some memory clean up issues
(anonymous functions are tricky to GC).



http://www.adobe.com/2006/mxml";
layout="absolute"
dragEnter="dragEntered(event)" dragDrop="dragDropped(event)">









So basically what you're doing here is using an inline anonymous function as
the close handler for the alert box. The trick as I tried to point out in
the code comment is referenced values that might change between the outer
procedure execution time and when the anonymous function is executed should
be initialized outside of the anonymous function. In this case, I need to
calculate the X/Y drop coords because by the time the close handler is
executed, my mouse position relative to the object I dropped will have
changed as I move to hit "YES", so I calculate the value at the time of the
drop and then reference that inside the closure.


Hope this helps.

Beau



On Thu, Aug 27, 2009 at 10:35 AM, Tracy Spratt  wrote:

>
>
>  Flex procedural code is essentially single threaded.  The loop will stop
> all other processing, the handler will never get called, and the loop will
> never stop.
>
>
>
> There is NO sleep or delay or pause or anything like that in Flex.  You
> must use events.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nick Middleweek
> *Sent:* Thursday, August 27, 2009 6:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script
> Execution + Alert.show
>
>
>
>
>
> Why won't it work? I can't see why it wouldn't... I'm still learning Flex
> so perhaps I've overlooked something.
>
> I do agree, it is bad coding but I can't see why it wouldn't work.
>
> The boolAlertContinue variable is in affect acting like semaphore...
>
>
> Cheers,
> Nick
>
>
>
>  2009/8/27 Tracy Spratt 
>
>
>
> No, no, no, this will not work.  You must use the event mechanism.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nick Middleweek
> *Sent:* Wednesday, August 26, 2009 7:33 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution +
> Alert.show
>
>
>
>
>
> I'm not sure if this technique is frowned upon but...
>
>
> You could have a new private var boolAlertContinue:Boolean = false;
>
> In your alertHandler function, you would set it to true... boolAlertContinue
> = true;
>
> And after the Alert.show and before the if(myAlert == 1) you need to do a
> do while loop...
>
> do {
>
>
>   //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just 
> check the time...
>
>
>
>
>
>   var dtmNow:Date = new Date();
>
>
> }
>
>
> while (boolAlertContinue);
>
>
> or you could probably initialise your myAlert:int = null and in the do ...
> while loop check for (myAlert != null)
>
>
> Cheers,
> Nick
>
>
>  2009/8/26 Angelo Anolin 
>
>
>
> Hi FlexCoders,
>
> This has puzzled me a bit..
>
> I have the following scripts in my application:
>
> private var myAlert:int;
>
> private function testFunction(evt:Event):void
> {
>   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
> alertHandler, null, Alert.YES);
>
>   if(myAlert == 1)
>   {
> // Do Something here
>   }
>   else
>   {
> // Do other thing here
>   }
> }
>
> Private function alertHandler(evt:CloseEvent)
> {
>   if(evt.Detail == Alert.YES)
>   {
> myAlert = 1;
>   }
>   else
>   {
> myAlert = -1;
>   }
> }
>
> Now, what puzzles me is that the script after the Alert.show is triggered,
> the scripts following it are also triggered.
>
> Is there a way to ensure that the script following the Alert.show alert box
> would only be executed after the Yes or No buttons has been pressed?
>
> I won't be able to move the scripts after the Alert.show script to the
> alertHandler event since there are some objects being set / modified prior
> to the alert being called.
>
> Inputs highly appreciated.
>
> Thanks.
>
>
>
>
>   
>



-- 
Beau D. Scott
Software Engineer


[flexcoders] Re: Flex DMV 3.4.0

2009-08-27 Thread tntomek
--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
> 
>  Does DMV refer to the data visualization package?  IF so, what does the 
> M stand for?
> 
>  I didn't see any news about it becoming available for free either.  For 
> the record, I checked my Flex Builder 3 install and the source code for 
> the Data Visulization components is available in the 'pro' add ons to my 
> Flex 3.2 SDK. 
> 
>  I wonder how Adobe enforced the watermark if all source has been 
> available. 
> 
> Igor Costa wrote:
> >  
> > Here
> >  
> >  
> >  
> > http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk 
> > 
> >  
> >  
> >  
> > Is really open-source? Didn't saw any official news.
> >  
> >  
> > Regards
> > Igor
> >
> > On Thu, Aug 27, 2009 at 1:21 PM, Battershall, Jeff 
> > mailto:jeff.battersh...@...>> 
> > wrote:
> >
> >  
> >
> > Where is DMV 3.4.0 available for download?
> >
> >  
> >
> > 
> >
> > *From:* flexcoders@yahoogroups.com
> > 
> > [mailto:flexcoders@yahoogroups.com
> > ] *On Behalf Of *Tom Chiverton
> > *Sent:* Thursday, August 27, 2009 11:14 AM
> > *To:* flexcoders@yahoogroups.com 
> > *Cc:* Matt Chotin
> > *Subject:* Re: [flexcoders] Flex DMV 3.4.0
> >
> >  
> >
> >
> >
> > On Thursday 27 Aug 2009, Mika Kiljunen wrote:
> > > Hi,
> > > I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I
> > compared
> > > the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to
> > nothing has
> > > changed. For example even a closed bug from Adobe Bug Issue
> > Management
> > > System that was supposed to be fixed in April are not included in
> > DMV 3.4.0
> > > (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
> > 
> >
> > Hmm, it seems so.
> > 
> > ...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as
> >
> > still says:
> > /**
> > * @private
> > */
> > public function findAny(values:Object):Boolean
> > and the done flag is still set incorrectly.
> >
> > I've commented the bug, hopefully Sameer will explain what was
> > changed,
> > although a trivial 'diff' shows now change in the file against the
> > DV for
> > v3.3 or 3.2.
> >
> > -- 
> > Helping to proactively drive synergistic principle-centered total
> > markets as
> > part of the IT team of the year, '09 and '08
> >
> > 
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in
> > England and Wales under registered number OC307980 whose
> > registered office address is at Halliwells LLP, 3 Hardman Square,
> > Spinningfields, Manchester, M3 3EB. A list of members is available
> > for inspection at the registered office together with a list of
> > those non members who are referred to as partners. We use the word
> > ?partner? to refer to a member of the LLP, or an employee or
> > consultant with equivalent standing and qualifications. Regulated
> > by the Solicitors Regulation Authority.
> >
> > CONFIDENTIALITY
> >
> > This email is intended only for the use of the addressee named
> > above and may be confidential or legally privileged. If you are
> > not the addressee you must not read it and must not use any
> > information contained in nor copy it nor inform any person other
> > than Halliwells LLP or the addressee of its existence or contents.
> > If you have received this email in error please delete it and
> > notify Halliwells LLP IT Department on 0870 365 2500.
> >
> > For more information about Halliwells LLP visit
> > *www.Halliwells.com* .
> >
> >
> >
> >
> >
> > -- 
> > 
> > Igor Costa
> > www.igorcosta.com 
> > www.igorcosta.org 
> > 
> 
> -- 
> 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
>

Previously for 3.3 you had to run a java command that looked at your flex 
builder license file



Re: [Spam] RE: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Samuel Colak

Nick

There is a way to achieve what you are doing... Without hogging CPU  
cycles...


callLater(method:Function, args:Array)

This executes on the next redraw cycle. In effect its a cheap way to  
incur a "Mutliwait" facility.


So to do what you are thinking about... You could do...

var _checkCondition:Boolean = false;

protected function __checkCondition():void {
if (!_checkCondition) {
callLater(__checkCondition);
else {
__executeThisWhenImTrue();
}
}

protected function __executeThisWhenImTrue():void {
trace("yahooo");
}

public init():void {
__checkCondition();
}

Obviously, an external function would set the value of  
_checkCondition... But this isnt a CPU hog and achieves (i think) what  
you are after. You could also just use a timer of course...


The great thing about the timer option is that obviously it is  
possible to abort easily.. Using callLater, you'd have to be very  
careful but its nicer as u can gaurentee that updates occur on the  
next frame-draw.


var _timer:Timer = new Timer(1000,1);
var _checkCondition:Boolean = false;

_timer.addEventListener(__checkCondition, false, 0, true);

protected function __checkCondition(_event:TimerEvent=null):void {
if (_checkCondition) {
__executeThisWhenImTrue();
} else {
_timer.reset();
_timer.start();
}
}

protected function __executeThisWhenImTrue():void {
trace("yahooo");
}

public function init():void {
_timer.start(); 
}

Hope you have fun...

Regards,
Samuel


On Aug 27, 2009, at 7:00 PM, Nick Middleweek wrote:


Tracy/ Beau...

Thanks for your replies...That's helped me understand how things  
work a bit more...


I'm going to try it though! haha :-)


Cheers,
Nick




2009/8/27 Tracy Spratt 


Flex procedural code is essentially single threaded.  The loop will  
stop all other processing, the handler will never get called, and  
the loop will never stop.



There is NO sleep or delay or pause or anything like that in Flex.   
You must use events.



Tracy Spratt,

Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Nick Middleweek

Sent: Thursday, August 27, 2009 6:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script  
Execution + Alert.show




Why won't it work? I can't see why it wouldn't... I'm still learning  
Flex so perhaps I've overlooked something.


I do agree, it is bad coding but I can't see why it wouldn't work.

The boolAlertContinue variable is in affect acting like semaphore...


Cheers,
Nick



2009/8/27 Tracy Spratt 


No, no, no, this will not work.  You must use the event mechanism.


Tracy Spratt,

Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Nick Middleweek

Sent: Wednesday, August 26, 2009 7:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [Spam] [flexcoders] Question on Flex Script Execution +  
Alert.show




I'm not sure if this technique is frowned upon but...


You could have a new private var boolAlertContinue:Boolean = false;

In your alertHandler function, you would set it to true...  
boolAlertContinue = true;


And after the Alert.show and before the if(myAlert == 1) you need to  
do a do while loop...


do {




  //Not sure if there's a 'dummy' command to prevent CPU hog so  
we'll just check the time...










  var dtmNow:Date = new Date();




}




while (boolAlertContinue);

or you could probably initialise your myAlert:int = null and in the  
do ..






Disclaimer
_
The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by 
persons or entities
other than the intended recipient is prohibited. If you received this in error, 
please contact the
sender and delete the material from your computer. Thank you.

Re: [Spam] RE: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Nick Middleweek
Tracy/ Beau...

Thanks for your replies...That's helped me understand how things work a bit
more...

I'm going to try it though! haha :-)


Cheers,
Nick



2009/8/27 Tracy Spratt 

>
>
>  Flex procedural code is essentially single threaded.  The loop will stop
> all other processing, the handler will never get called, and the loop will
> never stop.
>
>
>
> There is NO sleep or delay or pause or anything like that in Flex.  You
> must use events.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nick Middleweek
> *Sent:* Thursday, August 27, 2009 6:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script
> Execution + Alert.show
>
>
>
>
>
> Why won't it work? I can't see why it wouldn't... I'm still learning Flex
> so perhaps I've overlooked something.
>
> I do agree, it is bad coding but I can't see why it wouldn't work.
>
> The boolAlertContinue variable is in affect acting like semaphore...
>
>
> Cheers,
> Nick
>
>
>
>  2009/8/27 Tracy Spratt 
>
>
>
> No, no, no, this will not work.  You must use the event mechanism.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nick Middleweek
> *Sent:* Wednesday, August 26, 2009 7:33 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution +
> Alert.show
>
>
>
>
>
> I'm not sure if this technique is frowned upon but...
>
>
> You could have a new private var boolAlertContinue:Boolean = false;
>
> In your alertHandler function, you would set it to true... boolAlertContinue
> = true;
>
> And after the Alert.show and before the if(myAlert == 1) you need to do a
> do while loop...
>
> do {
>
>   //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just 
> check the time...
>
>
>
>   var dtmNow:Date = new Date();
>
> }
>
> while (boolAlertContinue);
>
>
> or you could probably initialise your myAlert:int = null and in the do ...
> while loop check for (myAlert != null)
>
>
> Cheers,
> Nick
>
>
>  2009/8/26 Angelo Anolin 
>
>
>
> Hi FlexCoders,
>
> This has puzzled me a bit..
>
> I have the following scripts in my application:
>
> private var myAlert:int;
>
> private function testFunction(evt:Event):void
> {
>   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
> alertHandler, null, Alert.YES);
>
>   if(myAlert == 1)
>   {
> // Do Something here
>   }
>   else
>   {
> // Do other thing here
>   }
> }
>
> Private function alertHandler(evt:CloseEvent)
> {
>   if(evt.Detail == Alert.YES)
>   {
> myAlert = 1;
>   }
>   else
>   {
> myAlert = -1;
>   }
> }
>
> Now, what puzzles me is that the script after the Alert.show is triggered,
> the scripts following it are also triggered.
>
> Is there a way to ensure that the script following the Alert.show alert box
> would only be executed after the Yes or No buttons has been pressed?
>
> I won't be able to move the scripts after the Alert.show script to the
> alertHandler event since there are some objects being set / modified prior
> to the alert being called.
>
> Inputs highly appreciated.
>
> Thanks.
>
>
>
>
>   
>


Re: [flexcoders] Flex DMV 3.4.0

2009-08-27 Thread Jeffry Houser


Does DMV refer to the data visualization package?  IF so, what does the 
M stand for?


I didn't see any news about it becoming available for free either.  For 
the record, I checked my Flex Builder 3 install and the source code for 
the Data Visulization components is available in the 'pro' add ons to my 
Flex 3.2 SDK. 

I wonder how Adobe enforced the watermark if all source has been 
available. 


Igor Costa wrote:
 
Here
 
 
 
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk 

 
 
 
Is really open-source? Didn't saw any official news.
 
 
Regards

Igor

On Thu, Aug 27, 2009 at 1:21 PM, Battershall, Jeff 
mailto:jeff.battersh...@dowjones.com>> 
wrote:


 


Where is DMV 3.4.0 available for download?

 




*From:* flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com
] *On Behalf Of *Tom Chiverton
*Sent:* Thursday, August 27, 2009 11:14 AM
*To:* flexcoders@yahoogroups.com 
*Cc:* Matt Chotin
*Subject:* Re: [flexcoders] Flex DMV 3.4.0

 




On Thursday 27 Aug 2009, Mika Kiljunen wrote:
> Hi,
> I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I
compared
> the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to
nothing has
> changed. For example even a closed bug from Adobe Bug Issue
Management
> System that was supposed to be fixed in April are not included in
DMV 3.4.0
> (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)


Hmm, it seems so.

...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as

still says:
/**
* @private
*/
public function findAny(values:Object):Boolean
and the done flag is still set incorrectly.

I've commented the bug, hopefully Sameer will explain what was
changed,
although a trivial 'diff' shows now change in the file against the
DV for
v3.3 or 3.2.

-- 
Helping to proactively drive synergistic principle-centered total

markets as
part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose
registered office address is at Halliwells LLP, 3 Hardman Square,
Spinningfields, Manchester, M3 3EB. A list of members is available
for inspection at the registered office together with a list of
those non members who are referred to as partners. We use the word
?partner? to refer to a member of the LLP, or an employee or
consultant with equivalent standing and qualifications. Regulated
by the Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named
above and may be confidential or legally privileged. If you are
not the addressee you must not read it and must not use any
information contained in nor copy it nor inform any person other
than Halliwells LLP or the addressee of its existence or contents.
If you have received this email in error please delete it and
notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit
*www.Halliwells.com* .





--

Igor Costa
www.igorcosta.com 
www.igorcosta.org 



--
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: Line and area chart on the same coordinate system?

2009-08-27 Thread jer_ela
You can add line series to an area chart, but you are better off using
 a cartesian chart as it doesn't have any functionalities are are chart type 
specific that can cause problems.  Be aware that if the area series are going 
to be stacked, that you need to put them in an AreaSet, or they will not play 
nice with the line series.
 
--- In flexcoders@yahoogroups.com, |Mirko  wrote:
>
> 
> Hi,
> 
> What i would like to do is display both area and line chart on the same
> graph with same coordinate axis but not sure if that's possible and how to
> do it. I googled a bit but couldn't find any useful example so if someone
> can give me few hints or maybe provide an example i would really appreciate
> it?
> 
> Thanks in advance,
> Best regards
> -- 
> View this message in context: 
> http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp25167662p25167662.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-27 Thread turbo_vb

I'm sure that you tried this yourself, but take out showHeaders="false"
and leave in headerHeight="0".

-TH

--- In flexcoders@yahoogroups.com, Satish Chowdary 
wrote:
>
> HiTimHoff,
>
> I tried with headerHeight = "0", but it still throws the error
>
> here is my piece of code...for better understanding...
>
> and please let me know where i can make changes to achieve this..
>
>  headerHeight="0" showHeaders="false"
> height="100%" width="100%" backgroundColor="#F4F4E9"
variableRowHeight="true" verticalScrollPolicy="off">
> 
>  editorDataField="selected" rendererIsEditor="true"
backgroundColor="#F4F4E9">
> 
> 
> 
> 
> 
> 
>  dataField="@name"
> wordWrap="true"
> backgroundColor="#F4F4E9"
> headerStyleName="hdrVerdana" fontFamily="verdanaSoft" fontSize="10"
letterSpacing="0.5">
> 
> 
> 
>
>
>
>
> Thanks inAdvance
> Satish
> సతీష్
>
>
>
>
> 
> From: turbo_vb timh...@...
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, 26 August, 2009 5:24:09 PM
> Subject: [flexcoders] Re: Data Grid ShowHeaders property problem
>
>
>
> Hi Satish,
>
> You can use headerHeight= "0"; to hide the DataGrid headers.
>
> -TH
>
> --- In flexcod...@yahoogro ups.com, Satish Chowdary 
> wrote:
> >
> > Hi All,
> >
> > i am trying to disable datagrid column headers so i use showheader
> property
> > but it gives the following Error.
> > it throws following Error
> > Error #1010: A term is undefined and has no properties.
> >
> > Any Idea to resolve this
> >
> >
> > Thanks inAdvacne
> > Satish
> > సతీష్
> >
> >
> >
> > See the Web's breaking stories, chosen by people like you. Check
> out Yahoo! Buzz. http://in.buzz. yahoo.com/
> >
>
>
>
>
>
> See the Web's breaking stories, chosen by people like you. Check
out Yahoo! Buzz. http://in.buzz.yahoo.com/
>





RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Tracy Spratt
You can't predict order, but you can be assured that there is no parallel
processing of actionscript code.  I don't know the internals of the flash
player well enough to say in detail but there are rules that control what
code is processed when.

 

If you need to know that two async processes have completed, use a flag or
dictionary, set a flag value in each handler, and check it in each handler.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jon Gunnip
Sent: Thursday, August 27, 2009 10:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Race conditions when event handlers triggered from
different targets

 

  

Hi,

I have a concern about possible race conditions in our Flex
application. I've read in "Essential ActionScript 3.0" that the Flash
runtime will not interrupt the execution of an event handler to update
the screen. I'm wondering if there are any similar guarantees about
the order in which two event handlers registered with different
targets are executed. Consider the following:

User presses button A triggering event handler A'
In same frame, result returned from HTTPService B, triggering event handler
B'

If A' starts executing before B', will it run to completion before B'
starts executing, or could their execution be interleaved?

Thanks,
Jon





RE: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Tracy Spratt
Flex procedural code is essentially single threaded.  The loop will stop all
other processing, the handler will never get called, and the loop will never
stop.

 

There is NO sleep or delay or pause or anything like that in Flex.  You must
use events.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: Thursday, August 27, 2009 6:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script
Execution + Alert.show

 

  

Why won't it work? I can't see why it wouldn't... I'm still learning Flex so
perhaps I've overlooked something.

I do agree, it is bad coding but I can't see why it wouldn't work.

The boolAlertContinue variable is in affect acting like semaphore...


Cheers,
Nick





2009/8/27 Tracy Spratt mailto:tr...@nts3rd.com> com>

  

No, no, no, this will not work.  You must use the event mechanism.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com] On
Behalf Of Nick Middleweek
Sent: Wednesday, August 26, 2009 7:33 PM
To: flexcod...@yahoogro  ups.com
Subject: Re: [Spam] [flexcoders] Question on Flex Script Execution +
Alert.show

 

  

I'm not sure if this technique is frowned upon but...


You could have a new private var boolAlertContinue:Boolean = false;

In your alertHandler function, you would set it to true... boolAlertContinue
= true;

And after the Alert.show and before the if(myAlert == 1) you need to do a do
while loop...

do { 






  //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just
check the time...













  var dtmNow:Date = new Date();






} 






while (boolAlertContinue);


or you could probably initialise your myAlert:int = null and in the do ...
while loop check for (myAlert != null)


Cheers,
Nick




2009/8/26 Angelo Anolin mailto:angelo_ano...@yahoo.com>
yahoo.com>

  

Hi FlexCoders,

This has puzzled me a bit..

I have the following scripts in my application:

private var myAlert:int;

private function testFunction(evt:Event):void
{
  Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
alertHandler, null, Alert.YES);

  if(myAlert == 1)
  {
// Do Something here
  }
  else
  {
// Do other thing here
  }
}

Private function alertHandler(evt:CloseEvent)
{
  if(evt.Detail == Alert.YES)
  {
myAlert = 1;
  }
  else
  {
myAlert = -1;
  }
}

Now, what puzzles me is that the script after the Alert.show is triggered,
the scripts following it are also triggered.

Is there a way to ensure that the script following the Alert.show alert box
would only be executed after the Yes or No buttons has been pressed?

I won't be able to move the scripts after the Alert.show script to the
alertHandler event since there are some objects being set / modified prior
to the alert being called.

Inputs highly appreciated.

Thanks.

 

 





Re: [flexcoders] Flex DMV 3.4.0

2009-08-27 Thread Igor Costa
Here



http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk



Is really open-source? Didn't saw any official news.


Regards
Igor

On Thu, Aug 27, 2009 at 1:21 PM, Battershall, Jeff <
jeff.battersh...@dowjones.com> wrote:

>
>
>  Where is DMV 3.4.0 available for download?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Tom Chiverton
> *Sent:* Thursday, August 27, 2009 11:14 AM
> *To:* flexcoders@yahoogroups.com
> *Cc:* Matt Chotin
> *Subject:* Re: [flexcoders] Flex DMV 3.4.0
>
>
>
>
>
> On Thursday 27 Aug 2009, Mika Kiljunen wrote:
> > Hi,
> > I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
> > the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing
> has
> > changed. For example even a closed bug from Adobe Bug Issue Management
> > System that was supposed to be fixed in April are not included in DMV
> 3.4.0
> > (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
>
> Hmm, it seems so.
> ...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as
>
> still says:
> /**
> * @private
> */
> public function findAny(values:Object):Boolean
> and the done flag is still set incorrectly.
>
> I've commented the bug, hopefully Sameer will explain what was changed,
> although a trivial 'diff' shows now change in the file against the DV for
> v3.3 or 3.2.
>
> --
> Helping to proactively drive synergistic principle-centered total markets
> as
> part of the IT team of the year, '09 and '08
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
> of members is available for inspection at the registered office together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit 
> *www.Halliwells.com*
> .
>
>
>   
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


RE: [flexcoders] Flex Function and Web Service ResultHandler Question

2009-08-27 Thread Tracy Spratt
Apply event.prevent default always, store any necessary information in a
model, then in the result handler, update the dataProvider or not.

 

Sure, there are always trade-offs.  You could develop in C++ and you would
not have this problem.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Thursday, August 27, 2009 4:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Function and Web Service ResultHandler
Question

 

  

Hi Tracy,

Thanks for the insight.

I think this is one big hurdle (and one which would prevent some developers
from embracing Flex).

I am already getting used to Flex, but only for those which comprises of
only single transactional call to the database.

I still can't think of a way like to get through this:

myFunction(evt:dragDrop)
{
  // Check if data passes validation.  If not, confirm from user if proceed
  Alert.show('Proceed?', '', Alert.Yes | Alert.No, alertHandler);
  
  // If Yes was pressed, then should do something here, else call the
preventDefault
}


But since after the alert, the conditional script is executed on the alert
Handler event, how would I be able to reference or make a call for
evt.preventDefault which is only visible in the myFunction?

*Sigh*

I need to get over / hurdle this... 

Regards,

Angelo

  _  

From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, 27 August, 2009 14:45:16
Subject: RE: [flexcoders] Flex Function and Web Service ResultHandler
Question

  

It is simply a different way of thinking.  Whatever you need to do, you can
do within the constraints of the async/non-blocking coding paradigm.

 

This is a hurdle that almost all new Flex developers must get over.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of Angelo Anolin
Sent: Wednesday, August 26, 2009 10:09 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex Function and Web Service ResultHandler
Question

 

  

Hi Tracy,

You mentioned that this is the only way...

But doesn't this kind of programming limits what the developer could
actually do?

I mean for example, you have coded in the dragDrop event of a list control.
In the said event, you need to get some data through a web service.  The
whole operation is dependent on the event handler for the dragdrop.  If you
would only be allowed to process the operations further in the result
handler of the web service, how could you then utilize the event which was
the parameter in your dragdrop event?

I think this question also goes the same for the Alert.show function where
the result handler deviates from the function/event with which it was
executed.  If the continuation of execution would be on the Alert handler,
it would be quite tedious on the part of the developer to be able to gather
the variables/objects/ handlers from the original function/event.

I am pretty sure Adobe / Flex team has thought about this but I may be doing
things wrong.  So I would appreciate everyone's input.  I am in a bind right
now cause this limitation(? ) hampers me from being a lot more productive
with Flex.

Thanks.

Angelo

 

  _  

From: Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Wednesday, 26 August, 2009 12:55:18
Subject: RE: [flexcoders] Flex Function and Web Service ResultHandler
Question

  

You will have to initiate your "further operations" from the result handler.
There is no other way.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On
Behalf Of Angelo Anolin
Sent: Tuesday, August 25, 2009 9:54 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex Function and Web Service ResultHandler Question

 

  

Hi FlexCoders,

 

Needing your input on the following:

 

I have created a function for the dragevent of a list.

 

Code is as follows:

 

private function myFunction(evt: DragEvent) :void
{
 var nameID:String = 'Angelo';
 
 // Call a webservice operation here
 ws.GetStatus( nameID);
 
 Alert.show(String( _xmlGetStatus) , 'myFunction' );
 
 // I need to use the _xmlGetStatus here...
 // But the _xmlGetStatus is NULL?
 // Although in the Result Handler, it is not NULL.
}

 

private function getStatusResultHand ler(event: ResultEvent) :void
{
 _xmlGetStatus = XML(event.result) ;
 Alert.show(String( _xmlGetStatus) , 'getStatusResultHan dler');
}

 

The result handler for the GetStatus web service operation populates an XML
variable which I declared on top of the script (i.e. private var
_xmlGetStatus: XML;).

 

When I run my application, myFunction executes but the alert that is shown
first is the one in the function myFunction, instead of the one in the
result handler.

 

I need to use the values in the XML variable _xmlGetSt

RE: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-27 Thread Tracy Spratt
I don't use ADG all that much, but the filter functions should get a
"record" node for each call of the filter function.  Have you used
toXMLString() to trace out the item?  Inside the filter function you can use
any e4x expressions to traverse the xml, down into the child nodes or even
up to parent nodes.

 

I am pretty sure you are not getting the entire dataProvider in the
function.  Do the trace.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of chigwell23
Sent: Thursday, August 27, 2009 4:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
dataprovider question

 

  

I wonder if is even possible to use the filter function with hierarchical
XML, as all of the examples I have seen are of array collections or flat
XML?

This I think is the problem - the complete data provider is being passed
into the item parameter of the filter i.e. the xml hierarchy in its
entirety. I am presuming that the filter wants one "row" at a time so it can
do its compare. Where do I have control of this? I am not sure I do since
the only code is

lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

The data provider is

dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML
hierarchy to get to the data. (Wrapper nodes are returned by SQL back end. 

--- In flexcod...@yahoogro  ups.com,
"Tracy Spratt"  wrote:
>
> Break the code into smaller pieces and debug to see what is wrong.
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of chigwell23
> Sent: Thursday, August 27, 2009 2:40 AM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection
> dataprovider question
> 
> 
> 
> 
> 
> private function filterRepRankDtlChnl(item:Object):Boolean{
> if(item.results.record.chnl_cd == "PREM") return true;
> else return false; 
> }
> 
> Filter is not filtering and I think it maybe item.results.record.chnl_cd -
> the item:Object is in this format:
> 
> item
> ...
> ..
> .
> . etc
> 
> What is the correct "path" for chnl_cd and might this be the problem? TIA,
> 
> Mic.
>





RE: [flexcoders] Flex DMV 3.4.0

2009-08-27 Thread Battershall, Jeff
Where is DMV 3.4.0 available for download?


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tom Chiverton
Sent: Thursday, August 27, 2009 11:14 AM
To: flexcoders@yahoogroups.com
Cc: Matt Chotin
Subject: Re: [flexcoders] Flex DMV 3.4.0



On Thursday 27 Aug 2009, Mika Kiljunen wrote:
> Hi,
> I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
> the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has
> changed. For example even a closed bug from Adobe Bug Issue Management
> System that was supposed to be fixed in April are not included in DMV 3.4.0
> (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)

Hmm, it seems so.
...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as
still says:
/**
* @private
*/
public function findAny(values:Object):Boolean
and the done flag is still set incorrectly.

I've commented the bug, hopefully Sameer will explain what was changed,
although a trivial 'diff' shows now change in the file against the DV for
v3.3 or 3.2.

--
Helping to proactively drive synergistic principle-centered total markets as
part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged. If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents. If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit 
www.Halliwells.com.






Re: [flexcoders] May I reset the disabledRanges for DateField ?

2009-08-27 Thread Beau Scott
Sorry... hit send before I had a chance to paste code in:








Beau





On Thu, Aug 27, 2009 at 9:34 AM, Beau Scott  wrote:

> Use a change event on startDate to reset the disabled date range on end
> date.
>
> Beau
>
>
>
>
> On Thu, Aug 27, 2009 at 8:51 AM, markflex2007 wrote:
>
>>
>>
>> Hi,
>>
>> I use the following code to reset disabledRanges for DateField,but it
>> doesn't work.Can you help me to fix this.
>>
>> Thanks
>>
>> mk
>>
>> 
>> http://www.adobe.com/2006/mxml";>
>> 
>> 
>> 
>>
>> > />
>> 
>>
>> 
>>
>>  
>>
>
>
>
> --
> Beau D. Scott
> Software Engineer
>



-- 
Beau D. Scott
Software Engineer


[flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Jon Gunnip
Hi,

I have a concern about possible race conditions in our Flex
application.  I've read in "Essential ActionScript 3.0" that the Flash
runtime will not interrupt the execution of an event handler to update
the screen.  I'm wondering if there are any similar guarantees about
the order in which two event handlers registered with different
targets are executed.  Consider the following:

User presses button A triggering event handler A'
In same frame, result returned from HTTPService B, triggering event handler B'

If A' starts executing before B', will it run to completion before B'
starts executing, or could their execution be interleaved?

Thanks,
Jon


[flexcoders] Re: Password Protection in Flex

2009-08-27 Thread AJC2357
Does not need to be that secure.  Will be sending a randomized link (ex: 
www.example.com/FSDF3453459324_234hn) directly to client.  

I don't even have to deal with usernames, just one password that would make the 
dashboard functional.  

I will check out your website.  Thanks for your time.

Alex

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Certainly, but it is a very complex subject with many solutions.  Few of
> them are implemented in Flex alone.  How secure is secure?  Where and how do
> you want to maintain your list of user/passwords?  Do you need to hash them
> or will you send them in clear text?  Do you need to use https?
> 
>  
> 
> I have a simple log-in example on cflex.net, but it is not suitable for
> sensitive data.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of AJC2357
> Sent: Wednesday, August 26, 2009 3:46 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Password Protection in Flex
> 
>  
> 
>   
> 
> Hello, 
> 
> I am new to flex but am immensely enjoying the charting/dashboard
> capabilities. 
> 
> As I begin to put sensitive data together for certain clients, I am
> wondering if there is a way to password protect the swf output.
> 
> For instance, I would like to send a link to a client with their requested
> business-intell dashboard. When he/she opens this link, I want the first
> screen of the swf file to ask for a password. Once the password it entered
> correctly, the dashboard becomes functional.
> 
> Any code suggestions or links to relevant examples? Thanks in advance,
> 
> Alex
>




Re: [flexcoders] May I reset the disabledRanges for DateField ?

2009-08-27 Thread Beau Scott
Use a change event on startDate to reset the disabled date range on end
date.

Beau



On Thu, Aug 27, 2009 at 8:51 AM, markflex2007 wrote:

>
>
> Hi,
>
> I use the following code to reset disabledRanges for DateField,but it
> doesn't work.Can you help me to fix this.
>
> Thanks
>
> mk
>
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
>
>  />
> 
>
> 
>
>  
>



-- 
Beau D. Scott
Software Engineer


[flexcoders] Re: Will Flex Builder be updated with 3.4 SDK release?

2009-08-27 Thread tntomek
--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> We are not releasing an updated Flex Builder, but the DMV download is 
> available from http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
> 
> FB3 unfortunately won't support 3.5 since they broke something on us last 
> minute, you'll need to use the FB4 beta for that.
> 
> Matt
> 
> 
> On 8/26/09 3:12 PM, "tntomek"  wrote:
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com  , 
> "tntomek"  wrote:
> >
> > Also will DMV be updated with 3.4 as well?
> >
> > It would be really nice to have native Eclipse 3.5 installer.
> >
> > Looking forward to the updated reliability (fingers crossed) in 3.4 SDK
> >
> 
> Thx for link but no mention of DMV or Eclipse 3.5 support. Since Fx4 has been 
> pushed to 2010 it would seem odd not to include a FB update in over a year if 
> even just to make the installer happy. Any idea is 3.4 will be the last 
> update to 3.x?
>

Thanks Matt, glad you removed the licensing step for source, hopefully we might 
see more user patches for DMV now.




Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Beau Scott
You have to remember that flex renders according to the component lifecycle.
There's a global timer that runs independent of everything else (according
to the FPS the movie is playing) that more or less watches the objects in
the display list and with each timer tick will re-render the objects that
have been flagged as needing such. So when you say Alert.show(...), a new
display object is created and stuck into the display list, but it won't be
set up and shown until the next sweep of this global timer. Also, flash is
not multithreaded, so your current method must finish executing before the
rendering timer event method can be executed, so semaphores are not possible
(you can't stay in a loop waiting for another operation to complete, it will
never happen). Therefor you are forced you to rely on event listeners to
interact with this object.



On Thu, Aug 27, 2009 at 4:43 AM, Nick Middleweek wrote:

>
>
> Why won't it work? I can't see why it wouldn't... I'm still learning Flex
> so perhaps I've overlooked something.
>
> I do agree, it is bad coding but I can't see why it wouldn't work.
>
> The boolAlertContinue variable is in affect acting like semaphore...
>
>
> Cheers,
> Nick
>
>
>
>
> 2009/8/27 Tracy Spratt 
>
>
>>
>>  No, no, no, this will not work.  You must use the event mechanism.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>   --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
>> Behalf Of *Nick Middleweek
>> *Sent:* Wednesday, August 26, 2009 7:33 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution +
>> Alert.show
>>
>>
>>
>>
>>
>> I'm not sure if this technique is frowned upon but...
>>
>>
>> You could have a new private var boolAlertContinue:Boolean = false;
>>
>> In your alertHandler function, you would set it to true... boolAlertContinue
>> = true;
>>
>> And after the Alert.show and before the if(myAlert == 1) you need to do a
>> do while loop...
>>
>> do {
>>
>>   //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just 
>> check the time...
>>
>>   var dtmNow:Date = new Date();
>>
>> }
>>
>> while (boolAlertContinue);
>>
>>
>> or you could probably initialise your myAlert:int = null and in the do ...
>> while loop check for (myAlert != null)
>>
>>
>> Cheers,
>> Nick
>>
>>
>>
>>  2009/8/26 Angelo Anolin 
>>
>>
>>
>> Hi FlexCoders,
>>
>> This has puzzled me a bit..
>>
>> I have the following scripts in my application:
>>
>> private var myAlert:int;
>>
>> private function testFunction(evt:Event):void
>> {
>>   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO,
>> null, alertHandler, null, Alert.YES);
>>
>>   if(myAlert == 1)
>>   {
>> // Do Something here
>>   }
>>   else
>>   {
>> // Do other thing here
>>   }
>> }
>>
>> Private function alertHandler(evt:CloseEvent)
>> {
>>   if(evt.Detail == Alert.YES)
>>   {
>> myAlert = 1;
>>   }
>>   else
>>   {
>> myAlert = -1;
>>   }
>> }
>>
>> Now, what puzzles me is that the script after the Alert.show is triggered,
>> the scripts following it are also triggered.
>>
>> Is there a way to ensure that the script following the Alert.show alert
>> box would only be executed after the Yes or No buttons has been pressed?
>>
>> I won't be able to move the scripts after the Alert.show script to the
>> alertHandler event since there are some objects being set / modified prior
>> to the alert being called.
>>
>> Inputs highly appreciated.
>>
>> Thanks.
>>
>>
>>
>
>  
>



-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] Flex DMV 3.4.0

2009-08-27 Thread Tom Chiverton
On Thursday 27 Aug 2009, Mika Kiljunen wrote:
> Hi,
> I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
> the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has
> changed. For example  even a closed bug from Adobe Bug Issue Management
> System that was supposed to be fixed in April are not included in DMV 3.4.0
> (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)

Hmm, it seems so.
...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as
 
still says:
/**
 *  @private
 */
public function findAny(values:Object):Boolean
and the done flag is still set incorrectly.

I've commented the bug, hopefully Sameer will explain what was changed, 
although a trivial 'diff' shows now change in the file against the DV for 
v3.3 or 3.2.

-- 
Helping to proactively drive synergistic principle-centered total markets as 
part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] May I reset the disabledRanges for DateField ?

2009-08-27 Thread markflex2007
Hi,

I use the following code to reset disabledRanges for DateField,but it doesn't 
work.Can you help me to fix this.

Thanks

mk


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




  









[flexcoders] Show ProgressBar upon loading Modules

2009-08-27 Thread yonghan79
Hi all , i need help please..I've suceeded to show progressbar upon
loading modules within FlexMDI Window,but i haven't figured out how to
hide the progressbar upon ModuleEvent.READY.. I pu the codes here  my
codes   ..Thanks a lot...



[flexcoders] Re: Flex DMV 3.4.0

2009-08-27 Thread tntomek
--- In flexcoders@yahoogroups.com, Mika Kiljunen  wrote:
>
> Hi,
> I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
> the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has
> changed. For example  even a closed bug from Adobe Bug Issue Management
> System that was supposed to be fixed in April are not included in DMV 3.4.0
> (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
> 
> I guess it's true what the Issue management shows: An empty list of fixed
> issues on DMV 3.4.0.
> 
> I'm pretty disappointed since there really is work to be done on DMV
> components and it seems that Adobe just hasn't put in the effort. Our
> current product uses lots of charts and Advanced Data Grids and we indeed
> have problems.
> 
> Is there a DMV release with some actual fixes coming any time soon?
> 
> -Mika
>

Second this opinion, DMV esp. ADG was one of the main drivers to switch to Flex 
and after using and reading about it, it seems like its a bastard child :) It's 
too bad because AFAIK Fx4 will not have updated grids, so we are stuck with 
this for longer then some might want to stay around.




RE: [flexcoders] Line and area chart on the same coordinate system?

2009-08-27 Thread Jake Churchill
Use a Cartesian chart with a Line Series and Area Series

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of |Mirko
Sent: Thursday, August 27, 2009 8:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Line and area chart on the same coordinate system?

 

  


Hi,

What i would like to do is display both area and line chart on the same
graph with same coordinate axis but not sure if that's possible and how to
do it. I googled a bit but couldn't find any useful example so if someone
can give me few hints or maybe provide an example i would really appreciate
it?

Thanks in advance,
Best regards
-- 
View this message in context:
http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp2
5167662p25167662.html
Sent from the FlexCoders mailing list archive at Nabble.com.



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.67/2326 - Release Date: 08/25/09
18:07:00



Re: [flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-27 Thread Satish Chowdary
HiTimHoff,

I tried with headerHeight = "0", but it still throws the error

here is my piece of code...for better understanding...

and please let me know where i can make changes to achieve this..















 


Thanks inAdvance
Satish
సతీష్





From: turbo_vb 
To: flexcoders@yahoogroups.com
Sent: Wednesday, 26 August, 2009 5:24:09 PM
Subject: [flexcoders] Re: Data Grid ShowHeaders property problem

  

Hi Satish,

You can use headerHeight= "0"; to hide the DataGrid headers.

-TH

--- In flexcod...@yahoogro ups.com, Satish Chowdary 
wrote:
>
> Hi All,
>
> i am trying to disable datagrid column headers so i use showheader
property
> but it gives the following Error.
> it throws following Error
> Error #1010: A term is undefined and has no properties.
>
> Any Idea to resolve this
>
>
> Thanks inAdvacne
> Satish
> సతీష్
>
>
>
> See the Web's breaking stories, chosen by people like you. Check
out Yahoo! Buzz. http://in.buzz. yahoo.com/
>


   


  See the Web's breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/

Re: [flexcoders] Line and area chart on the same coordinate system?

2009-08-27 Thread Ivan Wang
Flex chart can hold different series.
You can just use one areachart, and in its series, add both line series and 
area series, that's it. Have fun :)

  - Original Message - 
  From: |Mirko 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, August 27, 2009 9:31 PM
  Subject: [flexcoders] Line and area chart on the same coordinate system?



  Hi,

  What i would like to do is display both area and line chart on the same
  graph with same coordinate axis but not sure if that's possible and how to
  do it. I googled a bit but couldn't find any useful example so if someone
  can give me few hints or maybe provide an example i would really appreciate
  it?

  Thanks in advance,
  Best regards
  -- 
  View this message in context: 
http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp25167662p25167662.html
  Sent from the FlexCoders mailing list archive at Nabble.com.



  

[flexcoders] Line and area chart on the same coordinate system?

2009-08-27 Thread |Mirko

Hi,

What i would like to do is display both area and line chart on the same
graph with same coordinate axis but not sure if that's possible and how to
do it. I googled a bit but couldn't find any useful example so if someone
can give me few hints or maybe provide an example i would really appreciate
it?

Thanks in advance,
Best regards
-- 
View this message in context: 
http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp25167662p25167662.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Flex Builder 3 - Conditional Debugging

2009-08-27 Thread Ivan Wang
It's impossible with FB3. But you can have it in Flash Builder 4, though it's 
still beta. 

Ivan
  - Original Message - 
  From: Michael Ridland 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, August 27, 2009 2:20 PM
  Subject: [flexcoders] Flex Builder 3 - Conditional Debugging


Hi

  Is is possible to have conditional breakpoints in Flex Builder 3? Either via 
the editor or action script. 

  It would be cool if I could go 
  if(ShouldBreak())
  Debugger.Break();

  Is there anything like this? or hacks?

  Thanks in Advance. 







  

[flexcoders] Flex DMV 3.4.0

2009-08-27 Thread Mika Kiljunen
Hi,
I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has
changed. For example  even a closed bug from Adobe Bug Issue Management
System that was supposed to be fixed in April are not included in DMV 3.4.0
(see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)

I guess it's true what the Issue management shows: An empty list of fixed
issues on DMV 3.4.0.

I'm pretty disappointed since there really is work to be done on DMV
components and it seems that Adobe just hasn't put in the effort. Our
current product uses lots of charts and Advanced Data Grids and we indeed
have problems.

Is there a DMV release with some actual fixes coming any time soon?

-Mika


[Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-27 Thread arieljake
that's pretty funny. :)

--- In flexcoders@yahoogroups.com, Paul Hastings  wrote:
>
> Nick Middleweek wrote:
> > Thanks for your reply but what does this mean:* # /opt/flex/bin/mxmlc 
> > -version*
> 
> it means tom lives in cave & writes his code by banging together two rocks 
> while 
> fighting off cave bears ;-)
>




[flexcoders] Html template for Flex appli.

2009-08-27 Thread christophe_jacquelin
Hello,

I am searching an html website template that launch 2 flex applications.

Thank you,
Christopher, 




Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Nick Middleweek
Why won't it work? I can't see why it wouldn't... I'm still learning Flex so
perhaps I've overlooked something.

I do agree, it is bad coding but I can't see why it wouldn't work.

The boolAlertContinue variable is in affect acting like semaphore...


Cheers,
Nick




2009/8/27 Tracy Spratt 

>
>
>  No, no, no, this will not work.  You must use the event mechanism.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nick Middleweek
> *Sent:* Wednesday, August 26, 2009 7:33 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution +
> Alert.show
>
>
>
>
>
> I'm not sure if this technique is frowned upon but...
>
>
> You could have a new private var boolAlertContinue:Boolean = false;
>
> In your alertHandler function, you would set it to true... boolAlertContinue
> = true;
>
> And after the Alert.show and before the if(myAlert == 1) you need to do a
> do while loop...
>
> do {
>
>   //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just 
> check the time...
>
>   var dtmNow:Date = new Date();
>
> }
>
> while (boolAlertContinue);
>
>
> or you could probably initialise your myAlert:int = null and in the do ...
> while loop check for (myAlert != null)
>
>
> Cheers,
> Nick
>
>
>
>  2009/8/26 Angelo Anolin 
>
>
>
> Hi FlexCoders,
>
> This has puzzled me a bit..
>
> I have the following scripts in my application:
>
> private var myAlert:int;
>
> private function testFunction(evt:Event):void
> {
>   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
> alertHandler, null, Alert.YES);
>
>   if(myAlert == 1)
>   {
> // Do Something here
>   }
>   else
>   {
> // Do other thing here
>   }
> }
>
> Private function alertHandler(evt:CloseEvent)
> {
>   if(evt.Detail == Alert.YES)
>   {
> myAlert = 1;
>   }
>   else
>   {
> myAlert = -1;
>   }
> }
>
> Now, what puzzles me is that the script after the Alert.show is triggered,
> the scripts following it are also triggered.
>
> Is there a way to ensure that the script following the Alert.show alert box
> would only be executed after the Yes or No buttons has been pressed?
>
> I won't be able to move the scripts after the Alert.show script to the
> alertHandler event since there are some objects being set / modified prior
> to the alert being called.
>
> Inputs highly appreciated.
>
> Thanks.
>
>
>   
>


Re: [flexcoders] Flex Builder 3 - Conditional Debugging

2009-08-27 Thread Andriy Panas
import flash.debugger.enterDebugger;

if(ShouldBreak())
{
enterDebugger()
}

--
Best regards,
Andriy Panas


Re: [flexcoders] Flex Builder 3 - Conditional Debugging

2009-08-27 Thread Wesley Acheson
what I do is something like this.
if(shouldBreak){
trace("Break point");
}

I then put a break point on the trace line.

Its the only way round I know about.

Regards,

Wesley Acheson.

On Thu, Aug 27, 2009 at 8:20 AM, Michael Ridland  wrote:

>
>
> Hi
>
> Is is possible to have conditional breakpoints in Flex Builder 3? Either
> via the editor or action script.
>
> It would be cool if I could go
> if(ShouldBreak())
> Debugger.Break();
>
> Is there anything like this? or hacks?
>
> Thanks in Advance.
>
>
>
>
>
>
>
> 


Re: [flexcoders] Flex Function and Web Service ResultHandler Question

2009-08-27 Thread Angelo Anolin
Hi Tracy,

Thanks for the insight.

I think this is one big hurdle (and one which would prevent some developers 
from embracing Flex).

I am already getting used to Flex, but only for those which comprises of only 
single transactional call to the database.

I still can't think of a way like to get through this:

myFunction(evt:dragDrop)
{
  // Check if data passes validation.  If not, confirm from user if proceed
  Alert.show('Proceed?', '', Alert.Yes | Alert.No, alertHandler);
  
  // If Yes was pressed, then should do something here, else call the 
preventDefault
}


But since after the alert, the conditional script is executed on the alert 
Handler event, how would I be able to reference or make a call for 
evt.preventDefault which is only visible in the myFunction?

*Sigh*

I need to get over / hurdle this... 

Regards,

Angelo



From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, 27 August, 2009 14:45:16
Subject: RE: [flexcoders] Flex Function and Web Service ResultHandler Question

  
It is simply a different way of thinking. 
Whatever you need to do, you can do within the constraints of the 
async/non-blocking
coding paradigm.
 
This is a hurdle that almost all new Flex
developers must get over.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of Angelo Anolin
Sent: Wednesday, August 26, 2009
10:09 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex
Function and Web Service ResultHandler Question
 
  
Hi Tracy,

You mentioned that this is the only way...

But doesn't this kind of programming limits what the developer could actually
do?

I mean for example, you have coded in the dragDrop event of a list
control.  In the said event, you need to get some data through a web
service.  The whole operation is dependent on the event handler for the
dragdrop.  If you would only be allowed to process the operations further
in the result handler of the web service, how could you then utilize the event
which was the parameter in your dragdrop event?

I think this question also goes the same for the Alert.show function where the
result handler deviates from the function/event with which it was
executed.  If the continuation of execution would be on the Alert handler,
it would be quite tedious on the part of the developer to be able to gather the
variables/objects/ handlers from the original function/event.

I am pretty sure Adobe / Flex team has thought about this but I may be doing
things wrong.  So I would appreciate everyone's input.  I am in a
bind right now cause this limitation(? ) hampers me from being a lot more
productive with Flex.

Thanks.

Angelo
 


 
From:Tracy Spratt

To: flexcod...@yahoogro ups.com
Sent: Wednesday, 26 August, 2009
12:55:18
Subject: RE: [flexcoders] Flex
Function and Web Service ResultHandler Question

  
You will have to initiate your “further
operations” from the result
handler.  There is no other way.
 
Tracy Spratt,
Lariat Services, development services available


 
From:flexcod...@yahoogro ups.com [mailto:
flexcod...@yahoogro ups.com ] On Behalf Of Angelo
Anolin
Sent: Tuesday, August 25, 2009
9:54 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex
Function and Web Service ResultHandler Question
 
  
Hi
FlexCoders,
 
Needing
your input on the following:
 
I
have created a function for the dragevent of a list.
 
Code
is as follows:
 
private
function myFunction(evt: DragEvent) :void
{
 var nameID:String = 'Angelo';
 
 // Call a webservice operation here
 ws.GetStatus( nameID);
 
 Alert.show(String( _xmlGetStatus) , 'myFunction' );
 
 // I need to use the _xmlGetStatus here...
 // But the _xmlGetStatus is NULL?
 // Although in the Result Handler, it is not NULL.
}
 
private
function getStatusResultHand ler(event: ResultEvent) :void
{
 _xmlGetStatus = XML(event.result) ;
 Alert.show(String( _xmlGetStatus) , 'getStatusResultHan dler');
}
 
The
result handler for the GetStatus web service operation populates an XML
variable which I declared on top of the script (i.e. private var _xmlGetStatus:
XML;).
 
When
I run my application, myFunction executes but the alert that is shown first is
the one in the function myFunction, instead of the one in the result handler.
 
I
need to use the values in the XML variable _xmlGetStatus for further operations
in function myFunction, but then the value is not populated right away.
 
Any
way to handle this?
 
Thanks
and regards,
Angelo
 
 
   


  

Re: [flexcoders] Re: Will Flex Builder be updated with 3.4 SDK release?

2009-08-27 Thread Tom Chiverton
On Thursday 27 Aug 2009, Matt Chotin wrote:
> We are not releasing an updated Flex Builder, but the DMV download is
> available from
> http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk

*ohh* :-)

-- 
Helping to quickly architect communities as part of the IT team of the 
year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Flex Builder 3 - Conditional Debugging

2009-08-27 Thread Michael Ridland
Hi

Is is possible to have conditional breakpoints in Flex Builder 3? Either via
the editor or action script.

It would be cool if I could go
if(ShouldBreak())
Debugger.Break();

Is there anything like this? or hacks?

Thanks in Advance.


[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-27 Thread chigwell23
I wonder if is even possible to use the filter function with hierarchical XML, 
as all of the examples I have seen are of array collections or flat XML?

This I think is the problem - the complete data provider is being passed into 
the item parameter of the filter i.e. the xml hierarchy in its entirety. I am 
presuming that the filter wants  one "row" at a time so it can do its compare. 
Where do I have control of this? I am not sure I do since the only code is

lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

The data provider is

dataProvider="{lstRepRankDrill[0].record}" in order to dig into the XML 
hierarchy to get to the data. (Wrapper nodes are returned by SQL back end. 



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Break the code into smaller pieces and debug to see what is wrong.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of chigwell23
> Sent: Thursday, August 27, 2009 2:40 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Apply filterFunction to datagrid XMLListCollection
> dataprovider question
> 
>  
> 
>   
> 
> private function filterRepRankDtlChnl(item:Object):Boolean{
> if(item.results.record.chnl_cd == "PREM") return true;
> else return false; 
> }
> 
> Filter is not filtering and I think it maybe item.results.record.chnl_cd -
> the item:Object is in this format:
> 
> item
> ...
> ..
> .
> . etc
> 
> What is the correct "path" for chnl_cd and might this be the problem? TIA,
> 
> Mic.
>




Re: [Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-27 Thread Tom Chiverton
On Wednesday 26 Aug 2009, Richard Rodseth wrote:
> He's using the command line and invoking the MXML compiler with the
> -version option. In FlexBuilder, you can right-click on a project,


 He asked about the SDK :-)

-- 
Helping to confidentially empower third-generation B2C internet sticky 
information as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Flex Builder 3 coldfusion wizard error

2009-08-27 Thread Kevin Bowers
Hi all,
 
I was wondering if anybody has come across the following error, or better
still a solution.
 
When using the coldfusion wizard to generate an application everything works
fine.  However, if we try the exact same process to produce an AIR
application we are geting the following error message:
 
com.adobe.flexbuilder.apollo.project.AppXMLCreator . 
(org.eclipse.core.runtime.IPath, java.lang.String)
 
Any clues as to how we might resolve, get around this would be great.
 
Many thanks,
 
Kevin


Re: [flexcoders] Re: PDF-ActionScript communication in AIR app

2009-08-27 Thread b_productiv2000
In his article gonzalo huerta put an example, where he open an 
existing pdf file and add dynamicaly the javascript in it before 
open it in air application.
I've try his example but got an error when opening an existing 
pdf file. :(
I send him an email to see what i can do.

Alban

inudor a écrit :
> just realized this solution is not valid since I can only add the required 
> scripts when creating the PDF document with AlivePDF, but I'm not able to 
> load existing PDF's and modify them... 
> Maybe with some Java-PDF library and Merapi? If anyone has any advice...  
>   
> thanks, 
>   
> Marc Baiges Camprubí
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "inudor"  wrote:
>> looks exactly as what I was looking for... can't wait to try it!!!
>> thanks!
>>
>> Marc Baiges Camprubí
>>
>>
>> --- In flexcoders@yahoogroups.com, b_productiv2000  wrote:
>>> I've found this article today : http://gonzalo.huerta.cl/?p=13





Re: [flexcoders] 'sans_nom_3.swc' does not have a recognized extension

2009-08-27 Thread Jorge Hernández
Hello lolveley,

I am a beginner as well, I use sometimes flash files into my flex proyects
and I just drag and drop the swf in to my flex panel and it works, I hope I
can help you, Good Luck!




2009/8/26 lolveley 

>
>
> hello,
>
> I have already send this message but there's no answer, so I try a new
> time, it's oimportant for me but I can't find any help in forums nor
> tutorials.
> I am a beginner into flex, and in Flash, so I ask you to tolerate me!
> here is my problem: I want to study the use of flash components into flex.
> So I first created a symbol in flash, put one instance of this symbol in a
> FLA file, and , then I exported it for flex by clicking the right item in
> flash.
> Then, I ran flex, I entered the .swc in the library path of my new project,
> and I entered this code:
>
>
> *
>
> package
> *{
>
>  *import* flash.display.MovieClip;
>
> *import* flash.display.Sprite;
>
> *public* *class* pont_flash_flex_2 *extends* Sprite
>
> {
>
> *public* *function* pont_flash_flex_2()
>
> {
>
> [*Embed*(source=*'sans_nom_3.swc'*,symbol=*'occu_mon_symbole'*
> )]
>
> *var* ClasseSymbole:Class;
>
> *var* ma_classe:MovieClip=*new* ClasseSymbole();
>
> addChild(ma_classe);
>
> }
>
> }
>
> }
>
> Here is the error message:
>
>
> 'sans_nom_3.swc' does not have a recognized extension, and a mimeType was
> not provided pont_flash_flex_2/src pont_flash_flex_2.as line
> 9 1251140352156 15
>
> and:
>
>
> Unable to transcode sans_nom_3.swc. pont_flash_flex_2/src
> pont_flash_flex_2.as line 9 1251140352156 16
>
> Here is my question: is this code right?
>
> in this case, the error comes from the flash part (creation of the symbol,
> maybe its occurence's name).
>
> thank you,
>
>
>
> lolveley.
>
> 
>



-- 
Jorge Hernández Martínez
Electro-Acoustic & Telecommunication Engineer
+34 605 132572


[flexcoders] use combobox itemrenderer in stead of textinput

2009-08-27 Thread Webdevotion
Hello,

I have a combobox using an itemrenderer.
On change I want to display the same itemrenderer ( class )
as the selected item in the combobox.

e.g.:
a combobox with a colors list
on change: show the selected color in stead of the color value

Hope it makes sense : )

Thanks!