RE: [flexcoders] Re: How to read the Drive and place list into Tree?

2006-01-13 Thread Dekayd Media Inc.
Just practicing for when I move to Vancouver.

Hahahaha







-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Friday, January 13, 2006 11:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to read the Drive and place list into Tree?

"Good luck eh"?

Some of our "Canadian-ess" rub off on you Kell?

Haha



--- In flexcoders@yahoogroups.com, "Dekayd Media Inc." <[EMAIL PROTECTED]>
wrote:
>
> This is possible and pretty easy if you know how.
> 
>  
> 
> It took me a while to figure out though because there is no specific
> documentation that tells you how.
> 
>  
> 
>  
> 
> I am going to assume you know how to use Flex Remote Objects to
connect to a
> CFC. If you don't it is well documented and worth figuring out.
> 
>  
> 
> Once you can connect to a CFC make a method in your CFC that looks
something
> like this:
> 
>  
> 
>  
> 
>  output="true">
> 
>   
> 
>   
> 
>   
> 
> 
> 
>  
> 
>  
> 
> Then you will have to use the query returned as a dataprovider for
the Tree
> Control.
> 
>  
> 
> Each time a user tries to open a folder you will have to make
another remote
> call and use the information returned to populate that folder in the
tree
> dataprovider.
> 
>  
> 
>  
> 
> Good luck eh
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cnewroth55
> Sent: Friday, January 13, 2006 10:46 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to read the Drive and place list into Tree?
> 
>  
> 
> hi all, what i am looking to do is to have Flex or Cold Fusion, read 
> 
> the contents of a selected area of my drive and then display those 
> 
> contents into a Tree Control. Is this possible? and if so, are there 
> 
> any examples documenting how to do this?
> 
> thx
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> --
> 
> Flexcoders Mailing List
> 
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> Yahoo! Groups Links
> 
>  
> 
> http://groups.yahoo.com/group/flexcoders/
> 
>  
> 
> [EMAIL PROTECTED]
> 
>  
> 
> http://docs.yahoo.com/info/terms/
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] converting to RTF in flex

2006-01-13 Thread george_lui
Hi,

I have a concept of a "form" in my flex app.  I have this requirement
where we want to export this "form" into an RTF formatted file.  Has
anyone ever done this before?  Do you know of any flex capabilities
that could assist me in implementing this?

Thanx,
George






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




RE: [flexcoders] Re: How to handle sessions in Flex

2006-01-13 Thread Carson Hager
Before I answer this, let me get some background.

Are you using J2EE security?  If so, FORM or BASIC authentication?


Carson


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of george_lui
Sent: Friday, January 13, 2006 11:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to handle sessions in Flex

thanx for the prompt reply.  I neglected to mention some other
requirements.

The nature of our app can have our users spends a good deal amount of
time filling out the form. There's a save button there to save your
work.  However say the user is filling out the form and doesn't bother
to save the form.  There's a good chance that the session could expire
before he gets a chance to save the form.  Our server session is
usually 30 minutes.

In this scenario, when the session expires, we don't want the user to
lose the data on the form.  We want to somehow "catch" the session
timeout and save the form.

Another scenario we want to catch is, say you logout. The session is
invalidated.  However you could hit the browser "Back" button and have
the previous screen display.  You wouldn't know that the session time
out until you invoke a service call.  Instead I want to go to the
login screen in such a scenerio.

Can this be done? Please advise.

thx,
george


--- In flexcoders@yahoogroups.com, "Carson Hager" <[EMAIL PROTECTED]>
wrote:
>
> You'll need to expire the page with cache headers so that the browser
> attempts to reload the page which will then take you to the login
page.
> 
> 
> Carson
> 
> 
>  
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com
>  
> Email:  [EMAIL PROTECTED]
> Office:  866-CYNERGY
> Mobile: 1.703.489.6466
>  
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of george_lui
> Sent: Thursday, January 12, 2006 5:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to handle sessions in Flex
> 
> Hi, 
> 
> I click on Logout in my application.  However if I hit the browser
> "Back" button, I go back to the previous screen.  I want to go to the
> login screen however.  You guru's know how I would be able to do this?
> Can I catch the browser button events?
> 
> George
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How to handle sessions in Flex

2006-01-13 Thread george_lui
thanx for the prompt reply.  I neglected to mention some other
requirements.

The nature of our app can have our users spends a good deal amount of
time filling out the form. There's a save button there to save your
work.  However say the user is filling out the form and doesn't bother
to save the form.  There's a good chance that the session could expire
before he gets a chance to save the form.  Our server session is
usually 30 minutes.

