[flexcoders] How to create an overlay on top of a list/datagrid

2009-06-09 Thread gmoniey22
I haven't been able to find any examples of this, which is frustrating, since I 
believe this should be an easy task.

I want to display a canvas (or any other sprite) which simply places a gray 
overlay over the entire grid/list with some message in the middle.

In java this would be as easy as using the component's glasspane, but I haven't 
been able to find anything similar.

Can someone point me in the right direction?

Thanks.



[flexcoders] Re: multiple checkbox selection in a datagrid

2009-06-09 Thread halfbaked11704
Thanks for the help...I have a question, how can I fake the keyboard 
interaction in flash? where did you get the keyDownHandler function?

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Try one of the examples on my blog
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of halfbaked11704
 Sent: Monday, June 08, 2009 4:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] multiple checkbox selection in a datagrid
 
 
 
 
 
 hi! everyone, I have a problem regarding with the checkboxes inside the 
 datagrid component. I cannot check a multiple checkbox. When I select another 
 one the previously checked will be unchecked.





[flexcoders] Re: How to create an overlay on top of a list/datagrid

2009-06-09 Thread gmoniey22
Nevermind...figured out that the components needed to be wrapped in a canvas

--- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote:

 I haven't been able to find any examples of this, which is frustrating, since 
 I believe this should be an easy task.
 
 I want to display a canvas (or any other sprite) which simply places a gray 
 overlay over the entire grid/list with some message in the middle.
 
 In java this would be as easy as using the component's glasspane, but I 
 haven't been able to find anything similar.
 
 Can someone point me in the right direction?
 
 Thanks.





[flexcoders] Disabling grid does not disable column check box?

2009-06-09 Thread Mic
In a very conventional corporate app with View, Insert, Edit, Delete
modes, certain datagrids must be view only in Edit mode. It really
surprises me that on a datagrid, with editable=false, enabled=false,
selectable=false, the checkboxes in a grid column can still be clicked.
I am creating the checkboxes with:

mx:DataGridColumn id=dgcRmv headerText=Remove width=100
mx:itemRenderer
   mx:Component
  mx:CheckBox
 selected={data.rmvDir == 'true'} paddingLeft=10
 labelPlacement=right
 change=outerDocument.cbRmvDirHandler(event)/
  /mx:Component
/mx:itemRenderer
/mx:DataGridColumn

With everything turned off on the grid, the cb can be checked and the
handler runs. Appreciate a solution to this. TIA,

Mic.






[flexcoders] Re: Disabling grid does not disable column check box?

2009-06-09 Thread Mic
Just found I can stop it dead with an enabled=false on the cb itself:

mx:CheckBox
 selected={data.rmvDir == 'true'} paddingLeft=10 enabled=false

but I cannot get to the checkbox with actionscript because Flex will not
let me give the checkbox an id to reference it with ...

mx:CheckBox id=cbRmv = id attribute is not allowed on the root tag of
a component ...

if the solution is me having to individually disable the 11 checkbox
columns on the 3 grids, how can I reference them? I suppose I could bind
i.e. enabled = {mode=='VIEW'} but curious on the AS reference,

  TIA,

Mic.



--- In flexcoders@yahoogroups.com, Mic chigwel...@... wrote:

 In a very conventional corporate app with View, Insert, Edit, Delete
 modes, certain datagrids must be view only in Edit mode. It really
 surprises me that on a datagrid, with editable=false, enabled=false,
 selectable=false, the checkboxes in a grid column can still be
clicked.
 I am creating the checkboxes with:

 mx:DataGridColumn id=dgcRmv headerText=Remove width=100
 mx:itemRenderer
mx:Component
   mx:CheckBox
  selected={data.rmvDir == 'true'} paddingLeft=10
  labelPlacement=right
  change=outerDocument.cbRmvDirHandler(event)/
   /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 With everything turned off on the grid, the cb can be checked and the
 handler runs. Appreciate a solution to this. TIA,

 Mic.





[flexcoders] Re: DataGrid with double header

2009-06-09 Thread grg_blls
Hi,
ADG is standard part of controls in FB3 (as DataGrid is). What version of FB 
are using?
George
 
--- In flexcoders@yahoogroups.com, mhbmarcos mhbmar...@... wrote:

 Thanks grg_blls.
 But now, not compilet the source:
  AdvancedDataGrid not found
 
 and, i find in internet, but see datavisualization, and can´t find the 
 download place
 
 any solution for this?
 
 thanks
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  You should be using Advanced DataGrid with Grouped Columns.
  
  George
  
  --- In flexcoders@yahoogroups.com, mhbmarcos mhbmarcos@ wrote:
  
   hi!!!
   i need have a datagrid with double header
   eg:
   
header1  |header2
   subHeader1 | subHeader2   |   subHeader3  | subHeader4
   
   do you have any example or workaround?
   
   thanks
  
 





[flexcoders] Variable Scope, Lifetime across pages

2009-06-09 Thread martinosaint
Hi,

I ran into the following issue. I have a Flex application with multiple pages, 
and the navigation is done via a TabNavigator.

Now if I navigate around, each mxml component within the Tab Navigator gets 
called. However, if I navigate away from page A, and come back later to it, the 
member variables are still instantiated and have all their values assigned.

Is there a way to force Flex to reinstantiate the component each time it is 
called?

I am having the problem because I come back with a different ID for this page, 
thus I need to refresh everything and reload new data, but I do not want to 
reset, and re-initialize all member variables manually.

Thx,
Martin



Re: [flexcoders] Getting session in Flex

2009-06-09 Thread Rajan Jain
Use

FlexContext.getHttpRequest
or

something is above lines.

thanks
ilikeflex




From: nhid nhi...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Monday, June 8, 2009 5:07:33 PM
Subject: [flexcoders] Getting session in Flex





Hello,

How do I get an HttpSession from Flex to pass to the java backend?

Thank you for your help.



  

[flexcoders] Re: Flex and .NET

2009-06-09 Thread valdhor
I don't understand why you would send the entire data set back to your .NET 
backend via the web service.

The backend has already generated the data to be sent and the backend is what 
generates the report via Crystal Reports. I would have thought the best way was 
to send the query back to the back end, get it to do the data lookup again and 
pass the data into Crystal Reports.


HTH



Steve


--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 
 
 Hi Sam,
 
 Thanks for your reply.
 
 As of now, I actually prefer to utilize what I know on .NET and what I am 
 learning on Flex. Adding another utility (Web Orb) in my learning process may 
 complicate things a bit.  I might consult this later if I feel that the needs 
 for is getting tremendous.
 
 Anyway, I am actually able to generate the report from what I am currently 
 doing (no error encountered), where the ArrayCollection I am parsing into a 
 delimited string, passing the string to the webservice call, and letting the 
 webservice de-serialize the string to populate a Crystal report document 
 which I subsequentlt display in another browser window which I call from the 
 Flex application.
 
 I mentioned that I did not feel it is the BEST way because I am literally 
 storing all datagrid (report) information in a string variable.  Assuming for 
 example that the data displayed in the datagrid is quite huge, then creating 
 the delimited string would take some time and additional processing time 
 could also be consumbed by the back end web service to parse the string and 
 populate the report.
 
 As of now, this is what the application does.
 1. Flex App calls a webservice to retrieve data.
 2. WebService responds by sending back a dataset which is returned as a 
 string (via Dataset.GetXML method of .NET).
 3. Flex App gets the service response, converts the string into an XML.
 4. Flex App converts the XML data into an ArrayCollection which is bound to 
 the datagrid.
 * Please note that I used array collection here for the search/filter 
 functionality of the datagrid.
 5. When generating print out of the data displayed in the datagrid, Flex 
 would then serialize the ArrayCollection into a delimited string and send it 
 to the web service.
 6. Web Service would then de-serialize (or parse) the string, populate a .NET 
 dataset which is the datasource for the Crystal report.
 7. Crystal report is bound and PDF report is generated.
 8. Flex displays via external javascript call the PDF report generated.
 
 Is there a better way for the ArrayCollection to be sent to the webservice, 
 the webservice in turn would just convert it to dataset and the dataset is 
 immediately bound to the Crystal report?  
 
 Thanks.
 
 Regards,
 
 Angelo
 
 
 
 From: Sam Lai samuel@...
 To: flexcoders@yahoogroups.com
 Sent: Monday, 8 June, 2009 8:49:36
 Subject: Re: [flexcoders] Flex and .NET
 
 
 
 
 
 2009/6/8 Angelo Anolin angelo_anolin@ yahoo.com:
 
  I feel that this is probably not the BEST way of doing this.  I tried
  initially to pass an XML delimmited string, but .NET seems to read XML
  differently( ?) from Flex.
 
 I'd say XML would be a good way of doing it. What kind of errors are
 you getting, and how are you making the web service call?
 
 The other option is to use AMF, a native messaging format for
 Flash/Flex. This I believe would save you the effort of serializing
 and deserializing - it does it for you, among other things.
 
 http://www.themidni ghtcoders. com/products/ weborb-for- net/overview. html