In this scenario, when the session expires, we don't want the user to
lose the data on the form.  We want to somehow "catch" the session
timeout and save the form.

Another scenario we want to catch is, say you logout. The session is
invalidated.  However you could hit the browser "Back" button and have
the previous screen display.  You wouldn't know that the session time
out until you invoke a service call.  Instead I want to go to the
login screen in such a scenerio.

Can this be done? Please advise.

thx,
george


--- In flexcoders@yahoogroups.com, "Carson Hager" <[EMAIL PROTECTED]>
wrote:
>
> You'll need to expire the page with cache headers so that the browser
> attempts to reload the page which will then take you to the login page.
> 
> 
> Carson
> 
> 
>  
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com
>  
> Email:  [EMAIL PROTECTED]
> Office:  866-CYNERGY
> Mobile: 1.703.489.6466
>  
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of george_lui
> Sent: Thursday, January 12, 2006 5:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to handle sessions in Flex
> 
> Hi, 
> 
> I click on Logout in my application.  However if I hit the browser
> "Back" button, I go back to the previous screen.  I want to go to the
> login screen however.  You guru's know how I would be able to do this?
> Can I catch the browser button events?
> 
> George
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How to read the Drive and place list into Tree?

2006-01-13 Thread Brendan Meutzner
"Good luck eh"?

Some of our "Canadian-ess" rub off on you Kell?

Haha



--- In flexcoders@yahoogroups.com, "Dekayd Media Inc." <[EMAIL PROTECTED]>
wrote:
>
> This is possible and pretty easy if you know how.
> 
>  
> 
> It took me a while to figure out though because there is no specific
> documentation that tells you how.
> 
>  
> 
>  
> 
> I am going to assume you know how to use Flex Remote Objects to
connect to a
> CFC. If you don't it is well documented and worth figuring out.
> 
>  
> 
> Once you can connect to a CFC make a method in your CFC that looks
something
> like this:
> 
>  
> 
>  
> 
>  output="true">
> 
>   
> 
>   
> 
>   
> 
> 
> 
>  
> 
>  
> 
> Then you will have to use the query returned as a dataprovider for
the Tree
> Control.
> 
>  
> 
> Each time a user tries to open a folder you will have to make
another remote
> call and use the information returned to populate that folder in the
tree
> dataprovider.
> 
>  
> 
>  
> 
> Good luck eh
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cnewroth55
> Sent: Friday, January 13, 2006 10:46 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to read the Drive and place list into Tree?
> 
>  
> 
> hi all, what i am looking to do is to have Flex or Cold Fusion, read 
> 
> the contents of a selected area of my drive and then display those 
> 
> contents into a Tree Control. Is this possible? and if so, are there 
> 
> any examples documenting how to do this?
> 
> thx
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> --
> 
> Flexcoders Mailing List
> 
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> Yahoo! Groups Links
> 
>  
> 
> http://groups.yahoo.com/group/flexcoders/
> 
>  
> 
> [EMAIL PROTECTED]
> 
>  
> 
> http://docs.yahoo.com/info/terms/
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Kevin Ewok
Bingo!  

Thanks Sreejith and Brendan for your help.

Cheers.

--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Kevin,
> 
> As long as the function reference is passed in through your column
> object, you should be able to set it like you have already.
> 
> Here's an example using your creation method for the datagrid column:
> 
> 
> http://www.macromedia.com/2003/mxml";
>   initialize="initPage()">
> 
> 
> 
> 
> 
> 
> 
>occupation="Flex/Flash Developer" />
>occupation="Flex Developer/Architect" />
>occupation="Flex/Java Developer" />
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Brendan
> 
> --- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]> wrote:
> >
> > Brendan-
> >   Thanks for your response. That makes sense but I'm still in the dark
> > about how to assign a Function to the 'labelFunc' attribute
> > dynamically when I create the Datagrid. All I will have is the name of
> > the function, such as "displaySpecificText", so where is the method
> > actually implemented?? Like in your code, for "return
> > column.labelFunction(item);" ...where is that set?
> > 
> > Thanks again!
> > 
> > --- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Hey Kevin,
> > > 
> > > If I understand correctly, how would this work...
> > > 
> > > //CellrendererClass.as/mxml
> > > 
> > > public var listOwner:DataGrid;
> > > public var getCellIndex:Function;
> > > public var item:Object;
> > > public function setValue(str:String, item:Object, sel:String):Void 
> > > {
> > > var position:Object = getCellIndex();
> > > var column:DataGridColumn =
> > > DataGridColumn(listOwner.getColumnAt(position.columnIndex));
> > >   
> > > if(column.labelFunction != null)
> > > {
> > > return column.labelFunction(item);
> > > }
> > > this.item = item;
> > > }
> > > 
> > > 
> > > By obtaining a reference for the current column within the
> > > cellrenderer, you can call the labelFunction within the setValue
> method.
> > > 
> > > Does this help?
> > > 
> > > 
> > > Brendan
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > Hello all.
> > > >  
> > > > I have a form where a user enters criteria and chooses from a
> list box
> > > > the columns they want to see in their search results (in the
> form of a
> > > > datagrid). The List of columns is linked to  in a XML
> file.
> > > > 
> > > > I am able to generate the datagrid successfully along with cell
> > > > renderers, but I am not sure how to dynamically add a
> "labelFunc" b/c
> > > > there are several columns where I need to process the value before
> > > > displaying.
> > > > 
> > > > My code looks like this:
> > > > 
> > > > // Code to create Datagrid
> > > > // Loop through the 'column' objects defined in my xml Model and 
> > > > //   call createDataGridColumn method.
> > > > 
> > > > /* create column */
> > > > function createDataGridColumn(column : Object) : DataGridColumn 
> > > >  {
> > > > var _dgc:DataGridColumn = new DataGridColumn(column.name);
> > > > _dgc.headerText = column.headerText;
> > > > _dgc.width = column.width;  
> > > > if(column.labelFunction != undefined)
> > > > {   
> > > > _dgc.labelFunction = column.labelFunction;
> > > > //_dgc.labelFunction = "displayText";
> > > > 
> > > > }
> > > > return _dgc;
> > > > }
> > > > 
> > > > THE QUESTION OF THE HOUR is that the _dgc.labelFunction line
within
> > > > the if statement is assigned the text of the method name, for
> example,
> > > >  in the commented line below. So where do I place the
implementation
> > > > of this method???
> > > > 
> > > > The following attempts by me didn't work:
> > > > 1.) I tried extending the DataGridColumn class and
implementing the
> > > > method there. 
> > > > 2.) Implement the method in the class of the code above.
> > > > 3.) Implement the method in the calling class of the code above.
> > > > 
> > > > Thanks in advance for any help!
> > > > 3.
> > > >
> > >
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Brendan Meutzner
Kevin,

As long as the function reference is passed in through your column
object, you should be able to set it like you have already.

Here's an example using your creation method for the datagrid column:


http://www.macromedia.com/2003/mxml";
initialize="initPage()">























Brendan

--- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]> wrote:
>
> Brendan-
>   Thanks for your response. That makes sense but I'm still in the dark
> about how to assign a Function to the 'labelFunc' attribute
> dynamically when I create the Datagrid. All I will have is the name of
> the function, such as "displaySpecificText", so where is the method
> actually implemented?? Like in your code, for "return
> column.labelFunction(item);" ...where is that set?
> 
> Thanks again!
> 
> --- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
> wrote:
> >
> > Hey Kevin,
> > 
> > If I understand correctly, how would this work...
> > 
> > //CellrendererClass.as/mxml
> > 
> > public var listOwner:DataGrid;
> > public var getCellIndex:Function;
> > public var item:Object;
> > public function setValue(str:String, item:Object, sel:String):Void 
> > {
> > var position:Object = getCellIndex();
> > var column:DataGridColumn =
> > DataGridColumn(listOwner.getColumnAt(position.columnIndex));
> > 
> > if(column.labelFunction != null)
> > {
> > return column.labelFunction(item);
> > }
> > this.item = item;
> > }
> > 
> > 
> > By obtaining a reference for the current column within the
> > cellrenderer, you can call the labelFunction within the setValue
method.
> > 
> > Does this help?
> > 
> > 
> > Brendan
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]>
wrote:
> > >
> > > Hello all.
> > >  
> > > I have a form where a user enters criteria and chooses from a
list box
> > > the columns they want to see in their search results (in the
form of a
> > > datagrid). The List of columns is linked to  in a XML
file.
> > > 
> > > I am able to generate the datagrid successfully along with cell
> > > renderers, but I am not sure how to dynamically add a
"labelFunc" b/c
> > > there are several columns where I need to process the value before
> > > displaying.
> > > 
> > > My code looks like this:
> > > 
> > > // Code to create Datagrid
> > > // Loop through the 'column' objects defined in my xml Model and 
> > > //   call createDataGridColumn method.
> > > 
> > > /* create column */
> > > function createDataGridColumn(column : Object) : DataGridColumn 
> > >  {
> > >   var _dgc:DataGridColumn = new DataGridColumn(column.name);
> > >   _dgc.headerText = column.headerText;
> > >   _dgc.width = column.width;  
> > >   if(column.labelFunction != undefined)
> > >   {   
> > >   _dgc.labelFunction = column.labelFunction;
> > >   //_dgc.labelFunction = "displayText";
> > > 
> > >   }
> > >   return _dgc;
> > > }
> > > 
> > > THE QUESTION OF THE HOUR is that the _dgc.labelFunction line within
> > > the if statement is assigned the text of the method name, for
example,
> > >  in the commented line below. So where do I place the implementation
> > > of this method???
> > > 
> > > The following attempts by me didn't work:
> > > 1.) I tried extending the DataGridColumn class and implementing the
> > > method there. 
> > > 2.) Implement the method in the class of the code above.
> > > 3.) Implement the method in the calling class of the code above.
> > > 
> > > Thanks in advance for any help!
> > > 3.
> > >
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