[flexcoders] Re: ADG/DataGrid cell change performance on large data set

2009-06-09 Thread valdhor
We would need to know more before we could take a stab in the dark.

Do you have a simple example showing the problem?


--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote:

 --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote:
 
  
  When I edit a cell and press Tab to move horizontally to the next cell in 
  the same row the grid behaves wonderfully. If however, I make my next 
  selection to another row this becomes incredibly slow (10-15 seconds). Is 
  there any reason for this slowdown? I'm using a ArrayCollection of typed 
  objects as my main data source. The source is between 100-5000k rows. 
  Surely it doesn't take Flex this long to switch rows. Is there anything I'm 
  missing?
 
 
 Bump, this is a serious adoption issue preventing us from giving the grid a 
 stamp that its ready.





[flexcoders] Parser Error in mx:ComboBox DataProvider

2009-06-09 Thread Angelo Anolin
Hi Flexcoders,

Little error which I cannot seem to get off.

I am declaring a private ArrayCollection and setting the combobox dataprovider 
to the arraycollection.

My combobox is inside a datagrid Itemrenderer tag.

When I set the dataprovider for the combobox, I get a red mark stating Parser 
error in mx:combobox.

Any advice? Thanks.

Angelo



  

Re: [flexcoders] Re: Flex and .NET

2009-06-09 Thread Angelo Anolin
Hi Steve,

The dataset which I am using in my Flex app is being edited, with some records 
added or deleted or filtered.  As I am doing this in the Flex application, the 
backend service (web service) does not know which have been modified, thus, I 
need to send back the current data I have in the Flex application.

By the way, some updates on this.

I tried to send the ArrayCollection as it is in .NET and I am getting the same 
as an ArrayList, which contains XML document tags.  The only beef with this is 
that there is no actual tag for the field (column), so I have no idea which 
column to actually map back to the dataset.

I am going to field portions of the data returned back tomorrow, as my codes 
are all in my office machine.

Thanks and regards,

Angelo








From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, 9 June, 2009 21:31:56
Subject: [flexcoders] Re: Flex and .NET





I don't understand why you would send the entire data set back to your .NET 
backend via the web service.

The backend has already generated the data to be sent and the backend is what 
generates the report via Crystal Reports. I would have thought the best way was 
to send the query back to the back end, get it to do the data lookup again and 
pass the data into Crystal Reports.

HTH

Steve

--- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote:

 
 
 Hi Sam,
 
 Thanks for your reply.
 
 As of now, I actually prefer to utilize what I know on .NET and what I am 
 learning on Flex. Adding another utility (Web Orb) in my learning process may 
 complicate things a bit.  I might consult this later if I feel that the needs 
 for is getting tremendous.
 
 Anyway, I am actually able to generate the report from what I am currently 
 doing (no error encountered) , where the ArrayCollection I am parsing into a 
 delimited string, passing the string to the webservice call, and letting the 
 webservice de-serialize the string to populate a Crystal report document 
 which I subsequentlt display in another browser window which I call from the 
 Flex application.
 
 I mentioned that I did not feel it is the BEST way because I am literally 
 storing all datagrid (report) information in a string variable.  Assuming for 
 example that the data displayed in the datagrid is quite huge, then creating 
 the delimited string would take some time and additional processing time 
 could also be consumbed by the back end web service to parse the string and 
 populate the report.
 
 As of now, this is what the application does.
 1. Flex App calls a webservice to retrieve data.
 2. WebService responds by sending back a dataset which is returned as a 
 string (via Dataset.GetXML method of .NET).
 3. Flex App gets the service response, converts the string into an XML.
 4. Flex App converts the XML data into an ArrayCollection which is bound to 
 the datagrid.
 * Please note that I used array collection here for the search/filter 
 functionality of the datagrid.
 5. When generating print out of the data displayed in the datagrid, Flex 
 would then serialize the ArrayCollection into a delimited string and send it 
 to the web service.
 6. Web Service would then de-serialize (or parse) the string, populate a .NET 
 dataset which is the datasource for the Crystal report.
 7. Crystal report is bound and PDF report is generated.
 8. Flex displays via external javascript call the PDF report generated.
 
 Is there a better way for the ArrayCollection to be sent to the webservice, 
 the webservice in turn would just convert it to dataset and the dataset is 
 immediately bound to the Crystal report?  
 
 Thanks.
 
 Regards,
 
 Angelo
 
 
  _ _ __
 From: Sam Lai samuel.lai@ ...
 To: flexcod...@yahoogro ups.com
 Sent: Monday, 8 June, 2009 8:49:36
 Subject: Re: [flexcoders] Flex and .NET
 
 
 
 
 
 2009/6/8 Angelo Anolin angelo_anolin@ yahoo.com:
 
  I feel that this is probably not the BEST way of doing this.  I tried
  initially to pass an XML delimmited string, but .NET seems to read XML
  differently( ?) from Flex.
 
 I'd say XML would be a good way of doing it. What kind of errors are
 you getting, and how are you making the web service call?
 
 The other option is to use AMF, a native messaging format for
 Flash/Flex. This I believe would save you the effort of serializing
 and deserializing - it does it for you, among other things.
 
 http://www.themidni ghtcoders. com/products/ weborb-for- net/overview. html



   


  

Re: [flexcoders] Parser Error in mx:ComboBox DataProvider

2009-06-09 Thread Jeffry Houser


I this a run time error or compiler error? 
 Can we see Code? 

Are  the private variable and ComboBox defined int he same component? 


Angelo Anolin wrote:



Hi Flexcoders,

Little error which I cannot seem to get off.

I am declaring a private ArrayCollection and setting the combobox 
dataprovider to the arraycollection.


My combobox is inside a datagrid Itemrenderer tag.

When I set the dataprovider for the combobox, I get a red mark stating 
Parser error in mx:combobox.


Any advice? Thanks.

Angelo






--
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: [flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Angelo Anolin
I have actually thought about this, that is why I am trying to send the whole 
array collection back to the .NET web service.  So far, I have managed to get 
some grasp on this, but I think am missing something because when the 
arraycollection is processed in the backend .NET, there is no column name 
mapping with which the original data's column came from.

Say in my Flex App I have Columns1, Columns2, Columns3.  When I send the array 
collection to the .NET WebService, the first item in the ArrayList does not 
necessarily correspond to the first column and so forth.

Thanks for the pointers. Good to learn a lot lot more.





From: Tim Hoff timh...@aol.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, 9 June, 2009 0:05:49
Subject: [flexcoders] Re: ArrayCollection to Delimited String





Good point.  I suppose that you could throw in some regex to strip that 
character out of the objects before concatenating.  It's an edge case though.  
Pipe delimited strings are common in legacy systems; due to the rare usage of a 
pipe in text.
-TH

--- In flexcod...@yahoogro ups.com, Johannes Nel johannes.nel@ ... wrote:

 if this has to be imported somewhere else you need to consider, what happens
 if your delimiter is in a piece of text?
 
 On Sun, Jun 7, 2009 at 2:25 PM, Angelo Anolin angelo_anolin@ ...wrote:
 
 
 
  Hi Tim,
 
  Thanks for the tip(s). Was able to make this thing work out.
 
  Regards,
 
  Angelo
 
   - -
  *From:* Tim Hoff timh...@...
  *To:* flexcod...@yahoogro ups.com
  *Sent:* Friday, 5 June, 2009 14:05:46
  *Subject:* [flexcoders] Re: ArrayCollection to Delimited String
 
  Well, let's not assume anything:
 
  private *function* parseArrayCollectio n():*void*
  {
  *var* myString:String = **;
 
  *for* *each* ( *var* myObject:Object *in* myAC )
  {
  myString += myObject.label + *|* + myObject.data + *||*;
  }
  *
  trace*(myString) ;
  }
 
  -TH
 
 
  --- In flexcod...@yahoogro ups.com, Tim Hoff TimHoff@ wrote:
  
  
   Assuming that you don't want the trailing pipes:
  
   private function parseArrayCollectio n():void {
  
  
  
   var myString:String = ;
  
  
  
   for each ( var myObject:Object in myAC )
   {
   myString += myObject.label + | + myObject.data;
  
   if ( myAC.getItemIndex( myObject )  myAC.length - 1 )
   {
   myString += |;
   }
   }
  
   trace(myString) ;
   }
  
   -TH
  
   --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@
   wrote:
   
Hi FlexCoders,
   
Supposed I have an ArrayCollection variable represented like below:
   
mx:ArrayCollection id=myAC
mx:Array id=myArray
mx:Object label=MI data=Lansing /
mx:Object label=MO data=Jefferson City/
mx:Object label=MA data=Boston /
mx:Object label=MT data=Helena /
mx:Object label=ME data=Augusta /
mx:Object label=MS data=Jackson /
mx:Object label=MN data=Saint Paul/
/mx:Array
/mx:ArrayCollection
   
I want to store the same in a String variable where the resulting
   string would be like:
   
var ResultString: String;
ResultString = MI|Lansing| |MO|Jefferson
   City||MA|Boston| |MT|Helena| |ME|Augusta| |MS|Jackson| |MN|Saint Paul||
   
How do I achieve this?
   
Inputs highly appreciated. Thanks.
   
Regards,
   
Angelo
   
  
 
  
 
 
 
 
 -- 
 j:pn
 \\no comment


   


  

Re: [flexcoders] Flex and Reporting

2009-06-09 Thread Angelo Anolin
Some updates on this.

I was able to generate a Crystal Report for this where the Flex application 
opens up in another browser the PDF file which was generated by the report.  
That would suffice for the moment, although I would still love to hear about 
possible reporting options integrated inside the Flex application.

By the way, is there a way to display PDF file on Flex itself?

Thanks and regards.

Angelo





From: Richard Rodseth rrods...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, 5 June, 2009 0:20:45
Subject: Re: [flexcoders] Flex and Reporting





Unfortunately, I don't think there's a great story yet. If an AIR
application is an option for you, you may have more options.

For PDF creation, there's the AlivePDF library, but I'm not aware of
anything to render a PDF within a SWF (short of sending the pages  to
the server for rendering as images).

On Thu, Jun 4, 2009 at 12:58 AM, Angelo Anolin angelo_anolin@ yahoo.com wrote:


 Hi everyone,

 I am totally amazed at the cool front-end UI things that could be done in
 Flex.  I have been dabbling a lot on Flex and steadily getting the hang of
 it.

 Anyway, one thing which I am looking for is on creating and printing
 reports.  I am looking for some resources on how to achieve such things,
 like:

 1. Datagrid - creating a pdf file, open up in the swf application as well.
 2. Crosstab reports
 3. Executive summaries
 4. Free-Form reports

 Basically, am looking on how I would be able to design/generate reports
 which could be used in a Flex application.

 I would certainly welcome advise and feedback on this. Resources for further
 explorations on reporting would also be appreciated.

 Thanks.
 

   


  

[flexcoders] Announcement: Flextras AutoCompleteComboBox

2009-06-09 Thread Jeffry Houser

Hi Everyone,

I'm pleased to announce the release of the Flextras 
AutoCompleteComboBox Flex Component.


The AutoCompleteComboBox is an Advanced ComboBox with AutoComplete 
functionality that allows you to filter your dataProvider as you type, 
including support for remote data.  It also supports multiple character 
type ahead, a selectedValue lookup and the ability to expand the drop 
down to fit the content regardless of ComboBox width.


You can download our no cost developer edition along with samples and 
documentation at http://www.flextras.com/?c=213 .


We host a live question and answer session every Friday in February at 
1 pm EST. You should join us because it's the best way to find out what 
we're all about. Go to http://experts.na3.acrobat.com/flextras/ to learn 
more an ask questions. To find out when this occurs in your time zone: 
http://www.timeanddate.com/worldclock/fixedtime.html?month=2day=6year=2009hou 
r=13min=0sec=0p1=98


Here are some links to find out more:

Register and Download: 
http://www.flextras.com/index.cfm?event=loginFormc=213

Product Page: http://www.flextras.com/?event=ProductHomeproductID=10c=213
Documentation: 
http://www.flextras.com/?event=ProductDocumentationProductID=10c=213

Demos: http://www.flextras.com/?event=ProductSamplesProductID=10c=213
Connect Room ( Every Friday at 1pm EST ): 
http://experts.na3.acrobat.com/flextras/

Flextras Home: http://www.flextras.com/?c=213

Thank you for your interest, I look forward to hearing from you

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


--
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: [flexcoders] Announcement: Flextras AutoCompleteComboBox

2009-06-09 Thread Jeffry Houser


One correction,

 The live QA Sessions have been extended it beyond just February.  It 
is now every Friday.  I apologize for my Cut and paste marketing. 

 If interested, you can view past sessions at 
http://www.flextras.com/blog/index.cfm/Flextras-Friday-Lunch and/or 
subscribe
at 
http://www.flextras.com/blog/rss.cfm?mode=fullmode2=catcatid=DF6B3DD6-5056-1830-B02F17CB4ECB536E



Jeffry Houser wrote:



Hi Everyone,

 I'm pleased to announce the release of the Flextras 
AutoCompleteComboBox Flex Component.


 The AutoCompleteComboBox is an Advanced ComboBox with AutoComplete 
functionality that allows you to filter your dataProvider as you type, 
including support for remote data.  It also supports multiple 
character type ahead, a selectedValue lookup and the ability to expand 
the drop down to fit the content regardless of ComboBox width.


 You can download our no cost developer edition along with samples and 
documentation at http://www.flextras.com/?c=213 .


 We host a live question and answer session every Friday in February 
at 1 pm EST. You should join us because it's the best way to find out 
what we're all about. Go to http://experts.na3.acrobat.com/flextras/ 
to learn more an ask questions. To find out when this occurs in your 
time zone: 
http://www.timeanddate.com/worldclock/fixedtime.html?month=2day=6year=2009hou 
r=13min=0sec=0p1=98


Here are some links to find out more:

Register and Download: 
http://www.flextras.com/index.cfm?event=loginFormc=213
Product Page: 
http://www.flextras.com/?event=ProductHomeproductID=10c=213
Documentation: 
http://www.flextras.com/?event=ProductDocumentationProductID=10c=213

Demos: http://www.flextras.com/?event=ProductSamplesProductID=10c=213
Connect Room ( Every Friday at 1pm EST ): 
http://experts.na3.acrobat.com/flextras/

Flextras Home: http://www.flextras.com/?c=213

Thank you for your interest, I look forward to hearing from you

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

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





--
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] Zoom like Google Map

2009-06-09 Thread christophe_jacquelin
Hello, 

How to make an image zoom like the one in Google map. 
The mouse wheel is setting the zoom level.
And the mouse move on the image move the image.

Thank you,
Christophe



[flexcoders] Drag Drop - maually show red cross or green plus icon