RE: [flexcoders] How to read the Drive and place list into Tree?

2006-01-13 Thread Dekayd Media Inc.










This is possible and pretty easy if you know how.

 

It took me a while to figure out though because there is no specific
documentation that tells you how.

 

 

I am going to assume you know how to use Flex Remote Objects to connect
to a CFC. If you don't it is well documented and worth figuring out.

 

Once you can connect to a CFC make a method in your CFC that looks
something like this:

 

 



  

  

  



 

 

Then you will have to use the query returned as a dataprovider for the
Tree Control.

 

Each time a user tries to open a folder you will have to make another
remote call and use the information returned to populate that folder in the
tree dataprovider.

 

 

Good luck eh

 

 

 

 

 

 

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On
Behalf Of cnewroth55
Sent: Friday, January 13, 2006 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to read the Drive and place list into Tree?

 

hi all, what i am looking to do is to have Flex or Cold Fusion, read 

the contents of a selected area of my drive and then display those 

contents into a Tree Control. Is this possible? and if so, are there 

any examples documenting how to do this?

thx

 

 

 

 

 

 

--

Flexcoders Mailing List

FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

Yahoo! Groups Links

 

<*> To visit your group on the web, go to:

    http://groups.yahoo.com/group/flexcoders/

 

<*> To unsubscribe from this group, send an email to:

    [EMAIL PROTECTED]

 

<*> Your use of Yahoo! Groups is subject to:

    http://docs.yahoo.com/info/terms/

 

 

 









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Sreejith Unnikrishnan






Kevin,

Just replace the piece of code where you try to assign the labeFunction
with this.
The rest should be OK.

column.labelFunction =
Delegate.create(this, displayText);

Regards
Sree

Refer to:

Kevin Ewok wrote:

Brendan-
  Thanks for your response. That makes sense but I'm still in the dark
about how to assign a Function to the 'labelFunc' attribute
dynamically when I create the Datagrid. All I will have is the name of
the function, such as "displaySpecificText", so where is the method
actually implemented?? Like in your code, for "return
column.labelFunction(item);" ...where is that set?
  
Thanks again!
  
--- In flexcoders@yahoogroups.com, "Brendan Meutzner"
<[EMAIL PROTECTED]>
wrote:
>
> Hey Kevin,
> 
> If I understand correctly, how would this work...
> 
> //CellrendererClass.as/mxml
> 
> public var listOwner:DataGrid;
> public var getCellIndex:Function;
> public var item:Object;
> public function setValue(str:String, item:Object, sel:String):Void
  
> {
> var position:Object = getCellIndex();
> var column:DataGridColumn =
> DataGridColumn(listOwner.getColumnAt(position.columnIndex));
>     
> if(column.labelFunction != null)
> {
> return column.labelFunction(item);
> }
> this.item = item;
> }
> 
> 
> By obtaining a reference for the current column within the
> cellrenderer, you can call the labelFunction within the setValue
method.
> 
> Does this help?
> 
> 
> Brendan
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Kevin Ewok"
<[EMAIL PROTECTED]> wrote:
> >
> > Hello all.
> >  
> > I have a form where a user enters criteria and chooses from a
list box
> > the columns they want to see in their search results (in the
form of a
> > datagrid). The List of columns is linked to 
in a XML file.
> > 
> > I am able to generate the datagrid successfully along with
cell
> > renderers, but I am not sure how to dynamically add a
"labelFunc" b/c
> > there are several columns where I need to process the value
before
> > displaying.
> > 
> > My code looks like this:
> > 
> > // Code to create Datagrid
> > // Loop through the 'column' objects defined in my xml Model
and 
> > //   call createDataGridColumn method.
> > 
> > /* create column */
> > function createDataGridColumn(column : Object) :
DataGridColumn 
> >  {
> >   var _dgc:DataGridColumn = new
DataGridColumn(column.name);
> >   _dgc.headerText = column.headerText;
> >   _dgc.width = column.width;  
> >   if(column.labelFunction != undefined)
> >   {  
> >     _dgc.labelFunction = column.labelFunction;
> >     //_dgc.labelFunction = "displayText";
> > 
> >   }
> >   return _dgc;
> > }
> > 
> > THE QUESTION OF THE HOUR is that the _dgc.labelFunction line
within
> > the if statement is assigned the text of the method name, for
example,
> >  in the commented line below. So where do I place the
implementation
> > of this method???
> > 
> > The following attempts by me didn't work:
> > 1.) I tried extending the DataGridColumn class and
implementing the
> > method there. 
> > 2.) Implement the method in the class of the code above.
> > 3.) Implement the method in the calling class of the code
above.
> > 
> > Thanks in advance for any help!
> > 3.
> >
>
  
  
  
  
  








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  













[flexcoders] How to read the Drive and place list into Tree?

2006-01-13 Thread cnewroth55
hi all, what i am looking to do is to have Flex or Cold Fusion, read 
the contents of a selected area of my drive and then display those 
contents into a Tree Control. Is this possible? and if so, are there 
any examples documenting how to do this?
thx






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Kevin Ewok
Brendan-
  Thanks for your response. That makes sense but I'm still in the dark
about how to assign a Function to the 'labelFunc' attribute
dynamically when I create the Datagrid. All I will have is the name of
the function, such as "displaySpecificText", so where is the method
actually implemented?? Like in your code, for "return
column.labelFunction(item);" ...where is that set?

Thanks again!

--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Hey Kevin,
> 
> If I understand correctly, how would this work...
> 
> //CellrendererClass.as/mxml
> 
> public var listOwner:DataGrid;
> public var getCellIndex:Function;
> public var item:Object;
> public function setValue(str:String, item:Object, sel:String):Void 
> {
> var position:Object = getCellIndex();
> var column:DataGridColumn =
> DataGridColumn(listOwner.getColumnAt(position.columnIndex));
>   
> if(column.labelFunction != null)
> {
> return column.labelFunction(item);
> }
> this.item = item;
> }
> 
> 
> By obtaining a reference for the current column within the
> cellrenderer, you can call the labelFunction within the setValue method.
> 
> Does this help?
> 
> 
> Brendan
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]> wrote:
> >
> > Hello all.
> >  
> > I have a form where a user enters criteria and chooses from a list box
> > the columns they want to see in their search results (in the form of a
> > datagrid). The List of columns is linked to  in a XML file.
> > 
> > I am able to generate the datagrid successfully along with cell
> > renderers, but I am not sure how to dynamically add a "labelFunc" b/c
> > there are several columns where I need to process the value before
> > displaying.
> > 
> > My code looks like this:
> > 
> > // Code to create Datagrid
> > // Loop through the 'column' objects defined in my xml Model and 
> > //   call createDataGridColumn method.
> > 
> > /* create column */
> > function createDataGridColumn(column : Object) : DataGridColumn 
> >  {
> > var _dgc:DataGridColumn = new DataGridColumn(column.name);
> > _dgc.headerText = column.headerText;
> > _dgc.width = column.width;  
> > if(column.labelFunction != undefined)
> > {   
> > _dgc.labelFunction = column.labelFunction;
> > //_dgc.labelFunction = "displayText";
> > 
> > }
> > return _dgc;
> > }
> > 
> > THE QUESTION OF THE HOUR is that the _dgc.labelFunction line within
> > the if statement is assigned the text of the method name, for example,
> >  in the commented line below. So where do I place the implementation
> > of this method???
> > 
> > The following attempts by me didn't work:
> > 1.) I tried extending the DataGridColumn class and implementing the
> > method there. 
> > 2.) Implement the method in the class of the code above.
> > 3.) Implement the method in the calling class of the code above.
> > 
> > Thanks in advance for any help!
> > 3.
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] paginating runtime objects.

2006-01-13 Thread kronos113
Hello all,

I'm having a bit of difficulty.