2009-06-09 Thread bhaq1972
During a dragOver event I want to manually show the green plus or red cross 
icon on the dragProxy image. How do I do that?

thanks



Re: [flexcoders] Drag Drop - maually show red cross or green plus icon

2009-06-09 Thread Adrian Williams

Hi there...

   You need to take a look at this:

   DragManager.showFeedback(DragManager.MOVE);

hth
adrian

bhaq1972 wrote:



During a dragOver event I want to manually show the green plus or red 
cross icon on the dragProxy image. How do I do that?


thanks




[flexcoders] How do I Change Event on a CheckBox

2009-06-09 Thread Mark
I'd like to run a function whenever a checkbox has changed regardless if the 
user selects/deselects it or if it changes from a different user action (such 
as resetting filters by clicking a button).  I tried using 
calendarCheckbox.addEventListener(Event.CHANGE, changeCBF); but this only works 
from a user interacting with that checkbox.  How can I do this?

Thanks,
Mark



[flexcoders] How can I edit the datagrid header?

2009-06-09 Thread ujjwalkanti_manna
Hi All,

I am new in the flex world.Could any of you tell us how can I make the datagrid 
column header as editable.So that after user edit the column header it will be 
saved in database.
As I don't know so much about flex so it would be great for me if any of u 
atlease provide some hint regarding this issue.

I look forward to get any response from you.

Regards,

Kanti



[flexcoders] Re: Zoom like Google Map

2009-06-09 Thread kaspar.luethi
don't try too hard - the mousewheel is broken under mac anyway.

vote here
http://bugs.adobe.com/jira/browse/FP-1283

kaspar


 How to make an image zoom like the one in Google map. 
 The mouse wheel is setting the zoom level.
 And the mouse move on the image move the image.
 
 Thank you,
 Christophe



[flexcoders] fabrication--communicate between app and a popup with modules

2009-06-09 Thread jiahuayung
DrinkWine.mxml is my app , -DrinkWineStartupCommand.as ;
 StoreMmodule is a module in this project;