I've got a VBox component that is a combination of mxml declared 
components and objects added at runtime.  I need to page this for 
printing.  So I've created a script class that I pass the Container 
and the desired page lenght to.  I return an array of VBox's 
representing the individual pages that will be added to the print 
job for printing.

The issue I'm having.

I get an error #2006 (The supplied index is out of bounds) when I 
add the components to the output VBox's.  I can iterate through the 
children in the following way and print them all out fine.

for(var j:int=0;j pageHeight)
{
aRet.push(vbTemp);
vbTemp = new VBox();
iTotalHeight = 0;
}
vbTemp.addChildAt(child, i);
iTotalHeight += child.height;
 }

Anyone have any ideas?

Thanks
Kent





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Brendan Meutzner
Hey Kevin,

If I understand correctly, how would this work...

//CellrendererClass.as/mxml

public var listOwner:DataGrid;
public var getCellIndex:Function;
public var item:Object;
public function setValue(str:String, item:Object, sel:String):Void 
{
var position:Object = getCellIndex();
var column:DataGridColumn =
DataGridColumn(listOwner.getColumnAt(position.columnIndex));

if(column.labelFunction != null)
{
return column.labelFunction(item);
}
this.item = item;
}


By obtaining a reference for the current column within the
cellrenderer, you can call the labelFunction within the setValue method.

Does this help?


Brendan



--- In flexcoders@yahoogroups.com, "Kevin Ewok" <[EMAIL PROTECTED]> wrote:
>
> Hello all.
>  
> I have a form where a user enters criteria and chooses from a list box
> the columns they want to see in their search results (in the form of a
> datagrid). The List of columns is linked to  in a XML file.
> 
> I am able to generate the datagrid successfully along with cell
> renderers, but I am not sure how to dynamically add a "labelFunc" b/c
> there are several columns where I need to process the value before
> displaying.
> 
> My code looks like this:
> 
> // Code to create Datagrid
> // Loop through the 'column' objects defined in my xml Model and 
> //   call createDataGridColumn method.
> 
> /* create column */
> function createDataGridColumn(column : Object) : DataGridColumn 
>  {
>   var _dgc:DataGridColumn = new DataGridColumn(column.name);
>   _dgc.headerText = column.headerText;
>   _dgc.width = column.width;  
>   if(column.labelFunction != undefined)
>   {   
>   _dgc.labelFunction = column.labelFunction;
>   //_dgc.labelFunction = "displayText";
> 
>   }
>   return _dgc;
> }
> 
> THE QUESTION OF THE HOUR is that the _dgc.labelFunction line within
> the if statement is assigned the text of the method name, for example,
>  in the commented line below. So where do I place the implementation
> of this method???
> 
> The following attempts by me didn't work:
> 1.) I tried extending the DataGridColumn class and implementing the
> method there. 
> 2.) Implement the method in the class of the code above.
> 3.) Implement the method in the calling class of the code above.
> 
> Thanks in advance for any help!
> 3.
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




RE: [flexcoders] How to handle sessions in Flex

2006-01-13 Thread Carson Hager
You'll need to expire the page with cache headers so that the browser
attempts to reload the page which will then take you to the login page.


Carson


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of george_lui
Sent: Thursday, January 12, 2006 5:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to handle sessions in Flex

Hi, 

I click on Logout in my application.  However if I hit the browser
"Back" button, I go back to the previous screen.  I want to go to the
login screen however.  You guru's know how I would be able to do this?
Can I catch the browser button events?

George







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Flex2.0 Alpha Expiration

2006-01-13 Thread cosmic_bandit0
What happens to the generated swf's @ expiration date of flex alpha 1 ? 

merci
andré







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Re: i18n support - Data Format

2006-01-13 Thread neda_eslami
--- In flexcoders@yahoogroups.com, Paul Hastings <[EMAIL PROTECTED]> wrote:
>
> Gordon Smith wrote:
> > There is no locale support, but the various formatters offer enough
> > flexibility that you should be able to add it. Formatters are also 
easy
> 
> but you have no locale resources backing any of this. in cf/java all 
you have to 
> do is set the locale & away you go. in flex you have to know what the 
> currency/date format is in timbuktu & then build that. geez louise 
it's back to 
> the old cf4.5 days.
>


Thanks everyone for the reply.  That's what I was afraid of.  I was 
trying to avoid generating currency/date pattern for each locale to 
send to the formatter in Flex.  I hear that Flex 2.0 will provide i18n 
support, hopefully they provide Java-like support. 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




RE: [flexcoders] Installing Flex on windows

2006-01-13 Thread John Michael Barrett



Hi Tracy,Thank you so much`-`I un installed the other version that I had, and installed the one with the "Integrated JRun4". It now works, I was able to view the examples,and was very impressed with flex so far, It seems like flex will make working with flash forms much easier, which what I am after. I am very new to this, and just want to play with it, and to start out small and then grow from there. This is going to be fun`-`Thank you so much for your help, as I am not sure if I would have figured out what was wrong`-`JohnTracy Spratt <[EMAIL PROTECTED]> wrote: Yes. Flex is a J2EE application, so it must run under some servlet container.  If you are not a J2EE guy, and don't want to become one yet, install flex using the "Integrated JRun" option.  This will give you a working Flex installation immediately.  Your access urls will be: http://localhost:8700/flex/myApp/myAppMain.mxml http://localhost:8700/samples  If/when you find you want to serve Flex from IIS, you must move to some full web server, since the integrated JRun does not support the necessary connectors.  I have come to like Tomcat as my servlet container.  It is free, fairly
 easy to set up, and seems extremely stable.  Be aware that when the Flex trial expires, it reverts to a perpetual developers license, with restricted IP access.    Flex builder does not, but will simply stop working.  You might be able to get an extension from MM.  If you can use Eclipse, you are positioning yourself well for Flex Builder 2.0 which is built on Eclipse.  Below is a list of good resources. Tracy  Flex sites/blogs: http://www.cflex.net/showfaq.cfm?Object=faq&channelID=1&faqtype=&default fields=&defaultValues= http://www.cflex.net/ http://www.flexauthority.com/ http://weblogs.macromedia.com/mxna/ http://www.flexdaddy.info/ http://www.clinttredway.com/blog/ http://www.richinternet.de/blog/ http://www.everythingflex.com  Flex style Explorer: http://www.markme.com/mc/archives/FlexStyleExplorer.html  Documentation: http://livedocs.macromedia.com/flex/15/asdocs_en/index.html http://www.macromedia.com/go/flex15_java_livedocs http://www.macromedia.com/cfusion/knowledgebase/index.cfm  Lists: http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?catid=3 46 http://groups.yahoo.com/group/flexcoders/  Bugs/enhancement requests: http://www.macromedia.com/support/email/wishform/-Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Michael Barrett Sent: Friday, January 06, 2006 5:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Installing Flex on windows  If this gets listed twice I am sorry: - Hi, I just joined this group`-` I am using Coldfusion MX 7 on the Mac, and I love flash forms,and so I thought I would try  flex. I downloaded Flex 1.5 & flex builder on wondows(I
 wish it was on the mac, but I guess I  will have to play with flex at work no mac version:( ), and I think that the port should be  8700, but I had no luck.  Once I create an application with flex, how can I view it on my local server? With coldfusion, I just view at: http://localhost:8500,and so I thought that: http://localhost:8700 would work, but when I looked at macromedia it says that it should be: http://localhost:8700/flex-->no luck  Is there anything that I did wrong with the download? I picked the full(none jrun) option, as I  figured I have jrun with coldfusion, and that I did not need 2 versions. Do I need jrun for flex  to work?  Thank you so much for any help that anybody could provide, John        
       __  Yahoo! DSL - Something to write home about.  Just $16.99/mo. or less.  dsl.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links



  
 





 
 
 
 
 
 
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] VBox scrollbar bug ?

2006-01-13 Thread Avik Chakrabarty



Hi Sree, Great I feel this is the only way. On Fri, Jan 13, 2006 at 11:06 AM, Sreejith Unnikrishnan wrote:Try setting minWidth="0" and minHeight="0" to the VBox Sree superabe superabe wrote: Update on this, setting fixed widths and heights on the parent VBox resolved the issue. That will do fine for now :) - superabe On 1/12/06, superabe superabe < [EMAIL PROTECTED]  > wrote: No luck, same behaviour. :( Works for Canvas, does not work for VBox - superabe  On 1/12/06, Paul BH < [EMAIL PROTECTED]  > wrote: what happens if you call super.createChildren() at the beginning of the createChildren method? On 1/12/06, superabe superabe < [EMAIL PROTECTED]  > wrote: Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox) in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo):             The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to  ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{   function MyContainer(){   }  public function createChildren():Void{    for(var i:Number=0;i<100;i++){  this.createChild(Button,undefined,{label:"a_"+ i});    }  } } Anybody faced this before or know what I am doing wrong? TIA - superabe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS Web site design development  Computer software development  Software design and development  Macromedia flex  Software development best practice  ___YAHOO! GROUPS LINKS    •  Visit your group " flexcoders  " on the web.    •  To unsubscribe from this group, send an email to:   [EMAIL PROTECTED]     •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service  . ___-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS Web site design development  Computer software development  Software design and development  Macromedia flex 