Content.mxml is DrinkWine`s subComponent and reflect ContentMediaor,
PopupStore is my custom popup window reflect StoreMediator,and the PopupStore 
include a canvas names moduleContainer,
 
i load the StoreMmodule  in ContentMediator then send a notification contains 
this moduleLoader to StoreMediator;
 
The StoreMediator can receive the moduleloader as note.getBody() as 
FlexModuleLoader now;
 
 
and i register the DrinkWineMediator and StoreMediator in 
DrinkWineStartupCommand together at first,
 
now i got a error  Error #1009: Cannot access a property or method of a null 
object reference  
 
does this error means i cannot register two mediator as the same time in 
DrinkWineStartupCommand ?



[flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Tim Hoff

This is where using an ArrayCollection of ValueObjects (VO), comes in
handy.  The VO class structure/type in the client maps to a class in the
web service.  So when you pass the ArrayCollection, the web service
knows what the structure of the objects is, and can deal with them
appropriately.  Take a look at WebOrb
http://www.themidnightcoders.com/ , there might be some samples there
that could help.

-TH

--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@...
wrote:

 I have actually thought about this, that is why I am trying to send
the whole array collection back to the .NET web service. So far, I have
managed to get some grasp on this, but I think am missing something
because when the arraycollection is processed in the backend .NET, there
is no column name mapping with which the original data's column came
from.

 Say in my Flex App I have Columns1, Columns2, Columns3. When I send
the array collection to the .NET WebService, the first item in the
ArrayList does not necessarily correspond to the first column and so
forth.

 Thanks for the pointers. Good to learn a lot lot more.




 
 From: Tim Hoff timh...@...
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 9 June, 2009 0:05:49
 Subject: [flexcoders] Re: ArrayCollection to Delimited String





 Good point. I suppose that you could throw in some regex to strip that
character out of the objects before concatenating. It's an edge case
though. Pipe delimited strings are common in legacy systems; due to the
rare usage of a pipe in text.
 -TH

 --- In flexcod...@yahoogro ups.com, Johannes Nel johannes.nel@ ...
wrote:
 
  if this has to be imported somewhere else you need to consider, what
happens
  if your delimiter is in a piece of text?
 
  On Sun, Jun 7, 2009 at 2:25 PM, Angelo Anolin angelo_anolin@
...wrote:
 
  
  
   Hi Tim,
  
   Thanks for the tip(s). Was able to make this thing work out.
  
   Regards,
  
   Angelo
  
    - -
   *From:* Tim Hoff TimHoff@
   *To:* flexcod...@yahoogro ups.com
   *Sent:* Friday, 5 June, 2009 14:05:46
   *Subject:* [flexcoders] Re: ArrayCollection to Delimited String
  
   Well, let's not assume anything:
  
   private *function* parseArrayCollectio n():*void*
   {
   *var* myString:String = **;
  
   *for* *each* ( *var* myObject:Object *in* myAC )
   {
   myString += myObject.label + *|* + myObject.data + *||*;
   }
   *
   trace*(myString) ;
   }
  
   -TH
  
  
   --- In flexcod...@yahoogro ups.com, Tim Hoff TimHoff@ wrote:
   
   
Assuming that you don't want the trailing pipes:
   
private function parseArrayCollectio n():void {
   
   
   
var myString:String = ;
   
   
   
for each ( var myObject:Object in myAC )
{
myString += myObject.label + | + myObject.data;
   
if ( myAC.getItemIndex( myObject )  myAC.length - 1 )
{
myString += |;
}
}
   
trace(myString) ;
}
   
-TH
   
--- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@
wrote:

 Hi FlexCoders,

 Supposed I have an ArrayCollection variable represented like
below:

 mx:ArrayCollection id=myAC
 mx:Array id=myArray
 mx:Object label=MI data=Lansing /
 mx:Object label=MO data=Jefferson City/
 mx:Object label=MA data=Boston /
 mx:Object label=MT data=Helena /
 mx:Object label=ME data=Augusta /
 mx:Object label=MS data=Jackson /
 mx:Object label=MN data=Saint Paul/
 /mx:Array
 /mx:ArrayCollection

 I want to store the same in a String variable where the
resulting
string would be like:

 var ResultString: String;
 ResultString = MI|Lansing| |MO|Jefferson
City||MA|Boston| |MT|Helena| |ME|Augusta| |MS|Jackson| |MN|Saint
Paul||

 How do I achieve this?

 Inputs highly appreciated. Thanks.

 Regards,

 Angelo

   
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 





[flexcoders] Re: Flex and Reporting

2009-06-09 Thread Tim Hoff

Crystal Reports is great for generating data driven .Net reports.  But,
if you wanted to generate a wysiwyg type of report, that mirrors what
the user sees in the flex app, you're going to run into a lot of
problems.  AlivePDF is good for simple client-side pdf report
generation.  However, IMHO, its not quite mature enough of a product
yet, to be a robust solution for enterprise reporting.  So, that leaves
you with using a server-side solution, like Jasper reports of FOP
(java), or bite the bullet and spring for LCDS or WebOrb.  It's funny,
most clients scream for high-fidelity PDF reporting.  But, when they see
the price tag for the last two solutions, they often choose to go
without.

There is a way to display a PDF in Air.  For Flex, you might be able to
hack some kind of iFrame solution, but I haven't heard of anyone that
has pulled that off yet.

-TH

--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@...
wrote:

 Some updates on this.

 I was able to generate a Crystal Report for this where the Flex
application opens up in another browser the PDF file which was generated
by the report. That would suffice for the moment, although I would still
love to hear about possible reporting options integrated inside the Flex
application.

 By the way, is there a way to display PDF file on Flex itself?

 Thanks and regards.

 Angelo




 
 From: Richard Rodseth rrods...@...
 To: flexcoders@yahoogroups.com
 Sent: Friday, 5 June, 2009 0:20:45
 Subject: Re: [flexcoders] Flex and Reporting





 Unfortunately, I don't think there's a great story yet. If an AIR
 application is an option for you, you may have more options.

 For PDF creation, there's the AlivePDF library, but I'm not aware of
 anything to render a PDF within a SWF (short of sending the pages to
 the server for rendering as images).

 On Thu, Jun 4, 2009 at 12:58 AM, Angelo Anolin angelo_anolin@
yahoo.com wrote:
 
 
  Hi everyone,
 
  I am totally amazed at the cool front-end UI things that could be
done in
  Flex. I have been dabbling a lot on Flex and steadily getting the
hang of
  it.
 
  Anyway, one thing which I am looking for is on creating and printing
  reports. I am looking for some resources on how to achieve such
things,
  like:
 
  1. Datagrid - creating a pdf file, open up in the swf application as
well.
  2. Crosstab reports
  3. Executive summaries
  4. Free-Form reports
 
  Basically, am looking on how I would be able to design/generate
reports
  which could be used in a Flex application.
 
  I would certainly welcome advise and feedback on this. Resources for
further
  explorations on reporting would also be appreciated.
 
  Thanks.
 






[flexcoders] Re: How do I Change Event on a CheckBox

2009-06-09 Thread Tim Hoff

Hi Mark,

import mx.events.FlexEvent;

calendarCheckbox.addEventListener(FlexEvent.VALUE_COMMIT, changeCBF);

Notice that this is a FlexEvent; rather than a regular Event.  So:

private function changeCBF( event:FlexEvent ):void

-TH

--- In flexcoders@yahoogroups.com, Mark mark.pusat...@... wrote:

 I'd like to run a function whenever a checkbox has changed regardless
if the user selects/deselects it or if it changes from a different user
action (such as resetting filters by clicking a button). I tried using
calendarCheckbox.addEventListener(Event.CHANGE, changeCBF); but this
only works from a user interacting with that checkbox. How can I do
this?

 Thanks,
 Mark





[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Amy
--- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote:

 That was a good idea and it does get rid of the arraycollection walking.
 But I get the SAME problem with the grid losing highlighting when I did it
 using AdvancedGridItemRenderer, thought the symptoms are slightly different:

Personally, I'd do one of two things:

1) Just look to see if the current item is the highlighted item in the 
styleFunction

-or-

2) Override commitProperties instead of validateNow().

I'd also be tempted to investigate whether the styleFunction gets called when 
the highlighted object changes.

HTH;

Amy



[flexcoders] URL pound sign questions

2009-06-09 Thread creativepragmatic
Hello Everyone,

I have 2 questions about the url pound sign:

1. Flex includes the pound symbol at the end of every URL 
(http://www.mysite.com/folder/#).  Is it possible to remove the pound symbol 
(http://www.mysite.com/folder/)?

2. In a social networking site, could 'user' in the URL, 
www.socialsite.com/user, be parsed by Flex to display that user's profile? This 
does not seem possible but a client asked for it.

Thank you in advance for any useful insights,

Orville



[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread valdhor
Here is my take on what you are trying to do...

Application:
?xml version=1.0 encoding=utf-8?
Application xmlns=http://www.adobe.com/2006/mxml;
   creationComplete=cc() layout=horizontal
   Script
 ![CDATA[
   import mx.events.ListEvent;
   import mx.collections.ArrayCollection;

   [Bindable] public var d:ArrayCollection = new ArrayCollection([]);
   private const ITEM_COUNT:int = 15;

   private function cc():void
   {
 for (var i:int = 0; i  ITEM_COUNT; i++)
 {
   var item:TestObject = new TestObject;
   item.label = Item  + i;
   d.addItem(item);
 }
   }
 ]]
   /Script
   AdvancedDataGrid id=list dataProvider={d} height=100%
 columns
   AdvancedDataGridColumn dataField=label
itemRenderer=MyItemRenderer/
 /columns
   /AdvancedDataGrid
/Application

MyItemRenderer.as:
package
{
 import flash.events.MouseEvent;
 import mx.collections.ArrayCollection;
 import mx.controls.AdvancedDataGrid;
 import mx.controls.LinkButton;
 import mx.controls.dataGridClasses.DataGridListData;

 public class MyItemRenderer extends LinkButton
 {
 private var theData:Object;

 public function MyItemRenderer()
 {
 super();
 }

 override public function set data(value:Object):void
 {
 super.data = value;
 theData = value;
 if(value != null)
 {
 label = value[DataGridListData(listData).dataField];
 if(theData.highlighted)
 {
 setStyle(fontWeight, bold);
 }
 else
 {
 setStyle(fontWeight, normal);
 }
 addEventListener(MouseEvent.MOUSE_OVER,
changeDataProvider);
 }
 }

 private function changeDataProvider(event:MouseEvent):void
 {
 var dp:ArrayCollection = ((event.target as
MyItemRenderer).owner as AdvancedDataGrid).dataProvider as
ArrayCollection;
 var rowCount:int = 0;
 for each(var testObject:TestObject in dp)
 {
 if((dp[rowCount] as TestObject).label == theData.label)
 {
 (((event.target as MyItemRenderer).owner as
AdvancedDataGrid).dataProvider[rowCount] as TestObject).highlighted =
true;
 }
 else
 {
 (((event.target as MyItemRenderer).owner as
AdvancedDataGrid).dataProvider[rowCount] as TestObject).highlighted =
false;
 }
 rowCount++;
 }
 }
 }
}


HTH



Steve




[flexcoders] Help with a RegExp

2009-06-09 Thread fumeng5
Hi,

I have a filter function for an array collection that I'm working with. In this 
scenario, I start with an ID such as '1'. Based on that, I want to return 
'1_1', '1_2', etc... Basically, an underscore followed by 1 digit. 

Here's the code:

var currentID:String = item.id.toString(); // i.e. 1_1, 1_2, etc..
var testID:String = buttonID + '_'; // buttonID would equal 1
var pattern:RegExp = new RegExp('^' + testID + .); 

if( pattern.exec( currentID ))
return true;
else
return false;

The problem is that this filter is also returning other IDs such as '1_1_2', 
'1_1_3'. I thought the '.' would limit it 1 character only after the 
underscore. 

Can anyone see where I may be going wrong? 

Thank you!



[flexcoders] Re: HTTPService.send(params) and nothing happens?

2009-06-09 Thread valdhor
You need to POST to your PHP code (Not to your HTML).

Here is a very quick and dirty example:

Flex Application:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical horizontalAlign=center
 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;

 private function handleLogin():void
 {
 var credentials:Object = new Object();
 credentials.username = username.text;
 credentials.password = password.text;
 authenticateUser.send(credentials);
 }

 private function checkAuthenticated(event:ResultEvent):void
 {
 if((event.result as String) == Success)
 {
 Alert.show(Authentication Successful);
 }
 else
 {
 Alert.show(Authentication Failed);
 }
 }
 ]]
 /mx:Script
 mx:HTTPService resultFormat=text
result=checkAuthenticated(event) id=authenticateUser
 url=http://myserver.com/checkauthentication.php;
showBusyCursor=true
 useProxy=false method=POST/
 mx:Panel id=loginPanel
 mx:Form id=loginForm left=10 right=10 bottom=10
top=10
 mx:FormHeading label=Welcome/
 mx:FormItem label=User Name
 mx:TextInput id=username/
 /mx:FormItem
 mx:FormItem label=Password
 mx:TextInput id=password displayAsPassword=true/
 /mx:FormItem
 /mx:Form
 mx:HBox horizontalAlign=right paddingRight=10
paddingBottom=10 width=100%
 mx:Button label=Log in click=handleLogin()/
 /mx:HBox
 /mx:Panel
/mx:Application

PHP Code (checkauthentication.php):
?php
$username = $_POST[username];
$password = $_POST[password];

if($username == Steve  $password == letmein)
{
 print(Success);
}
else
{
 print(Failure);
}
?


HTH



Steve



 Hi,

 I am using POST. In the simplest of terms, I'm trying to access a web
page that requires login with username and password. The client is not
exposing web services or a database port, but I can create a customized
PHP access page. The requirement is for a customer who downloads an
application to enter their username and password into the application
before the application unlocks itself. The application needs to connect
to the web site to check authorization, remember, no web service or
direct jdbc access.

 So what I'm trying to accomplish, and maybe I'm just going about it
all the wrong way is : Access a web site from a remote location, provide
a username and password, receive an OK or FAIL.

 What I've been trying to do is use a PHP form on the site. I can
manually browse to the page , type in the id/password and get directed
to an OK page. Can't seem to do this with HTTPService. Presumably I
should be able to do anything I can do with a browser client. so what am
I doing wrong?




[flexcoders] Re: Variable Scope, Lifetime across pages

2009-06-09 Thread valdhor
You will need to monitor a couple of events: creationComplete and show. The 
creationComplete event will fire once when the tab is first instantiated; show 
will fire each time the tab is shown EXCEPT on first instantiation.


HTH



Steve

--- In flexcoders@yahoogroups.com, martinosaint mar...@... wrote:

 Hi,
 
 I ran into the following issue. I have a Flex application with multiple 
 pages, and the navigation is done via a TabNavigator.
 
 Now if I navigate around, each mxml component within the Tab Navigator gets 
 called. However, if I navigate away from page A, and come back later to it, 
 the member variables are still instantiated and have all their values 
 assigned.
 
 Is there a way to force Flex to reinstantiate the component each time it is 
 called?
 
 I am having the problem because I come back with a different ID for this 
 page, thus I need to refresh everything and reload new data, but I do not 
 want to reset, and re-initialize all member variables manually.
 
 Thx,
 Martin





RE: [flexcoders] URL pound sign questions

2009-06-09 Thread Jake Churchill
Why not use some kind of SES URL parser like Ionic or apache's mod_rewrite
and strip that off.  Or you could set up a 404 page that attempts to look up
the user based on whatever is after the '/' and pass the corresponding user
info to Flex.  I'd pass just the ID then grab the rest of the data as
necessary through remoting.

 

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of creativepragmatic
Sent: Tuesday, June 09, 2009 12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] URL pound sign questions

 






Hello Everyone,

I have 2 questions about the url pound sign:

1. Flex includes the pound symbol at the end of every URL
(http://www.mysite.com/folder/# http://www.mysite.com/folder/ ). Is it
possible to remove the pound symbol (http://www.mysite.com/folder/)?

2. In a social networking site, could 'user' in the URL,
www.socialsite.com/user, be parsed by Flex to display that user's profile?
This does not seem possible but a client asked for it.

Thank you in advance for any useful insights,

Orville



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.56/2162 - Release Date: 06/09/09
05:53:00



[flexcoders] Re: How do I Change Event on a CheckBox

2009-06-09 Thread Mark
Beautiful!  That did it, thanks much.

-M


--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Hi Mark,
 
 import mx.events.FlexEvent;
 
 calendarCheckbox.addEventListener(FlexEvent.VALUE_COMMIT, changeCBF);
 
 Notice that this is a FlexEvent; rather than a regular Event.  So:
 
 private function changeCBF( event:FlexEvent ):void
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Mark mark.pusateri@ wrote:
 
  I'd like to run a function whenever a checkbox has changed regardless
 if the user selects/deselects it or if it changes from a different user
 action (such as resetting filters by clicking a button). I tried using
 calendarCheckbox.addEventListener(Event.CHANGE, changeCBF); but this
 only works from a user interacting with that checkbox. How can I do
 this?
 
  Thanks,
  Mark
 





[flexcoders] Re: URL pound sign questions

2009-06-09 Thread creativepragmatic
Thank you Jake.  That definitely helps.

--- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote:

 Why not use some kind of SES URL parser like Ionic or apache's mod_rewrite
 and strip that off.  Or you could set up a 404 page that attempts to look up
 the user based on whatever is after the '/' and pass the corresponding user
 info to Flex.  I'd pass just the ID then grab the rest of the data as
 necessary through remoting.
 
  
 
 Jake Churchill
 CF Webtools
 11204 Davenport, Ste. 100
 Omaha, NE  68154
  http://www.cfwebtools.com http://www.cfwebtools.com
 402-408-3733 x103




[flexcoders] Re: Help with a RegExp

2009-06-09 Thread valdhor
The . matches any single character but does not limit the string length so 
you would also want to check the length of the string as well.

if(currentID.length == testID.length + 1  pattern.exec(currentID))


--- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote:

 Hi,
 
 I have a filter function for an array collection that I'm working with. In 
 this scenario, I start with an ID such as '1'. Based on that, I want to 
 return '1_1', '1_2', etc... Basically, an underscore followed by 1 digit. 
 
 Here's the code:
 
 var currentID:String = item.id.toString(); // i.e. 1_1, 1_2, etc..
 var testID:String = buttonID + '_'; // buttonID would equal 1
 var pattern:RegExp = new RegExp('^' + testID + .); 
 
 if( pattern.exec( currentID ))
 return true;
 else
 return false;
 
 The problem is that this filter is also returning other IDs such as '1_1_2', 
 '1_1_3'. I thought the '.' would limit it 1 character only after the 
 underscore. 
 
 Can anyone see where I may be going wrong? 
 
 Thank you!





[flexcoders] Re: URL pound sign questions

2009-06-09 Thread valdhor
The server side code can parse the user and send it to Flex via FlashVars OR 
you could use deep linking and use the # to set the user 
www.socialsite.com/mysite.html#user 


--- In flexcoders@yahoogroups.com, creativepragmatic creativepragma...@... 
wrote:

 Hello Everyone,
 
 I have 2 questions about the url pound sign:
 
 1. Flex includes the pound symbol at the end of every URL 
 (http://www.mysite.com/folder/#).  Is it possible to remove the pound symbol 
 (http://www.mysite.com/folder/)?
 
 2. In a social networking site, could 'user' in the URL, 
 www.socialsite.com/user, be parsed by Flex to display that user's profile? 
 This does not seem possible but a client asked for it.
 
 Thank you in advance for any useful insights,
 
 Orville





Re: [flexcoders] Help with a RegExp

2009-06-09 Thread thomas parquier

 var pattern:RegExp = new RegExp('^' + testID + .$);

should work.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/6/9 fumeng5 fume...@yahoo.com



 Hi,

 I have a filter function for an array collection that I'm working with. In
 this scenario, I start with an ID such as '1'. Based on that, I want to
 return '1_1', '1_2', etc... Basically, an underscore followed by 1 digit.

 Here's the code:

 var currentID:String = item.id.toString(); // i.e. 1_1, 1_2, etc..
 var testID:String = buttonID + '_'; // buttonID would equal 1
 var pattern:RegExp = new RegExp('^' + testID + .);

 if( pattern.exec( currentID ))
 return true;
 else
 return false;

 The problem is that this filter is also returning other IDs such as
 '1_1_2', '1_1_3'. I thought the '.' would limit it 1 character only after
 the underscore.

 Can anyone see where I may be going wrong?

 Thank you!

  



[flexcoders] Re: Help with a RegExp

2009-06-09 Thread fumeng5
Yeah, I guess that I thought it would limit the String length. But your 
solution worked so thank you!
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 The . matches any single character but does not limit the string length so 
 you would also want to check the length of the string as well.
 
 if(currentID.length == testID.length + 1  pattern.exec(currentID))
 
 
 --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote:
 
  Hi,
  
  I have a filter function for an array collection that I'm working with. In 
  this scenario, I start with an ID such as '1'. Based on that, I want to 
  return '1_1', '1_2', etc... Basically, an underscore followed by 1 digit. 
  
  Here's the code:
  
  var currentID:String = item.id.toString(); // i.e. 1_1, 1_2, etc..
  var testID:String = buttonID + '_'; // buttonID would equal 1
  var pattern:RegExp = new RegExp('^' + testID + .); 
  
  if( pattern.exec( currentID ))
  return true;
  else
  return false;
  
  The problem is that this filter is also returning other IDs such as 
  '1_1_2', '1_1_3'. I thought the '.' would limit it 1 character only after 
  the underscore. 
  
  Can anyone see where I may be going wrong? 
  
  Thank you!
 





[flexcoders] multiple filters on XMLListCollection

2009-06-09 Thread munene_uk
is this possible or are multiple filters only applicable to an array collection?



[flexcoders] how can you make the icon in an AdvancedDataGridGroupItemRenderer accept clicks?

2009-06-09 Thread Pan Troglodytes
I've got a bit of a problem and haven't been able to figure it out.  When
using hierarchical views with ADG, I find that the icon can't be clicked on
to select the row.  I can't figure out how to capture a click on the icon at
all.

?xml version=1.0 encoding=utf-8?
Application
  xmlns=http://www.adobe.com/2006/mxml;
  
  Script
![CDATA[
  // put any icon you want in the embed below, doesn't matter
  [Bindable] [Embed(source=imageA.png)] private var imgClass:Class;

  private function geticon(item:Object):Class
  {
return imgClass;
  }
]]
  /Script
  AdvancedDataGrid iconFunction=geticon itemClick=trace('itemclick')
click=trace('gridclick')
dataProvider
  HierarchicalData childrenField=subitems source={[{label:'test'},
{label:'test2'}]}/
/dataProvider
columns
  AdvancedDataGridColumn dataField=label/
 /columns
  /AdvancedDataGrid
/Application

If you click anywhere but the icon, the gridclick and itemclick events both
fire.  But if you click on the icon, you get only the gridclick.  And the
gridclick event doesn't get anything useful for target/currentTarget, as far
as I can tell.

The main thing I really want to do is have clicking on the icon select the
row, just like clicking anywhere else will do.  Tangentially, it would be
nice to know how to capture the event in case I wanted to do something
different with clicking on the icon.

-- 
Jason


Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Pan Troglodytes
1) Yes, this works fine, for the display portion only.  It doesn't address
the actual problem of needing to set a flag in the data that indicates it is
the currently highlighted one, that flag being also used by other things
that bind to the data that don't want to know about UI details like the
grid.  In this case, I had a number of chart listeners that would toggle
series on/off depending on which one was highlighted in the grid.

2) There is no commitProperties on AdvancedDataGridItemRenderer.  Perhaps
you meant validateProperties.  In this example, it gets called only when the
grid is first displayed and not when any item is highlighted/de-highlighted
or selected/de-selected.

3) Yes, the styleFunction does get called when the highlighted object
changes.  But if you move the code to set data.highlighted there, you get
the same result!  It just seems like anything that changes this bound
variable on every repaint of the cell is doomed to break the rollover
highlight.

On Tue, Jun 9, 2009 at 11:49 AM, Amy amyblankens...@bellsouth.net wrote:



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan
 Troglodytes chimpathe...@... wrote:
 
  That was a good idea and it does get rid of the arraycollection walking.
  But I get the SAME problem with the grid losing highlighting when I did
 it
  using AdvancedGridItemRenderer, thought the symptoms are slightly
 different:

 Personally, I'd do one of two things:

 1) Just look to see if the current item is the highlighted item in the
 styleFunction

 -or-

 2) Override commitProperties instead of validateNow().

 I'd also be tempted to investigate whether the styleFunction gets called
 when the highlighted object changes.

 HTH;

 Amy

  




-- 
Jason


[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff

Just a thought, but what if you call drawHighlightIndicator manually;
after you set the variable?  Maybe even callLater.

-TH

--- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@...
wrote:

 1) Yes, this works fine, for the display portion only. It doesn't
address
 the actual problem of needing to set a flag in the data that indicates
it is
 the currently highlighted one, that flag being also used by other
things
 that bind to the data that don't want to know about UI details like
the
 grid. In this case, I had a number of chart listeners that would
toggle
 series on/off depending on which one was highlighted in the grid.

 2) There is no commitProperties on AdvancedDataGridItemRenderer.
Perhaps
 you meant validateProperties. In this example, it gets called only
when the
 grid is first displayed and not when any item is
highlighted/de-highlighted
 or selected/de-selected.

 3) Yes, the styleFunction does get called when the highlighted object
 changes. But if you move the code to set data.highlighted there, you
get
 the same result! It just seems like anything that changes this bound
 variable on every repaint of the cell is doomed to break the rollover
 highlight.

 On Tue, Jun 9, 2009 at 11:49 AM, Amy amyblankens...@... wrote:

 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Pan
  Troglodytes chimpathetic@ wrote:
  
   That was a good idea and it does get rid of the arraycollection
walking.
   But I get the SAME problem with the grid losing highlighting when
I did
  it
   using AdvancedGridItemRenderer, thought the symptoms are slightly
  different:
 
  Personally, I'd do one of two things:
 
  1) Just look to see if the current item is the highlighted item in
the
  styleFunction
 
  -or-
 
  2) Override commitProperties instead of validateNow().
 
  I'd also be tempted to investigate whether the styleFunction gets
called
  when the highlighted object changes.
 
  HTH;
 
  Amy
 
 
 



 --
 Jason






[flexcoders] Itemrenderers style?

2009-06-09 Thread flexaustin
Below is my custom item renderer, but the styles in my style source do not show 
up when the itemrenderer is used in a datagrid.  I have a tootlip style and it 
shows up every where in the app, but inside the itemrender.

TIA

?xml version=1.0 encoding=utf-8?
LinkButton xmlns=http://ns.adobe.com/mxml/2009;
styleName=callOutHeader
color=#00
maxWidth=270 
label={da...@name}
labelPlacement=left
toolTip=IP Adress : {da...@ip}
left=5 
rollOver={event.target.setStyle('textDecoration', 'underline') }
rollOut={event.target..setStyle('textDecoration', 'none')}

Style source=assets/style/style.css /
Script
![CDATA[
 public function handleClick(e:Event):void{
navigateToURL( new URLRequest( true ? 'www.google.com'  ), 
'_self' );
 }
 
 override protected function commitProperties():void{
this.styleName = this.className;
 }
]]
/Script

/LinkButton




Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Paul Williams
When you set the highlighted property on your items, they are
dispatching PropertyChangeEvents. The collection they are in will
receive these PropertyChangeEvents and dispatch CollectionChangeEvents.
The AdvancedDataGrid will receive these and perform a visual update,
which appears to clear the rollover highlight.

To prevent the rollover highlight clearing you need to avoid dispatching
PropertyChangeEvents when you update the hightlighted property. Which
means you need to use a custom event in your binding (see below). This
should fix the choppiness without breaking the binding, although you
might want to rethink this whole approach: When you select an item in a
datagrid it sets the selectedItem property; it doesn't update the
underlying data items. Why not follow this pattern for tracking which
item is rolled over?

package
{
import flash.events.EventDispatcher;

  public class TestObject extends EventDispatcher
  {
[Bindable]
public var label:String;

private var _highlighted:Boolean;

public function get highlighted() : Boolean
{
return _highlighted;
}

[Bindable( event = highlightedChange )]
public function set highlighted( highlighted : Boolean ) : void
{
_highlighted = highlighted;
dispatchEvent( new Event( highlightedChange ) );
}
  }
}

Pan Troglodytes wrote:
 1) Yes, this works fine, for the display portion only.  It doesn't address
 the actual problem of needing to set a flag in the data that indicates it is
 the currently highlighted one, that flag being also used by other things
 that bind to the data that don't want to know about UI details like the
 grid.  In this case, I had a number of chart listeners that would toggle
 series on/off depending on which one was highlighted in the grid.

 2) There is no commitProperties on AdvancedDataGridItemRenderer.  Perhaps
 you meant validateProperties.  In this example, it gets called only when the
 grid is first displayed and not when any item is highlighted/de-highlighted
 or selected/de-selected.

 3) Yes, the styleFunction does get called when the highlighted object
 changes.  But if you move the code to set data.highlighted there, you get
 the same result!  It just seems like anything that changes this bound
 variable on every repaint of the cell is doomed to break the rollover
 highlight.

 On Tue, Jun 9, 2009 at 11:49 AM, Amy amyblankens...@bellsouth.net wrote:

   
 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan
 Troglodytes chimpathe...@... wrote:
 
 That was a good idea and it does get rid of the arraycollection walking.
 But I get the SAME problem with the grid losing highlighting when I did
   
 it
 
 using AdvancedGridItemRenderer, thought the symptoms are slightly
   
 different:

 Personally, I'd do one of two things:

 1) Just look to see if the current item is the highlighted item in the
 styleFunction

 -or-

 2) Override commitProperties instead of validateNow().

 I'd also be tempted to investigate whether the styleFunction gets called
 when the highlighted object changes.

 HTH;

 Amy

  

 



   





[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff

Nice Paul,

So, extend ADG and add a highlightedItem:MyItemVO property that uses a
Bindable highlightedChange event; with the same getter/setter
structure as below.  Not sure, in MyADG, if you'd set the
highlightedItem on itemRollover or initialte from the itemRenderer, with
an Event though; just depends on how you can get to the data or
listData.  But then change the exterior bindings to
myADG.highlightedItem.   Sound about right Paul.

-TH

--- In flexcoders@yahoogroups.com, Paul Williams p_m_willi...@...
wrote:

 When you set the highlighted property on your items, they are
 dispatching PropertyChangeEvents. The collection they are in will
 receive these PropertyChangeEvents and dispatch
CollectionChangeEvents.
 The AdvancedDataGrid will receive these and perform a visual update,
 which appears to clear the rollover highlight.

 To prevent the rollover highlight clearing you need to avoid
dispatching
 PropertyChangeEvents when you update the hightlighted property. Which
 means you need to use a custom event in your binding (see below). This
 should fix the choppiness without breaking the binding, although you
 might want to rethink this whole approach: When you select an item in
a
 datagrid it sets the selectedItem property; it doesn't update the
 underlying data items. Why not follow this pattern for tracking which
 item is rolled over?

 package
 {
 import flash.events.EventDispatcher;

 public class TestObject extends EventDispatcher
 {
 [Bindable]
 public var label:String;

 private var _highlighted:Boolean;

 public function get highlighted() : Boolean
 {
 return _highlighted;
 }

 [Bindable( event = highlightedChange )]
 public function set highlighted( highlighted : Boolean ) : void
 {
 _highlighted = highlighted;
 dispatchEvent( new Event( highlightedChange ) );
 }
 }
 }

 Pan Troglodytes wrote:
  1) Yes, this works fine, for the display portion only. It doesn't
address
  the actual problem of needing to set a flag in the data that
indicates it is
  the currently highlighted one, that flag being also used by other
things
  that bind to the data that don't want to know about UI details like
the
  grid. In this case, I had a number of chart listeners that would
toggle
  series on/off depending on which one was highlighted in the grid.
 
  2) There is no commitProperties on AdvancedDataGridItemRenderer.
Perhaps
  you meant validateProperties. In this example, it gets called only
when the
  grid is first displayed and not when any item is
highlighted/de-highlighted
  or selected/de-selected.
 
  3) Yes, the styleFunction does get called when the highlighted
object
  changes. But if you move the code to set data.highlighted there, you
get
  the same result! It just seems like anything that changes this bound
  variable on every repaint of the cell is doomed to break the
rollover
  highlight.
 
  On Tue, Jun 9, 2009 at 11:49 AM, Amy amyblankens...@... wrote:
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Pan
  Troglodytes chimpathetic@ wrote:
 
  That was a good idea and it does get rid of the arraycollection
walking.
  But I get the SAME problem with the grid losing highlighting when
I did
 
  it
 
  using AdvancedGridItemRenderer, thought the symptoms are slightly
 
  different:
 
  Personally, I'd do one of two things:
 
  1) Just look to see if the current item is the highlighted item in
the
  styleFunction
 
  -or-
 
  2) Override commitProperties instead of validateNow().
 
  I'd also be tempted to investigate whether the styleFunction gets
called
  when the highlighted object changes.
 
  HTH;
 
  Amy
 
 
 
 
 
 
 
 





[flexcoders] using addChild() or includeInLayout ?

2009-06-09 Thread arpan srivastava
Hi All,

Is it better to create controls dynamically using addChild() or write the mxml 
for all the controls and use includeInLayout and visible property to show / 
hide the controls?


Thanks
Arpan


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com

RE: [flexcoders] using addChild() or includeInLayout ?

2009-06-09 Thread Gordon Smith
You should get faster startup if you wait until you need them and create them 
dynamically. But I think the states feature is probably the best way to 
accomplish this.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of arpan srivastava
Sent: Tuesday, June 09, 2009 6:57 PM
To: Flex Coders
Subject: [flexcoders] using addChild() or includeInLayout ?




Hi All,

  Is it better to create controls dynamically using addChild() or write 
the mxml for all the controls and use includeInLayout and visible property to 
show / hide the controls?

Thanks
Arpan



Explore and discover exciting holidays and getaways with Yahoo! India Travel 
Click here!http://in.rd.yahoo.com/tagline_Travel_1/*http:/in.travel.yahoo.com/



Re: [flexcoders] Re: Flex and Reporting

2009-06-09 Thread Sam Lai
Is FlashPaper still supported? Never actually used it, not quite sure
how it works, just that it lets you view documents inside of Flash.

2009/6/10 Tim Hoff timh...@aol.com:

 Crystal Reports is great for generating data driven .Net reports.  But,
 if you wanted to generate a wysiwyg type of report, that mirrors what
 the user sees in the flex app, you're going to run into a lot of
 problems.  AlivePDF is good for simple client-side pdf report
 generation.  However, IMHO, its not quite mature enough of a product
 yet, to be a robust solution for enterprise reporting.  So, that leaves
 you with using a server-side solution, like Jasper reports of FOP
 (java), or bite the bullet and spring for LCDS or WebOrb.  It's funny,
 most clients scream for high-fidelity PDF reporting.  But, when they see
 the price tag for the last two solutions, they often choose to go
 without.

 There is a way to display a PDF in Air.  For Flex, you might be able to
 hack some kind of iFrame solution, but I haven't heard of anyone that
 has pulled that off yet.

 -TH

 --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@...
 wrote:

 Some updates on this.

 I was able to generate a Crystal Report for this where the Flex
 application opens up in another browser the PDF file which was generated
 by the report. That would suffice for the moment, although I would still
 love to hear about possible reporting options integrated inside the Flex
 application.

 By the way, is there a way to display PDF file on Flex itself?

 Thanks and regards.

 Angelo




 
 From: Richard Rodseth rrods...@...
 To: flexcoders@yahoogroups.com
 Sent: Friday, 5 June, 2009 0:20:45
 Subject: Re: [flexcoders] Flex and Reporting





 Unfortunately, I don't think there's a great story yet. If an AIR
 application is an option for you, you may have more options.

 For PDF creation, there's the AlivePDF library, but I'm not aware of
 anything to render a PDF within a SWF (short of sending the pages to
 the server for rendering as images).

 On Thu, Jun 4, 2009 at 12:58 AM, Angelo Anolin angelo_anolin@
 yahoo.com wrote:
 
 
  Hi everyone,
 
  I am totally amazed at the cool front-end UI things that could be
 done in
  Flex. I have been dabbling a lot on Flex and steadily getting the
 hang of
  it.
 
  Anyway, one thing which I am looking for is on creating and printing
  reports. I am looking for some resources on how to achieve such
 things,
  like:
 
  1. Datagrid - creating a pdf file, open up in the swf application as
 well.
  2. Crosstab reports
  3. Executive summaries
  4. Free-Form reports
 
  Basically, am looking on how I would be able to design/generate
 reports
  which could be used in a Flex application.
 
  I would certainly welcome advise and feedback on this. Resources for
 further
  explorations on reporting would also be appreciated.
 
  Thanks.
 






 

 --
 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] Deploy Flex on SpringSource dm server

2009-06-09 Thread robin bakkerus
Hi,

Does anyone know how to deploy Flex on the new Springsource dm server (an 
osgi based app server)

thanks in advance