[flexcoders] How to handle sessions in Flex

2006-01-13 Thread george_lui
Hi, 

I click on Logout in my application.  However if I hit the browser
"Back" button, I go back to the previous screen.  I want to go to the
login screen however.  You guru's know how I would be able to do this?
Can I catch the browser button events?

George







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] EventDIspatcher in Flex 2.0 alpha

2006-01-13 Thread Kaushik Mukherjee



Hi,  I am facing a problem with dispatchEvent method, where I want to create own class and eventListener, in Flex ALpha 2.  But it is not giving the result.     Defautl File  dispatchListenerTest.mxml  CODE  _    xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*">   width="100%" height="100%"> label="Button" click="{callListener()}"/>id="tb" text="Hello"/>   
 __              Dispatcher.mxml      xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="{called()}">  [Event("called")]     ___     AsDispatcher.as     _     // ActionScript file  package{public class AsDispatcher extends flash.events.Event  {  public var dta:String;  public function AsDispatcher(_dta:String)  {  super("called");  dta = _dta;  }  }  }     __        If anybody is having give me the solution, sample, it will be great help.  Thanks in advance  KaushikSend instant messages to your online friends http://in.messenger.yahoo.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] How to create Validator via ActionScript

2006-01-13 Thread Stanislav Zayarsky
Thanks for the answer Matt,

But actually I have reviewed flex generated as file and now I know how
to create validator via ActionScript in 1.5 version.

Best regards
Stanislav

On 1/13/06, Matt Chotin <[EMAIL PROTECTED]> wrote:
> Sorry, in 1.5 validators really aren't meant to be created in
> ActionScript.  However in Flex 2 they're completely faceless and just
> begging for you to create them in AS.
>
> Matt
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Stanislav Zayarsky
> Sent: Wednesday, January 11, 2006 5:05 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to create Validator via ActionScript
>
> Hello FlexCoders,
>
> Currently I'm receiveing data from DB and then create interface
> dynamically according to the received data.
>
> So the question is, how I can create Validators for dynamically
> created TextFields?
>
> Best regards
> Stanislav
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] How to add labelFunc when dynamically creating a DataGrid

2006-01-13 Thread Kevin Ewok
Hello all.
 
I have a form where a user enters criteria and chooses from a list box
the columns they want to see in their search results (in the form of a
datagrid). The List of columns is linked to  in a XML file.

I am able to generate the datagrid successfully along with cell
renderers, but I am not sure how to dynamically add a "labelFunc" b/c
there are several columns where I need to process the value before
displaying.

My code looks like this:

// Code to create Datagrid
// Loop through the 'column' objects defined in my xml Model and 
//   call createDataGridColumn method.

/* create column */
function createDataGridColumn(column : Object) : DataGridColumn 
 {
var _dgc:DataGridColumn = new DataGridColumn(column.name);
_dgc.headerText = column.headerText;
_dgc.width = column.width;  
if(column.labelFunction != undefined)
{   
_dgc.labelFunction = column.labelFunction;
//_dgc.labelFunction = "displayText";

}
return _dgc;
}

THE QUESTION OF THE HOUR is that the _dgc.labelFunction line within
the if statement is assigned the text of the method name, for example,
 in the commented line below. So where do I place the implementation
of this method???

The following attempts by me didn't work:
1.) I tried extending the DataGridColumn class and implementing the
method there. 
2.) Implement the method in the class of the code above.
3.) Implement the method in the calling class of the code above.

Thanks in advance for any help!
3.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Flex Builder 2 panel align

2006-01-13 Thread Andy Johnston
Hey all just wondering with this constraints based layout for Flex 
Builder 2 is it possible to simply align a Panel to centre of a liquid 
layout? Why can't you set x and y values to a %?





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Data provider for custom component

2006-01-13 Thread kjlinboomer
Hi all,

I have developed a custom component for use in flex. I have dropped it
into an MXML file and my init(), createChildren() etc functions are
all working and I can pass initial values into in like:



My question is how do I provide an external data provider for this
component?  Do I need to put flex's dataProvider class in the same
package as my component and then refer like this:


  
 {//some action script object here}
  


Not sure how this works...

Thanks!!

Keith







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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