Re: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread Jeff Steiner
ha

Sorry - I am looking to change them after the app has loaded.

dynamically.

Jeff
- Original Message - 
From: Abdul Qabiz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, May 23, 2005 10:47 PM
Subject: RE: [flexcoders] Possible to setStyle on the entire application?


 Jeff,
 
 You can change the themeColor of entier app like this:
 
 mx:Application themeColor=0xFF ..
 
 ..
 
 /mx:Application
 
 
 -abdul
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jeff Steiner
 Sent: Tuesday, May 24, 2005 11:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Possible to setStyle on the entire application?
 
 Without using a setStyle for every single element in an app, is it
 possible
 to change the theme-color of an application on the fly?
 
 Thanks,
 Jeff
 http://www.flexauthority.com
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 


 
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] Possible to setStyle on the entire application?

2005-05-24 Thread Richard Butler
Jeff,

mx.core.Application.application.setStyle(themeColor, 0xCC) should
give you some joy...

Unfortunately at runtime you can only change one style at a time, so if
you're parsing a stylesheet it can be quite strenuous on the client
machine's processing load, especially if you're changing a style that
affects numerous components...

Cheers,
Rich

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Steiner
Sent: 24 May 2005 07:10
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Possible to setStyle on the entire
application?


ha

Sorry - I am looking to change them after the app has loaded.

dynamically.

Jeff
- Original Message - 
From: Abdul Qabiz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, May 23, 2005 10:47 PM
Subject: RE: [flexcoders] Possible to setStyle on the entire
application?


 Jeff,
 
 You can change the themeColor of entier app like this:
 
 mx:Application themeColor=0xFF ..
 
 ..
 
 /mx:Application
 
 
 -abdul
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Jeff Steiner
 Sent: Tuesday, May 24, 2005 11:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Possible to setStyle on the entire application?
 
 Without using a setStyle for every single element in an app, is it 
 possible to change the theme-color of an application on the fly?
 
 Thanks,
 Jeff
 http://www.flexauthority.com
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 


 
Yahoo! Groups Links



 





 
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] Cairngorm 0.99 ViewHelper problem

2005-05-24 Thread Alistair McLeod
Hi Stephen,

A few people have asked a similar question to yours and we're still thinking
about the best solution. Here's one way

If you create the ViewHelper yourself, as in the example you gave, the
initialized() method will not be called - the Flex Framework calls that
method at component instantiation if it implements the MXMLObject interface
and is instantiated via MXML. You could try:

mx:Script
  ![CDATA[
  var viewHelper : ViewHelper = ViewHelperBuilder(this);
viewHelper.initialized( this, myViewHelperId );
  ]]
/mx:Script

This should mimic what the Flex Framework does, but I don't really like it
as a solution as it exposes the innards of the base class.

One alternative would be to change the Cairngorm framework itself. With the
ModelLocator strategy in place, the ViewLocator pattern is often not needed
at all, in which case you could remove the ViewLocator registration from the
ViewHelper base class - in that case, both instances of the view helper can
have the same id.

Another would be to change ViewHelper base class to register with the
ViewLocator not with the id alone, but with a fully qualified id. ie. Walk
up the component's parent heirarchy, and build up an id. eg. rather than
having an id of myViewHelperId, it would be
appView.componentView1.myViewHelperId. 

Of course, both of these alternatives are producing a compile time
definition of the id, not run time, and the latter is brittle in that
changes to your component heirarchy will change the id, which forces changes
elsewhere in your code if you're attempting to retrieve that view helper via
the ViewLocator.

We'll continue to give this thought.

Cheers,

Ali


--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Inzer
Sent: 23 May 2005 16:26
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm 0.99 ViewHelper problem

In the 0.95 version of Cairngorm the ViewHelpers were identified by their
name attribute. I could initialize the name attribute with a call to a
method. But in the 0.99 version the name attribute has gone away, and the
ViewHelper is identied by the id attribute. The id attribute cannot be
initailized at run time, it must be evaluated a compile time.

In the application I am developing I have a view that has a ViewHelper. The
view is used many times As a result I need to have many ViewHelpers. The
Views and ViewHelpers are created at runtime so I cannot hard code the ids
for these objects. Each ViewHelper must have a unique name, but since I
cannot call a method when assigning the id attribute I cannot do this. 

Will this work:

mx:Script
  ![CDATA[
  var viewHelper : ViewHelper = ViewHelperBuilder(this);
  ]]
/mx:Script

This allows me to set the id without a compiler error, but will the
initialized( document: Object, id: String) method be called with the the
correct object?


Stephen Inzer





 
Yahoo! Groups Links



 



 
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] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Craig Newroth
Matt:
Thanks for the response, I am trying to pass a list of
the ones that are checked..values in the checkboxes
are going to be passed to a cfc to get data from query
and returned to datagrid.
so I guess that you are saying to build an array out
of the checkboxes (if they are checked) and then pass
that array value to my cfc call?
Craig

--- Matt Chotin [EMAIL PROTECTED] wrote:
 Are you trying to pass a list of the ones that are
 checked or just one?
 Your changeThrusts method can simply store which
 checkboxes are selected and
 then you can build an array to pass to your web
 service for the query.  If
 only one of those checkboxes is meant to be checked
 maybe you should look
 into using RadioButtons instead and then take
 advantage of
 RadioButtonGroup.selectedData.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of cnewroth55
 Sent: Thursday, May 19, 2005 10:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] can I bind more that one
 checkbox to a send request?
 
  
 
 I have a form that has several different checkboxes
 and need to pass 
 any of their respected labels (or data) to a
 webservice cfc..what i 
 what to do is be able to pass any of the below up to
 my webservice 
 call. the code for the web service call is below
 this...;
 
 mx:VBox
mx:CheckBox label=Select All
 Thrust 
 color=#123154  labelPlacement=right
 id=ThrustReportsCHB1 
 click=changeThrusts( event ); /
mx:CheckBox label=ASMT - Affordable
 Structures 
 amp; Mfg. Tech color=#123154
 labelPlacement=right 
 id=ThrustReportsCHB2 /
mx:CheckBox label=ALE - Adv. Lean
 amp; Efficient 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB3 /
mx:CheckBox label=ASC - Adv.
 Support Concepts 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB4 /
mx:CheckBox label=ASC - APS - Adv.
 Platform 
 Systems color=#123154 labelPlacement=right 
 id=ThrustReportsCHB5 /
mx:CheckBox label=NCO - Net-Centric
 Operations 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB6 /
mx:HBox x=5 y=230 
   mx:FormItem 
 mx:CheckBox label=Summary
 color=#123154 
 labelPlacement=top id=summaryCHB
 click=changeOther( event );/
   /mx:FormItem
   mx:FormItem
 mx:CheckBox label=Detail
 color=#123154 
 labelPlacement=top id=detailCHB
 click=changeOther( event );/
   /mx:FormItem
/mx:HBox
   /mx:VBox
 
 WEB SERVICE CALL
 mx:WebService

wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
 http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? 
 wsdl id=gvsQueriesWS
 mx:operation name=Thrust_Query
   mx:request


ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName
   /mx:request
 /mx:operation
   /mx:WebService  
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of
 Service. 
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
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] When do I need to Recompile mxml files?

2005-05-24 Thread Valy Sivec




Hello flexcoders,
I have a flex project and want to precompile the mxml files. I was wondering if I need to re-compile the mxml files in case for example I fix a bug in the business logic of a remote object method.. ( not method signature changes ). 
So, when do I need to recompile the mxml files due to changes? I know that when any of the "as"/mxml/flex-config.xml has changed than need to recompile... How about server side classes? Should the mxml care if the backend changed? 
Thanks for your help.
Valy
		Do You Yahoo!? Yahoo! Small Business - Try our new Resources site!







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 the Yahoo! Terms of Service.










RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR










Tracy,

 Thank
you very much the info. I have a question for you about the NOTE you mentioned
in earlier mail. Are you referring editcell event and editField( ) method with
reference to new row or in general any cell? To my surprise I did not trap editcell
event and did not call editField( ) on cells but I am able to save data changes
to the data base, but not the data entered for the new row though. This makes me
think that I have to call editField( ) on newly added row, am I correct?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the "item" would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari -
 BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this newly
added row as a part of the dataprovider? What I mean is I am able to create a
new row in datagrid by using your methodology. But when I try to access data in
my POJO, I am getting nullpointer exception. That means, I think, the newly
added row to grid is not truly added to dataprovider. Do I have to make any
specific function call to make the newly added row attach to dataprovider? If
this question is already discussed, please guide me with reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid = oEvent.target;

 dg.setFocus();


dg.focusedCell = {columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

 mx:Script

 function enterNewRow():Void

 {

 grid.addItem();

 focusNewRow();

 doLater(this,
focusNewRow);

 }

 function focusNewRow():Void

 {

 grid.setFocus();

 grid.focusedCell =
{columnIndex: 0, itemIndex:

grid.dataProvider.length-1};

 }

 /mx:Script

 mx:DataGrid id=grid
editable=true

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /

 /mx:Array

 /mx:dataProvider

 /mx:DataGrid

 mx:Button label=Enter New Row
click=enterNewRow() /

/mx:Application



Note:



1. grid.addItem() will add a blank row

2. call focusNewRow() in the next frame
using doLater()







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/






















Yahoo! Groups Links

To visit your group on the web, 

Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
Thank you Jim! 

It will be very useful for me and I really appreciate the job you have done. 

Thanks again!
Beck


On 5/23/05, Tracy Spratt [EMAIL PROTECTED] wrote:
 There are about three dependencies you will need to modify/comment out,
 and it will run just fine.
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Laing
 Sent: Monday, May 23, 2005 6:04 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Custom Datagrid (like Excel)
 
 Hey Beck,
 
 I've done exactly what you're looking for (plus a lot of other stuff
 you might not want), through digging into the DataGrid code and
 creating a subclass. I've posted the code, and it should provide you
 with a starting point, although I still haven't gotten around to
 creating a simple demo (blame it on schedule ...)
 
 Check out this message:
 http://groups.yahoo.com/group/flexcoders/message/14768
 
 Jim
 
 
 On 5/23/05, Beck Novaes [EMAIL PROTECTED] wrote:
  Hi People,
 
  I need to implement a DataGrid with the following requirements:
 
  -   It should be possible to have ComboBox in his cells;
  -   It should be possible to use the keyboard (TAB) to jump from
 one
  cell to another even though in one cell there is a ComboBox
  -   It should be possible to restrict data on individual cells
  -   It should be possible to validate data on individual cells
 
  In other worlds, this DataGrid should work much like an Excel Sheet.
  The most important thing is the ability to enter the data just using
  the keyboard.
 
  To implement something like this I need to dive into DataGrid. Does
  anyone have some tips to save my time? Have you ever needed to
  implement something like this?
 
  Thanks a lot!
 
 
 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 



 
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] When do I need to Recompile mxml files?

2005-05-24 Thread Abdul Qabiz





Hi,

Any changes to MXML  associated AS files would require 
recompilation. Any changes to backend logic (POJO, EJB) doesn't require flex app 
recompilation, unless you have use Model/XML tag to fetch data from 
backend.

Data of Model/XML tags get compiled in flex application, so 
you need to take care this situation..

mx:Model source="http://www.myserver.com/getCategories.jsp" 
/ or mx:XML source="http://www.myserver.com/getCategories.jsp"/


getCategories.jsp returns xml file So if getCategories.jsp 
is changed, you should recompile the flex app also... 

Does it make sense?

-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Valy 
SivecSent: Tuesday, May 24, 2005 6:25 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] When do I need to 
Recompile mxml files?


Hello flexcoders,
I have a flex project and want to precompile the mxml files. I was wondering 
if I need to re-compile the mxml files in case for example I fix a bug in the 
business logic of a remote object method.. ( not method signature changes ). 

So, when do I need to recompile the mxml files due to changes? I know that 
when any of the "as"/mxml/flex-config.xml has changed than need to recompile... 
How about server side classes? Should the mxml care if the backend changed? 
Thanks for your help.
Valy


Do You Yahoo!?Yahoo! Small Business - Try 
our new Resources site! 







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 the Yahoo! Terms of Service.










[flexcoders] error message working thru flexbook

2005-05-24 Thread diamondtearz
Good morning.  I'm working through chapter 2 of the flexbook and came
across an error message when trying to do the exercise.

2 Errors found.
 
Error /TheBook/myBlogReader.mxml:5
URI is unknown! The namespace must either be defined via a manifest,
or specified in package syntax (prefix.* or * for local components).


Error /TheBook/myBlogReader.mxml:5
Don't know how to parse element BlogViewHelper. It is not a known
type or a property of mx.core.Application.

I have seen similar questions posted but my Flex is still new enough
where I'm not sure how to solve this.  I have tried comparing the
source code provided but don't see the source of my problem.

Can someone please help me get unstuck?

M


 
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 get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi All,
One small and very simple question I can not figure it out how - How
to get the value from a cell of datagrid?
I am tried the following but in vain. Please some one help me out. Thanks in
advance.

Function setData(event:Object)
{
myDataGrid.getColumnAt(event.columnIndex).text  
AND 
myDataGrid.getColumnAt(event.columnIndex).value
}

Thanks!
Hari



 
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] error message working thru flexbook

2005-05-24 Thread Abdul Qabiz
Hi,

I believe the code in book corresponds to Flex 1.0 version. However, you
can modify it work under Flex 1.5.

Add this xmlns=*  to Application tag and it would work.




mx:Applcation xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*



///rest of code


/mx:Application


-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of diamondtearz
Sent: Tuesday, May 24, 2005 7:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] error message working thru flexbook

Good morning.  I'm working through chapter 2 of the flexbook and came
across an error message when trying to do the exercise.

2 Errors found.
 
Error /TheBook/myBlogReader.mxml:5
URI is unknown! The namespace must either be defined via a manifest,
or specified in package syntax (prefix.* or * for local components).


Error /TheBook/myBlogReader.mxml:5
Don't know how to parse element BlogViewHelper. It is not a known
type or a property of mx.core.Application.

I have seen similar questions posted but my Flex is still new enough
where I'm not sure how to solve this.  I have tried comparing the
source code provided but don't see the source of my problem.

Can someone please help me get unstuck?

M


 
Yahoo! Groups Links



 




 
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] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Matt Chotin










Yep, thats what Im saying.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Craig Newroth
Sent: Tuesday, May 24, 2005 7:56
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I
bind more that one checkbox to a send requ est?





Matt:
Thanks for
the response, I am trying to pass a list of
the ones
that are checked..values in the checkboxes
are going to
be passed to a cfc to get data from query
and returned
to datagrid.
so I guess
that you are saying to build an array out
of the
checkboxes (if they are checked) and then pass
that array
value to my cfc call?
Craig














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 the Yahoo! Terms of Service.












Re: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread jeff tapper
You need to tell it which row of data you want

myDataGrid.getItemAt(rowNum).column Name

At 10:07 AM 5/24/2005, you wrote:
Hi All,
   One small and very simple question I can not figure it out how - How
to get the value from a cell of datagrid?
I am tried the following but in vain. Please some one help me out. Thanks in
advance.

Function setData(event:Object)
{
   myDataGrid.getColumnAt(event.columnIndex).text
   AND
   myDataGrid.getColumnAt(event.columnIndex).value
}

Thanks!
Hari



--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

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

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.



 
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 get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Jeff,
Thanks for response, you mean 

Var dataValue =
myDataGrid.getItemAt(event.itemIndex).getColumnAt(event.columnIndex).columnN
ame;

I don't want the name of the column user is modifying but I want the value
entered by the user. I am sorry if I confused you. If you have an example
code can you post it?
Here is what I am doing...

mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50 editable=true
cellEdit=setData(event)

/mx:DataGrid

function setData(event:Object)
{

mx.controls.Alert.show(column Name :
+myDataGrid.getColumnAt(event.columnIndex).columnName);
mx.controls.Alert.show(event.oldValue : +event.oldValue+
new value : +myDataGrid.getColumnAt(event.columnIndex).value);
//myDataGrid.editField( event.columnIndex, colName: String,
data);
}

I was able to alert the old value but not the new value entered by the user.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeff tapper
Sent: Tuesday, May 24, 2005 10:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to get value from datagrid cell?

You need to tell it which row of data you want

myDataGrid.getItemAt(rowNum).column Name

At 10:07 AM 5/24/2005, you wrote:
Hi All,
   One small and very simple question I can not figure it out how - How
to get the value from a cell of datagrid?
I am tried the following but in vain. Please some one help me out. Thanks
in
advance.

Function setData(event:Object)
{
   myDataGrid.getColumnAt(event.columnIndex).text
   AND
   myDataGrid.getColumnAt(event.columnIndex).value
}

Thanks!
Hari



--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 

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

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

mailto:[EMAIL PROTECTED]flexcoder
[EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.



 
Yahoo! Groups Links



 



 
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] When do I need to Recompile mxml files?

2005-05-24 Thread Valy Sivec



Thanks Abdul. Do I need to re-compile mxml files in case I made some changes to flex-config.xml?

Thanks again,
Valy
Abdul Qabiz [EMAIL PROTECTED] wrote:


Hi,

Any changes to MXML  associated AS files would require recompilation. Any changes to backend logic (POJO, EJB) doesn't require flex app recompilation, unless you have use Model/XML tag to fetch data from backend.

Data of Model/XML tags get compiled in flex application, so you need to take care this situation..

mx:Model source="http://www.myserver.com/getCategories.jsp" / or mx:XML source="http://www.myserver.com/getCategories.jsp"/


getCategories.jsp returns xml file So if getCategories.jsp is changed, you should recompile the flex app also... 

Does it make sense?

-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Valy SivecSent: Tuesday, May 24, 2005 6:25 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] When do I need to Recompile mxml files?


Hello flexcoders,
I have a flex project and want to precompile the mxml files. I was wondering if I need to re-compile the mxml files in case for example I fix a bug in the business logic of a remote object method.. ( not method signature changes ). 
So, when do I need to recompile the mxml files due to changes? I know that when any of the "as"/mxml/flex-config.xml has changed than need to recompile... How about server side classes? Should the mxml care if the backend changed? 
Thanks for your help.
Valy


Do You Yahoo!?Yahoo! Small Business - Try our new Resources site! 
		Do You Yahoo!? Yahoo! Small Business - Try our new Resources site!







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 the Yahoo! Terms of Service.










[flexcoders] Validating XML

2005-05-24 Thread JesterXL
When the back-end is using validated XML value objects (using Castor to 
convert XML to Java objects, and since they are XML with an XSD, they can 
validate the data), how can Flex validate this data as well?  I've dug and 
haven't seen anything that allows HTTPService or XML, or even the XML 
ActionScript API to validate XML through DTD/XSD's.

Is there a way to validate XML through an XSD on the client before sending 
it through an HTTPService?

--JesterXL 



 
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] Possible to setStyle on the entire application?

2005-05-24 Thread Jeff Steiner
Thank you very much.

Jeff
- Original Message - 
From: Richard Butler [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 24, 2005 2:24 AM
Subject: RE: [flexcoders] Possible to setStyle on the entire application?


 Jeff,
 
 mx.core.Application.application.setStyle(themeColor, 0xCC) should
 give you some joy...
 
 Unfortunately at runtime you can only change one style at a time, so if
 you're parsing a stylesheet it can be quite strenuous on the client
 machine's processing load, especially if you're changing a style that
 affects numerous components...
 
 Cheers,
 Rich
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jeff Steiner
 Sent: 24 May 2005 07:10
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Possible to setStyle on the entire
 application?
 
 
 ha
 
 Sorry - I am looking to change them after the app has loaded.
 
 dynamically.
 
 Jeff
 - Original Message - 
 From: Abdul Qabiz [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, May 23, 2005 10:47 PM
 Subject: RE: [flexcoders] Possible to setStyle on the entire
 application?
 
 
  Jeff,
  
  You can change the themeColor of entier app like this:
  
  mx:Application themeColor=0xFF ..
  
  ..
  
  /mx:Application
  
  
  -abdul
  
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of Jeff Steiner
  Sent: Tuesday, May 24, 2005 11:00 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Possible to setStyle on the entire application?
  
  Without using a setStyle for every single element in an app, is it 
  possible to change the theme-color of an application on the fly?
  
  Thanks,
  Jeff
  http://www.flexauthority.com
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 


 
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] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Jeff Steiner
Craig,

I have a specific example on FlexAuthority.  Visit:
http://www.flexauthority.com/samplesIndex.cfm?sampleID=23

I have multiple checkboxes that pass along their checked state to a CFC that
returns XML to populate a chart.

Let me know if that does not answer your specific question.

Jeff
http://www.flexauthority.com

- Original Message - 
From: Craig Newroth [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 24, 2005 4:55 AM
Subject: RE: [flexcoders] can I bind more that one checkbox to a send requ
est?


 Matt:
 Thanks for the response, I am trying to pass a list of
 the ones that are checked..values in the checkboxes
 are going to be passed to a cfc to get data from query
 and returned to datagrid.
 so I guess that you are saying to build an array out
 of the checkboxes (if they are checked) and then pass
 that array value to my cfc call?
 Craig

 --- Matt Chotin [EMAIL PROTECTED] wrote:
  Are you trying to pass a list of the ones that are
  checked or just one?
  Your changeThrusts method can simply store which
  checkboxes are selected and
  then you can build an array to pass to your web
  service for the query.  If
  only one of those checkboxes is meant to be checked
  maybe you should look
  into using RadioButtons instead and then take
  advantage of
  RadioButtonGroup.selectedData.
 
 
 
  Matt
 
 
 
_
 
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
  Behalf Of cnewroth55
  Sent: Thursday, May 19, 2005 10:44 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] can I bind more that one
  checkbox to a send request?
 
 
 
  I have a form that has several different checkboxes
  and need to pass
  any of their respected labels (or data) to a
  webservice cfc..what i
  what to do is be able to pass any of the below up to
  my webservice
  call. the code for the web service call is below
  this...;
 
  mx:VBox
 mx:CheckBox label=Select All
  Thrust
  color=#123154  labelPlacement=right
  id=ThrustReportsCHB1
  click=changeThrusts( event ); /
 mx:CheckBox label=ASMT - Affordable
  Structures
  amp; Mfg. Tech color=#123154
  labelPlacement=right
  id=ThrustReportsCHB2 /
 mx:CheckBox label=ALE - Adv. Lean
  amp; Efficient
  color=#123154 labelPlacement=right
  id=ThrustReportsCHB3 /
 mx:CheckBox label=ASC - Adv.
  Support Concepts
  color=#123154 labelPlacement=right
  id=ThrustReportsCHB4 /
 mx:CheckBox label=ASC - APS - Adv.
  Platform
  Systems color=#123154 labelPlacement=right
  id=ThrustReportsCHB5 /
 mx:CheckBox label=NCO - Net-Centric
  Operations
  color=#123154 labelPlacement=right
  id=ThrustReportsCHB6 /
 mx:HBox x=5 y=230 
mx:FormItem 
  mx:CheckBox label=Summary
  color=#123154
  labelPlacement=top id=summaryCHB
  click=changeOther( event );/
/mx:FormItem
mx:FormItem
  mx:CheckBox label=Detail
  color=#123154
  labelPlacement=top id=detailCHB
  click=changeOther( event );/
/mx:FormItem
 /mx:HBox
/mx:VBox
 
  WEB SERVICE CALL
  mx:WebService
 
 wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
  http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
  wsdl id=gvsQueriesWS
  mx:operation name=Thrust_Query
mx:request
 
 
 ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName
/mx:request
  /mx:operation
/mx:WebService
 
 
 
 
 
 
_
 
  Yahoo! Groups Links
 
  * To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
  http://groups.yahoo.com/group/flexcoders/
 
  * To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 
 mailto:[EMAIL PROTECTED]
 
 
  * Your use of Yahoo! Groups is subject to the Yahoo!
  http://docs.yahoo.com/info/terms/  Terms of
  Service.
 
 



 __
 Do you Yahoo!?
 Yahoo! Small Business - Try our new Resources site
 http://smallbusiness.yahoo.com/resources/



 Yahoo! Groups Links









 
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] Possible to setStyle on the entire application?

2005-05-24 Thread JesterXL
Try this.  Put this code in your Application:

function setupAppColor()
{
if(appColor == blue)
  {
   setStyle(themeColor, haloBlue);
  }
  else if(appColor == orange)
  {
   setStyle(themeColor, haloOrange);
  }
  else if(appColor == green)
  {
   setStyle(themeColor, haloGreen);
  }
  else if(appColor == silver)
  {
   setStyle(themeColor, haloSilver);
  }
}

Call setupAppColor in your initialize.  Then you can do:

http://localhost:8080/flex/your.mxml?appColor=blue
http://localhost:8080/flex/your.mxml?appColor=orange
http://localhost:8080/flex/your.mxml?appColor=green
http://localhost:8080/flex/your.mxml?appColor=silver


- Original Message - 
From: Jeff Steiner [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 24, 2005 11:07 AM
Subject: Re: [flexcoders] Possible to setStyle on the entire application?


Thank you very much.

Jeff
- Original Message - 
From: Richard Butler [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 24, 2005 2:24 AM
Subject: RE: [flexcoders] Possible to setStyle on the entire application?


 Jeff,
 
 mx.core.Application.application.setStyle(themeColor, 0xCC) should
 give you some joy...
 
 Unfortunately at runtime you can only change one style at a time, so if
 you're parsing a stylesheet it can be quite strenuous on the client
 machine's processing load, especially if you're changing a style that
 affects numerous components...
 
 Cheers,
 Rich
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jeff Steiner
 Sent: 24 May 2005 07:10
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Possible to setStyle on the entire
 application?
 
 
 ha
 
 Sorry - I am looking to change them after the app has loaded.
 
 dynamically.
 
 Jeff
 - Original Message - 
 From: Abdul Qabiz [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, May 23, 2005 10:47 PM
 Subject: RE: [flexcoders] Possible to setStyle on the entire
 application?
 
 
  Jeff,
  
  You can change the themeColor of entier app like this:
  
  mx:Application themeColor=0xFF ..
  
  ..
  
  /mx:Application
  
  
  -abdul
  
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of Jeff Steiner
  Sent: Tuesday, May 24, 2005 11:00 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Possible to setStyle on the entire application?
  
  Without using a setStyle for every single element in an app, is it 
  possible to change the theme-color of an application on the fly?
  
  Thanks,
  Jeff
  http://www.flexauthority.com
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 


 
Yahoo! Groups Links



 



 
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] When do I need to Recompile mxml files?

2005-05-24 Thread Abdul Qabiz





Hi,

Not sure, depends on your requirements. 
Some of the settings like 

generate-profile-swfs
generate-debug-swfs
optimize
actionscript-classpath
lib-path 
cache
fonts

might require recompilation of swf...

May be someone who is more familiar with this stuff, 
comment.

-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Valy 
SivecSent: Tuesday, May 24, 2005 8:28 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] When do I need to 
Recompile mxml files?

Thanks Abdul. Do I need to re-compile mxml files in case 
I made some changes to flex-config.xml?

Thanks again,
Valy
Abdul Qabiz [EMAIL PROTECTED] 
wrote:

  
  Hi,
  
  Any changes to MXML  associated AS files would 
  require recompilation. Any changes to backend logic (POJO, EJB) doesn't 
  require flex app recompilation, unless you have use Model/XML tag to fetch 
  data from backend.
  
  Data of Model/XML tags get compiled in flex application, 
  so you need to take care this situation..
  
  mx:Model source="http://www.myserver.com/getCategories.jsp" 
  / or mx:XML source="http://www.myserver.com/getCategories.jsp"/
  
  
  getCategories.jsp returns xml file So if 
  getCategories.jsp is changed, you should recompile the flex app also... 
  
  
  Does it make sense?
  
  -abdul
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Valy 
  SivecSent: Tuesday, May 24, 2005 6:25 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] When do I need to 
  Recompile mxml files?
  
  
  Hello flexcoders,
  I have a flex project and want to precompile the mxml files. I was 
  wondering if I need to re-compile the mxml files in case for example I fix a 
  bug in the business logic of a remote object method.. ( not method signature 
  changes ). 
  So, when do I need to recompile the mxml files due to changes? I know that 
  when any of the "as"/mxml/flex-config.xml has changed than need to 
  recompile... How about server side classes? Should the mxml care if the 
  backend changed? 
  Thanks for your help.
  Valy
  
  
  Do You Yahoo!?Yahoo! Small Business - Try 
  our new Resources site! 


Do You Yahoo!?Yahoo! Small Business - Try 
our new Resources site! 







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 the Yahoo! Terms of Service.










RE: [flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Matt Chotin










Abduls right, depends what you
change in the flex-config.xml but I think for the most part a change to
flex-config is probably meant to affect the SWF unless youre only
changing the whitelist for one of the proxies. So Id generally
re-compile. Its not like flex-config needs to change that often once its
set up correctly.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul
 Qabiz
Sent: Tuesday, May 24, 2005 11:16
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] When do
I need to Recompile mxml files?





Hi,



Not sure, depends on your requirements. Some
of the settings like 



generate-profile-swfs

generate-debug-swfs

optimize

actionscript-classpath

lib-path 

cache

fonts



might require recompilation of swf...



May be someone who is more familiar with
this stuff, comment.



-abdul









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Valy Sivec
Sent: Tuesday, May 24, 2005 8:28
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] When do
I need to Recompile mxml files?



Thanks Abdul. Do I need to re-compile mxml files in
case I made some changes to flex-config.xml?











Thanks again,





Valy







Abdul
 Qabiz [EMAIL PROTECTED] wrote:





Hi,



Any changes to MXML  associated AS
files would require recompilation. Any changes to backend logic (POJO, EJB)
doesn't require flex app recompilation, unless you have use Model/XML tag to
fetch data from backend.



Data of Model/XML tags get compiled in
flex application, so you need to take care this situation..



mx:Model source=http://www.myserver.com/getCategories.jsp
/ or mx:XML source=http://www.myserver.com/getCategories.jsp/





getCategories.jsp returns xml file So if
getCategories.jsp is changed, you should recompile the flex app also... 



Does it make sense?



-abdul









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Valy Sivec
Sent: Tuesday, May 24, 2005 6:25
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] When do I
need to Recompile mxml files?



Hello
flexcoders,

I have a
flex project and want to precompile the mxml files. I was wondering if I need
to re-compile the mxml files in case for example I fix a bug in the business
logic of a remote object method.. ( not method signature changes ). 

So, when
do I need to recompile the mxml files due to changes? I know that when any of
the as/mxml/flex-config.xml has changed than need to recompile...
How about server side classes? Should the mxml care if the backend changed? 

Thanks
for your help.

Valy









Do You Yahoo!?
Yahoo! Small Business - Try
our new Resources site! 









Do You Yahoo!?
Yahoo! Small Business - Try
our new Resources site! 










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 the Yahoo! Terms of Service.












[flexcoders] Storing Web Service Results in Unique Arrays/Objects

2005-05-24 Thread Dave
I have a sticky situation that seems easy to solve. Each time a row 
of a dataGrid (bound to webserviceA) is selected, a request to web 
serviceB is made. 

The sticky part is that each unique result from webserviceB (from a 
unique row selection), must be saved in order to be used by another 
object. I don't want the results to be overwritten each time a 
request is made (i.e. when a different row of the dataGrid is 
selected).

Here is a very rough illustration of what's in my head (very scary):

dataGrid id=dg dataProvider=webserviceA change=webserviceB.send
() / //request will include Category{dg.selectedItem.CATEGORY}
/Category 

webserviceB result should be bound to UNIQUE array/object so that 
each result will be saved for use by other object.


Thanks for any help,

-Dave






 
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] Detecting flash player

2005-05-24 Thread viraf_bankwalla
Hi,

I have a Flex application that is embeded in a HTML page.  When the 
application is referenced using 'appname.mxml.swf' I have noticed that 
the flash player is not being detected.

If I visit 'appname.mxml' directly from the browser, the version 
detection takes place.  How do I enable the version detection through 
the embeded object 'appname.mxml.swf' 

Thanks.




 
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] Validating XML

2005-05-24 Thread JesterXL
My perception of Castor and the reason to use it is based on the ability to 
validate your data/value objects in Java, thus ensuring that if your data is 
valid, and another system has problems using it, it is the other system and 
not the base Java code.

Furthermore, the use of XSD's for data objects allows the proliferation of 
many standard value objects to be used across a myriad of applications with 
the ability of those applciations to validate the data they are sending, 
thus ensuring ease of communication across disparate systems.

With the above 2 said, that is my guess as to why someone would expect Flex 
to validate the XML via the XSD before sending; that way you can ensure the 
data you are sending back to Java is valid ... in form, not in contents. 
So, if the number is 0-0-0-0-0 instead of 000-000-, that is a data input 
validation error, but at least the data is well formed.

Does that make sense?  I'm not saying I agree with using an XSD vs. just 
straight RemoteObject and mapping both server-side and client side value 
object classes to match as close as possible, and through testing you are 
ensured that the data works since you mirrored the Java class client side in 
a value object, but your thoughts do help me understand the why someone 
would want to do it; I'm trying to build up a decent inference here.


- Original Message - 
From: Steven Webster [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 24, 2005 11:12 AM
Subject: RE: [flexcoders] Validating XML


Jester,

 Is there a way to validate XML through an XSD on the client
 before sending it through an HTTPService?

Quick answer is no, I don't think you can do schema validation
on the client ... however, I'd also argue that this kind of
validation belongs on the server anyway (and that client-side
validation exists to improve the user-experience, and to reduce
unncecessary roundtrip to the server, rather than to validate
correctness of the data in the strictest sense).

Thoughts ?

Steven

--
Steven Webster
Technical Director
iteration::two

This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.

Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.




Yahoo! Groups Links







 
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 get value from datagrid cell?

2005-05-24 Thread jeff tapper
ok, try this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
creationComplete=initApp()
mx:Script
![CDATA[
var schedAdj_do:Array;
function initApp(){
 var item1:Object = new Object();
 item1.name = Jeff;
 item1.company=Tapper.net;
 var item2:Object = new Object();
 item2.name = Lisa;
 item2.company=LKJ Hosting;
 schedAdj_do=new Array(item1,item2);

}
function setData(event:Object){
 var col:String= 
event.target.getColumnAt(event.columnIndex).columnName;
 var row:Number = event.itemIndex;
  mx.controls.Alert.show(event.oldValue : 
+event.oldValue+newline+new value : +event.target.getItemAt(row)[col]);
}
]]
/mx:Script
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do} 
textAlign=left height=250 headerHeight=50 editable=true 
cellEdit=setData(event)/

/mx:Application

At 10:32 AM 5/24/2005, you wrote:
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50 editable=true
cellEdit=setData(event)

/mx:DataGrid

function setData(event:Object)
   {

 mx.controls.Alert.show(column Name :
+myDataGrid.getColumnAt(event.columnIndex).columnName);
 mx.controls.Alert.show(event.oldValue : +event.oldValue+
new value : +myDataGrid.getColumnAt(event.columnIndex).value);
 //myDataGrid.editField( event.columnIndex, colName: String,
data);
   }



 
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] Making a page with a video clip

2005-05-24 Thread nostra72




One of the sample pages has a clip on it and its written like this
?xml version="1.0" encoding="utf-8"?

mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"

 mx:MediaPlayback width="300" height="300" contentPath="../assets/clip.flv" controllerPolicy="on"/

/mx:ApplicationWhat I want to know is does the file that it plays have to be a flv file and if so is there a way to say convert a WMV file to a flv file or to do the same thing with an rm file? If not how do I make a video that is going to be a flv file I mean do I use a camera what do I use? I am asking because video has always impressed me and I want to know how to do it for anything I do in the future involving flex?







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 the Yahoo! Terms of Service.










RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi Jeff,

Thank you very much for the help and the code. That helped me a lot in
understanding getColumnAt() and getItemAt(). Thanks agin.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeff tapper
Sent: Tuesday, May 24, 2005 11:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to get value from datagrid cell?

ok, try this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
creationComplete=initApp()
mx:Script
![CDATA[
var schedAdj_do:Array;
function initApp(){
 var item1:Object = new Object();
 item1.name = Jeff;
 item1.company=Tapper.net;
 var item2:Object = new Object();
 item2.name = Lisa;
 item2.company=LKJ Hosting;
 schedAdj_do=new Array(item1,item2);

}
function setData(event:Object){
 var col:String= 
event.target.getColumnAt(event.columnIndex).columnName;
 var row:Number = event.itemIndex;
  mx.controls.Alert.show(event.oldValue : 
+event.oldValue+newline+new value : +event.target.getItemAt(row)[col]);
}
]]
/mx:Script
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do} 
textAlign=left height=250 headerHeight=50 editable=true 
cellEdit=setData(event)/

/mx:Application

At 10:32 AM 5/24/2005, you wrote:
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50 editable=true
cellEdit=setData(event)

/mx:DataGrid

function setData(event:Object)
   {

 mx.controls.Alert.show(column Name :
+myDataGrid.getColumnAt(event.columnIndex).columnName);
 mx.controls.Alert.show(event.oldValue : +event.oldValue+
new value : +myDataGrid.getColumnAt(event.columnIndex).value);
 //myDataGrid.editField( event.columnIndex, colName: String,
data);
   }



 
Yahoo! Groups Links



 



 
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] Making a page with a video clip

2005-05-24 Thread Richard Butler
Title: Message





You need Flash MX 2004 Pro and the Flash 
Video Exporter, which you can grab from macromedia.com, which you can then use 
to export movies to FLVsfrom programs such asAfter Effects. Sorenson 
Squeeze is also an exceptional tool for streaming media.

Cheers
Rich

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: 24 May 2005 17:17To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Making a page with 
  a video clip
  One of the sample pages has a clip on it and its written like this
  ?xml version="1.0" encoding="utf-8"?
  
  mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
  
   mx:MediaPlayback width="300" height="300" 
  contentPath="../assets/clip.flv" controllerPolicy="on"/
  
  /mx:ApplicationWhat I want to know is does the file 
  that it plays have to be a flv file and if so is there a way to say convert a 
  WMV file to a flv file or to do the same thing with an rm file? If not how do 
  I make a video that is going to be a flv file I mean do I use a camera what do 
  I use? I am asking because video has always impressed me and I want to know 
  how to do it for anything I do in the future involving flex?







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 the Yahoo! Terms of Service.










Re: [flexcoders] Making a page with a video clip

2005-05-24 Thread nostra72



How much do these programs cost







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 the Yahoo! Terms of Service.










[flexcoders] Re: Tree component's calculateWidth() method, does it work?

2005-05-24 Thread pilby1
No, that's not the problem. I did notice how I had the missing 's' 
after the fact, but in my code, it is calculateWidths(). If you would 
just create a tree component and try it, you will see calculateWidths
() always returns NaN.

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 5/23/05, pilby1 [EMAIL PROTECTED] wrote:
 
  Checking the documentation, it seems like the method, 
calculateWidth
  (), is my answer. However, doing tree.calculateWidth() always 
returns
  NaN, making it useless.
 
 It's 'calculateWidths' (with an 's').  Could that be the problem?




 
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] Making a page with a video clip

2005-05-24 Thread Blake Kadatz
 How much do these programs cost  

If you're not already familiar with it, http://froogle.google.com is a
good place to start shopping for software prices.  Enter appropriate
product to search for (eg: sorenson squeeze) and have fun!

Cheers,

Blake


 
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] Panel Mouse Down Problem

2005-05-24 Thread kaibabsowats
I have a problem where the mouse doesn't fire off the correct
MouseDown event.  It only happens when the mouse doesn't move and a
new container with a mouseDown event is loaded under it.  It seems to
remember the last container's mouseDown area and fires that event.  I
am trying to figure out how to alleviate this problem.

Steps to recreate what I am talking about.
Copy the Example code into a mxml file.  Bring it up.
Click on the first panel, dont move the mouse.
You'll see a popup stating which Panel was clicked.
Then hit the space bar (as the popup has focus) to get rid of the
popup.  
With out moving the mouse click the left mouse button.  You'll see
that the same popup appears.
Clear the popup.
Now move the mouse, and click on the panel.
You'll see that it properly fires the panel's mouseDown.

Any help would be much appreciated

Example Code:
?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* 

mx:Script
![CDATA[
import mx.controls.Alert;

function changeView( view ) {
Alert.show( view );
if( view == 'firstChild1Panel1' ) {
firstChildStack.selectedChild = firstChild2;
}
if( view == 'firstChild2Panel1' ) {
firstChildStack.selectedChild = firstChild1;
}   
}
]]
/mx:Script

mx:ViewStack id=firstStack
mx:Panel id=firstChild headerHeight=34 verticalGap=0
mx:ViewStack id=firstChildStack
mx:HBox id=firstChild1 width=100% 
height=320
horizontalAlign=center direction=horizontal verticalGap=10
mx:Panel id=firstChild1Panel1 
title=First Child #1 Panel 1
width=210 height=320

initialize=firstChild1Panel1.onRelease=null;first
Child1Panel1.useHandCursor=true;

mouseDown=changeView( 
'firstChild1Panel1' );
marginLeft=8 marginRight=8 
marginTop=8 marginBottom=8
mx:ControlBar 
verticalAlign=middle
mx:Label text=Click 
Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel 
mx:Panel id=firstChild1Panel2 
title=First Child #1 Panel 2
width=210 height=320 

initialize=firstChild1Panel2.onRelease=null;first
Child1Panel2.useHandCursor=true;

mouseDown=changeView( 
'firstChild1Panel2' );
marginLeft=8 marginRight=8 
marginTop=8 marginBottom=8
mx:ControlBar 
verticalAlign=middle
mx:Label text=Click 
Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel
mx:Panel id=firstChild1Panel3 
title=First Child #1 Panel 3
width=210 height=320 

initialize=firstChild1Panel3.onRelease=null;first
Child1Panel3.useHandCursor=true;

mouseDown=changeView( 
'firstChild1Panel3' );
marginLeft=8 marginRight=8 
marginTop=8 marginBottom=8
mx:ControlBar 
verticalAlign=middle
mx:Label text=Click 
Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel
/mx:HBox
mx:HBox id=firstChild2 width=100% 
height=320
horizontalAlign=center direction=horizontal verticalGap=10
mx:Panel id=firstChild2Panel1 
title=First Child #2 Panel 1
width=210 height=320

initialize=firstChild2Panel1.onRelease=null;first
Child2Panel1.useHandCursor=true;

mouseDown=changeView( 
'firstChild2Panel1' );
marginLeft=8 marginRight=8 
marginTop=8 marginBottom=8
mx:ControlBar 
verticalAlign=middle
mx:Label text=Click 
Here to Enter!   width=100%
textAlign=center /
 

[flexcoders] Minimal Tomcat Deployment

2005-05-24 Thread Dan Glauser
Hello folks,

I'm sorry if this topic has already been covered but when searching
the list I was unable to find what I am looking for.

I'd like to put together a *minimal* set of tasks for deploying a Flex
app in Tomcat.  Specifically I'm looking for what jars need to be
where and what deployment descriptors need to be changed.  Now I've
looked at the samples that come with Flex and here is what I have so
far:

I'm aware that you can put flex-tomcat-common.jar in
$TOMCAT_HOME/common/lib and put flex-tomcat-server.jar in
$TOMCAT_HOME/server/lib.  From the samples webapp I see a bunch of
other jars in WEB-INF/flex/jars but the ones that seem to stand out
are flex-tags.jar and flex.jar.

There are a bunch of entries in the web.xml for the samples
application.  Not sure which are necessary for a basic application.

I know that I can just get going by deploying the flex.war webapp in
Tomcat but I'm looking for a minimal project that contains all the
necessary flex libraries.  I'm also looking for the minimal
configuration file changes to get hello world working and to have
Tomcat properly handle mxml files.

I've found lots of good examples just to get me going with Flex but I
haven't yet found a minimalist approach.

Thanks in advance,

--
Dan Glauser
J2EE Developer
[EMAIL PROTECTED]


 
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: Making a page with a video clip

2005-05-24 Thread kaibabsowats
There is also a free encoder here http://www.rivavx.com/

We ended up with Sorenson for quality reasons, but Riva is a good
starting point.

As for playing video in Flex, its pretty simple just explore the API
of MediaPlayback, MediaDisplay and MediaController.




 
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] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
Hey Jim, 

I have a question: What is the dataProvider property in the Class
ComboBoxCellRenderer2?


Thanks.


On 5/23/05, Jim Laing [EMAIL PROTECTED] wrote:
 Hey Beck,
 
 I've done exactly what you're looking for (plus a lot of other stuff
 you might not want), through digging into the DataGrid code and
 creating a subclass. I've posted the code, and it should provide you
 with a starting point, although I still haven't gotten around to
 creating a simple demo (blame it on schedule ...)
 
 Check out this message: http://groups.yahoo.com/group/flexcoders/message/14768
 
 Jim
 
 
 On 5/23/05, Beck Novaes [EMAIL PROTECTED] wrote:
  Hi People,
 
  I need to implement a DataGrid with the following requirements:
 
  -   It should be possible to have ComboBox in his cells;
  -   It should be possible to use the keyboard (TAB) to jump from one
  cell to another even though in one cell there is a ComboBox
  -   It should be possible to restrict data on individual cells
  -   It should be possible to validate data on individual cells
 
  In other worlds, this DataGrid should work much like an Excel Sheet.
  The most important thing is the ability to enter the data just using
  the keyboard.
 
  To implement something like this I need to dive into DataGrid. Does
  anyone have some tips to save my time? Have you ever needed to
  implement something like this?
 
  Thanks a lot!
 
 
 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 



 
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] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR










Tracy,

 Here
is my code. If you don't mind can you help me out in resolving this issue.
Thanks!



 mx:DataGrid
id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50
editable=true cellEdit=updateData(event)

 
mx:columns

 
mx:Array

 
mx:DataGridColumn headerText=# columnName=adj_num
width=50 editable=false textAlign=left/

 
mx:DataGridColumn headerText=Type columnName=adj_type
width=100 /

 
mx:DataGridColumn headerText=Category columnName=adj_category
width=150 /

 
mx:DataGridColumn headerText=Terms columnName=adj_amt_terms_desc
width=200 /

 
mx:DataGridColumn headerText={rptappl} columnName=adj_reporter_applied_flag
width=50 /

 
mx:DataGridColumn headerText=Sign columnName=adj_sign
width=75 textAlign=center /

 
mx:DataGridColumn headerText=Factor columnName=adj_factor
width=100 textAlign=right/

 
mx:DataGridColumn headerText={ordappl} columnName=adj_order_applied
width=75 textAlign=left /

 
/mx:Array

 
/mx:columns

 
/mx:DataGrid

 

 function
updateData(event:Object)

 {

 mx.controls.Alert.show(cellEdit
event fired ); 

 var
colName:String= event.target.getColumnAt(event.columnIndex).columnName;


var row:Number = event.itemIndex;

 
var dataValue = event.target.getItemAt(row)[colName];


//mx.controls.Alert.show(event.columnIndex :+event.columnIndex+newline+colName
: +colName+newline+new value : +event.target.getItemAt(row)[colName]);

 myDataGrid.dataProvider.editField(
event.columnIndex, colName, dataValue);

 }





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the "item" would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this
newly added row as a part of the dataprovider? What I mean is I am able to
create a new row in datagrid by using your methodology. But when I try to
access data in my POJO, I am getting nullpointer exception. That means, I
think, the newly added row to grid is not truly added to dataprovider. Do I
have to make any specific function call to make the newly added row attach to
dataprovider? If this question is already discussed, please guide me with
reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid
= oEvent.target;

 dg.setFocus();

 dg.focusedCell =
{columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 

Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
 I have a question: What is the dataProvider property in the Class
 ComboBoxCellRenderer2?

Ignore! I know what it is.


Thanks.


 
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] Making a page with a video clip

2005-05-24 Thread dave buhler



Yes, the MediaPlayback and MediaDisplay only support one type of video file. it has to be an FLV file.

You can use any file format you want such as the following video types:
WMV, AVI, MPEG as the video type. You then need to convert one of the
aforementioned video types to an FLV. You can use a wide variety of
products to do this conversion. A popular conversion tool is Soresnon
Squeeze available at www.sorenson.com

A web cam is one tool used to create video files. So is a digital camera.

On 5/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:






One of the sample pages has a clip on it and its written like this
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:MediaPlayback width=300 height=300 contentPath=../assets/clip.flv controllerPolicy=on/

/mx:ApplicationWhat I want to know is does the
file that it plays have to be a flv file and if so is there a way to
say convert a WMV file to a flv file or to do the same thing with an rm
file? If not how do I make a video that is going to be a flv file I
mean do I use a camera what do I use? I am asking because video has
always impressed me and I want to know how to do it for anything I do
in the future involving flex?







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 the Yahoo! Terms of Service.


















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 the Yahoo! Terms of Service.










[flexcoders] Re: Eclipse as a main flex dev

2005-05-24 Thread r0main
Well,
basically I'd just want to validate that the MXML files can be compiled...
With MTASC I compile .as files just to get error messages, nothing
more ! (then I can see flex mx.core classes have duplicates getter
definitions ;-) )
And I'd like as well to have an eclipse-based MXML error validation...

r0main

--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 On 5/23/05, r0main [EMAIL PROTECTED] wrote:
 
  What would be very hot is that when we are editing MXML files in a
  FAME + Eclipse environment and saving it, we can :
  -Launch mxmlc to compile the file (parameters ?)
  -Then Run MTASC onto the compiled file
 
 Even though I haven't tried, I'm pretty sure you can't compile a
 xxx-generated.as file with MTASC, because that file does not contain
 all the source, just enough for you to understand what's going on
 under the hood.
 
 Instead, you could use mxmlc to compile directly to SWF, no?




 
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] Terribly confused on which methodology...

2005-05-24 Thread Mike Anderson
Hello All,

I am converting a Flash MX app into a Flex App - but am super confused
as to which Containers I should select, and which method I should use
when creating a Data Model.  One that can collect information from
multiple Forms - which are from separate MXML files that get loaded into
each Container.

Envision a Master/Detail form - where you have a large list of clients
in a DataGrid, and then you bring up a Details view, in a popup window,
based on the selected record.

This Details popup window will be mainly comprised of a Tab Control
controlling 8 containers (maybe a ViewStack potentially), so the user
can jump to any page they want.  Per the Developing RIA's book I got,
they seem to really be pushing the method of separating each unique
screen, into a separate MXML file.  As neat as this method is, how do I
go about making a single Object that contains all the data (spread
across ALL the individual forms), and directly access the content in
each unique Form (each in a unique container)?  No matter which Tab the
user selects, ALL the controls spread across all the Tabs, belong to the
SAME Table in the Database - so I only want to submit the data ONCE
after all the related screens are filled out.

Yes, I am familiar with using the Object object to collect  retain
the information, but how do I have a single Object grab the data from
all the Fields, when the data is spread across multiple forms, and the
time comes to send it all to the server?

For example:

public var customerObject:Object;
customerObject.firstName = someForm.firstName.text;
customerObject.workExperiece =
someOtherForm.workExperience.text;
etc...

Then send that Object to my Remoting Call when the time comes to Send
(or Receive) the data from the server.

Thanks for any advice you can provide me!

Mike





 
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] Terribly confused on which methodology...

2005-05-24 Thread Steven Webster
Mike,

If you look at the Cairngorm Store sample that we shipped with
Cairngorm 0.99 recently, you'll see the ModelLocator pattern
that we advocate.

Essentially, the ModelLocator provides you with a single place
in your application where client-side state (the model) is
held, and easily accessed from elsewhere in your application.

You may have one model, the population of which happens over
several MXML files ... that's as it should be.  There is really
no need to have a one-to-one correspondence between views
and your database tables; indeed that's very much a user-experience
anti-pattern.

Think of the model as a business object, and of your various
different MXML files as several views or cuts onto the single
business object; each of these views can manipulate/populate/
interrogate the appropriate part of your model, and at an 
appropriate point in time, you can submit the model, or a part
of the model, to the server/etc.  This divorcing of the model
and the view is critical to *any* guidelines on client-side
architecture.

 Yes, I am familiar with using the Object object to collect 
  retain the information, but how do I have a single Object 
 grab the data from all the Fields, when the data is spread 
 across multiple forms, and the time comes to send it all to 
 the server?

You want to understand client-side data models (either using
the mx:Model tag, or just having objects on the ModelLocator)
and learn how to setup bindings between your views and model.

 
 Then send that Object to my Remoting Call when the time comes 
 to Send (or Receive) the data from the server.


You can then use the model in your RemoteObject calls...
 
 Thanks for any advice you can provide me!

I think there are several related concepts to grasp here; those
of data-binding and of client-side models being the key ones.

I hope this makes sense; if not, I'm happy to try and
clarify further...

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
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] media display question

2005-05-24 Thread venkat_berkly
I'm trying to build a media player application with a playlist. I would 
like to change the dataProvider property of the mediaDisplay 
dynamically when a song ends. Can someone help me.

Thanks





 
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] Detecting flash player

2005-05-24 Thread Matt Chotin










We have a detection filter set to run for
the mxml files. If you want it to run on SWF files as well youll
need to adjust the filter settings in web.xml. Im not an expert in
that but I dont think it should be too hard if youre familiar with
J2EE.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of viraf_bankwalla
Sent: Tuesday, May 24, 2005 11:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detecting
flash player





Hi,

I have a Flex application that is embeded in a
HTML page. When the 
application is referenced using 'appname.mxml.swf'
I have noticed that 
the flash player is not being detected.

If I visit 'appname.mxml' directly from the
browser, the version 
detection takes place. How do I enable the
version detection through 
the embeded object 'appname.mxml.swf' 

Thanks.














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 the Yahoo! Terms of Service.












RE: [flexcoders] Storing Web Service Results in Unique Arrays/Objects

2005-05-24 Thread Matt Chotin










Check out the docs on the Asynchronous Completion
Token (ACT) pattern. You can use the call object to keep track of the appropriate
array index and then in the result handler store the result in the right slot.
Or something similar



Matt











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Dave
Sent: Tuesday, May 24, 2005 11:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Storing Web
Service Results in Unique Arrays/Objects





I have a sticky situation that seems easy to solve. Each time a row 
of a dataGrid (bound to webserviceA) is selected,
a request to web 
serviceB is made. 

The sticky part is that each unique result from
webserviceB (from a 
unique row selection), must be saved in order to
be used by another 
object. I don't want the results to be overwritten
each time a 
request is made (i.e. when a different row of the
dataGrid is 
selected).

Here is a very rough illustration of what's in my
head (very scary):

dataGrid id=dg
dataProvider=webserviceA change=webserviceB.send
() / //request will include
Category{dg.selectedItem.CATEGORY}
/Category 

webserviceB result should be bound to UNIQUE
array/object so that 
each result will be saved for use by other object.


Thanks for any help,

-Dave
















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 the Yahoo! Terms of Service.












[flexcoders] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Mohanraj Jayaraman
Hi ,

I have a main.mxml where I have this DataGrid 

function initListener(){
addEventListener(statusChanged,
mx.utils.Delegate.create(this, onStatusChange));
}

 function onStatusChange(e){
mx.controls.Alert.show(listener is Listening); }


mx:DataGrid id=datagrid1 rowHeight=100
dataProvider={tp} editable=true 
  mx:columns
mx:Array
  mx:DataGridColumn headerText=Name
columnName=name editable=false/
  mx:DataGridColumn headerText=City
columnName=city editable=false /
  mx:DataGridColumn headerText=Birthday
columnName=day /
  mx:DataGridColumn headerText=Status
columnName=status editable=true
cellRenderer=ComboCellRenderer /

/mx:Array
  /mx:columns
/mx:DataGrid


Whenever the combox box value is changed I want to
call a remote object with the datagrid's selectedItem
object.

I am handling the 'change' event in the
ComboCellRenderer and dispatching a 'statusChanged'
event and I also have a listener attached to main.mxml
for the 'statusChanged' event. But whenever the combo
box value is changed the listener function
onStatusChange in main.mxml is not called.

Can you tell me what I am missing here?

Thanks
Mohan


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Panel Mouse Down Problem

2005-05-24 Thread Tracy Spratt
Try this. Add this property to your button tag:
trackAsMenu=true

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kaibabsowats
Sent: Tuesday, May 24, 2005 12:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Panel Mouse Down Problem

I have a problem where the mouse doesn't fire off the correct
MouseDown event.  It only happens when the mouse doesn't move and a
new container with a mouseDown event is loaded under it.  It seems to
remember the last container's mouseDown area and fires that event.  I
am trying to figure out how to alleviate this problem.

Steps to recreate what I am talking about.
Copy the Example code into a mxml file.  Bring it up.
Click on the first panel, dont move the mouse.
You'll see a popup stating which Panel was clicked.
Then hit the space bar (as the popup has focus) to get rid of the
popup.  
With out moving the mouse click the left mouse button.  You'll see
that the same popup appears.
Clear the popup.
Now move the mouse, and click on the panel.
You'll see that it properly fires the panel's mouseDown.

Any help would be much appreciated

Example Code:
?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* 

mx:Script
![CDATA[
import mx.controls.Alert;

function changeView( view ) {
Alert.show( view );
if( view == 'firstChild1Panel1' ) {
firstChildStack.selectedChild =
firstChild2;
}
if( view == 'firstChild2Panel1' ) {
firstChildStack.selectedChild =
firstChild1;
}   
}
]]
/mx:Script

mx:ViewStack id=firstStack
mx:Panel id=firstChild headerHeight=34
verticalGap=0
mx:ViewStack id=firstChildStack
mx:HBox id=firstChild1 width=100%
height=320
horizontalAlign=center direction=horizontal verticalGap=10
mx:Panel id=firstChild1Panel1
title=First Child #1 Panel 1
width=210 height=320

initialize=firstChild1Panel1.onRelease=null;first
Child1Panel1.useHandCursor=true;

mouseDown=changeView(
'firstChild1Panel1' );
marginLeft=8
marginRight=8 marginTop=8 marginBottom=8
mx:ControlBar
verticalAlign=middle
mx:Label
text=Click Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel 
mx:Panel id=firstChild1Panel2
title=First Child #1 Panel 2
width=210 height=320 

initialize=firstChild1Panel2.onRelease=null;first
Child1Panel2.useHandCursor=true;

mouseDown=changeView(
'firstChild1Panel2' );
marginLeft=8
marginRight=8 marginTop=8 marginBottom=8
mx:ControlBar
verticalAlign=middle
mx:Label
text=Click Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel
mx:Panel id=firstChild1Panel3
title=First Child #1 Panel 3
width=210 height=320 

initialize=firstChild1Panel3.onRelease=null;first
Child1Panel3.useHandCursor=true;

mouseDown=changeView(
'firstChild1Panel3' );
marginLeft=8
marginRight=8 marginTop=8 marginBottom=8
mx:ControlBar
verticalAlign=middle
mx:Label
text=Click Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel
/mx:HBox
mx:HBox id=firstChild2 width=100%
height=320
horizontalAlign=center direction=horizontal verticalGap=10
mx:Panel id=firstChild2Panel1
title=First Child #2 Panel 1
width=210 height=320

initialize=firstChild2Panel1.onRelease=null;first
Child2Panel1.useHandCursor=true;

mouseDown=changeView(
'firstChild2Panel1' );
  

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt










What is working, and what is not working?



Implement your UpdateData() function in
the sample app I provided. See if that works.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, May 24, 2005 1:31
PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Tracy,


Here is my code. If you don't mind can you help me out in resolving this issue.
Thanks!




mx:DataGrid id=myDataGrid width=100%
dataProvider={schedAdj_do} textAlign=left
height=250 headerHeight=50 editable=true
cellEdit=updateData(event)


 mx:columns


 mx:Array


 mx:DataGridColumn headerText=#
columnName=adj_num width=50 editable=false
textAlign=left/


 mx:DataGridColumn headerText=Type
columnName=adj_type width=100 /


 mx:DataGridColumn headerText=Category
columnName=adj_category width=150 /


 mx:DataGridColumn headerText=Terms columnName=adj_amt_terms_desc
width=200 /


 mx:DataGridColumn headerText={rptappl}
columnName=adj_reporter_applied_flag width=50 /


 mx:DataGridColumn headerText=Sign
columnName=adj_sign width=75
textAlign=center /


 mx:DataGridColumn headerText=Factor
columnName=adj_factor width=100
textAlign=right/


 mx:DataGridColumn headerText={ordappl}
columnName=adj_order_applied width=75
textAlign=left /


 /mx:Array


 /mx:columns


 /mx:DataGrid





function updateData(event:Object)


{


mx.controls.Alert.show(cellEdit event fired
); 


var colName:String= event.target.getColumnAt(event.columnIndex).columnName;


var row:Number = event.itemIndex;


 var dataValue = event.target.getItemAt(row)[colName];


//mx.controls.Alert.show(event.columnIndex
:+event.columnIndex+newline+colName :
+colName+newline+new value :
+event.target.getItemAt(row)[colName]);


myDataGrid.dataProvider.editField( event.columnIndex, colName, dataValue);


}





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the item would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this
newly added row as a part of the dataprovider? What I mean is I am able to
create a new row in datagrid by using your methodology. But when I try to
access data in my POJO, I am getting nullpointer exception. That means, I
think, the newly added row to grid is not truly added to dataprovider. Do I
have to make any specific function call to make the newly added row attach to
dataprovider? If this question is already discussed, please guide me with
reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function focusLastRow(oEvent:Object):Void{

 var
dg:mx.controls.DataGrid = oEvent.target;

 dg.setFocus();

 dg.focusedCell =
{columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



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

[flexcoders] Saving a Flex chart as a jpeg file

2005-05-24 Thread greenfishinwater
I have a request for an application that presents data as various
kinds of charts and graphs. The user would like thye ability to save
specific charts as a jpeg, for later use in a powerpoint slide.

Is this possible, I have a feeling it is not, I know how to print out,
but to save as a jpeg?

Andrew





 
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] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Tracy Spratt
I would use the editField() method to update the dataProvider as you go.
When you are ready to submit, iterate through the dataProvider, check
the value of the field you updated with editField.  If it is true, push
an element on a new array. Submit the new array.

Or, create a new submit array on initialize, then add or remove elements
as needed from within the cellEdit handler.  Then it will always be
ready to submit.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Craig Newroth
Sent: Tuesday, May 24, 2005 7:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I bind more that one checkbox to a send
requ est?

Matt:
Thanks for the response, I am trying to pass a list of
the ones that are checked..values in the checkboxes
are going to be passed to a cfc to get data from query
and returned to datagrid.
so I guess that you are saying to build an array out
of the checkboxes (if they are checked) and then pass
that array value to my cfc call?
Craig

--- Matt Chotin [EMAIL PROTECTED] wrote:
 Are you trying to pass a list of the ones that are
 checked or just one?
 Your changeThrusts method can simply store which
 checkboxes are selected and
 then you can build an array to pass to your web
 service for the query.  If
 only one of those checkboxes is meant to be checked
 maybe you should look
 into using RadioButtons instead and then take
 advantage of
 RadioButtonGroup.selectedData.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of cnewroth55
 Sent: Thursday, May 19, 2005 10:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] can I bind more that one
 checkbox to a send request?
 
  
 
 I have a form that has several different checkboxes
 and need to pass 
 any of their respected labels (or data) to a
 webservice cfc..what i 
 what to do is be able to pass any of the below up to
 my webservice 
 call. the code for the web service call is below
 this...;
 
 mx:VBox
mx:CheckBox label=Select All
 Thrust 
 color=#123154  labelPlacement=right
 id=ThrustReportsCHB1 
 click=changeThrusts( event ); /
mx:CheckBox label=ASMT - Affordable
 Structures 
 amp; Mfg. Tech color=#123154
 labelPlacement=right 
 id=ThrustReportsCHB2 /
mx:CheckBox label=ALE - Adv. Lean
 amp; Efficient 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB3 /
mx:CheckBox label=ASC - Adv.
 Support Concepts 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB4 /
mx:CheckBox label=ASC - APS - Adv.
 Platform 
 Systems color=#123154 labelPlacement=right 
 id=ThrustReportsCHB5 /
mx:CheckBox label=NCO - Net-Centric
 Operations 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB6 /
mx:HBox x=5 y=230 
   mx:FormItem 
 mx:CheckBox label=Summary
 color=#123154 
 labelPlacement=top id=summaryCHB
 click=changeOther( event );/
   /mx:FormItem
   mx:FormItem
 mx:CheckBox label=Detail
 color=#123154 
 labelPlacement=top id=detailCHB
 click=changeOther( event );/
   /mx:FormItem
/mx:HBox
   /mx:VBox
 
 WEB SERVICE CALL
 mx:WebService

wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
 http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? 
 wsdl id=gvsQueriesWS
 mx:operation name=Thrust_Query
   mx:request


ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName
   /mx:request
 /mx:operation
   /mx:WebService  
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of
 Service. 
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links



 






 
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] media display question

2005-05-24 Thread Matt Chotin










When you get the complete
event thats when it has reached the end of the media. You can then set
the contentPath again and restart it playing.



Matt











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of venkat_berkly
Sent: Tuesday, May 24, 2005 4:10
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] media
display question





I'm trying to build a media player application with a playlist. I would

like to change the dataProvider
property of the mediaDisplay 
dynamically when a song ends. Can someone help me.

Thanks















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 the Yahoo! Terms of Service.












RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt










Huh? I can always be wrong, but I did not
think that editable fields automatically updated a dataProvider. I will go
test this now.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, May 24, 2005 9:06
AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Tracy,


Thank you very much the info. I have a question for you about the NOTE you
mentioned in earlier mail. Are you referring editcell event and editField( )
method with reference to new row or in general any cell? To my surprise I did
not trap editcell event and did not call editField( ) on cells but I am able to
save data changes to the data base, but not the data entered for the new row
though. This makes me think that I have to call editField( ) on newly added
row, am I correct?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the item would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this
newly added row as a part of the dataprovider? What I mean is I am able to
create a new row in datagrid by using your methodology. But when I try to
access data in my POJO, I am getting nullpointer exception. That means, I
think, the newly added row to grid is not truly added to dataprovider. Do I
have to make any specific function call to make the newly added row attach to
dataprovider? If this question is already discussed, please guide me with
reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid = oEvent.target;


dg.setFocus();


dg.focusedCell = {columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid editable=true



cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

 mx:Script

 function enterNewRow():Void

 {

 grid.addItem();

 focusNewRow();

 doLater(this,
focusNewRow);

 }

 function focusNewRow():Void

 {

 grid.setFocus();

 grid.focusedCell =
{columnIndex: 0, itemIndex:

grid.dataProvider.length-1};

 }

 /mx:Script

 mx:DataGrid id=grid
editable=true

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /

 /mx:Array

 /mx:dataProvider

 /mx:DataGrid

 mx:Button label=Enter New Row
click=enterNewRow() /

/mx:Application



Note:



1. grid.addItem() will add a blank row

2. 

[flexcoders] ProgressBar and cached images problem

2005-05-24 Thread Kristopher Schultz





Hey guys and 
gals,

I've stumbled upon 
a quirky behavior I'm hoping you can help me resolve.

The ProgressBar 
component does not appear to work properly if the graphic asset being loaded is 
in the browser's cache. The simple example below illustrates this problem. The 
first time this app is displayed the ProgressBar properly tracks the loading of 
the image. But on subsequent browser refreshes, the image loads 
justfinebut the ProgressBar remains at 0%. If the browser cache is 
cleared and the app is reloaded the ProgressBar once again works 
properly.

Is this a known 
issue? How do I work around this problem?

 Example 


?xml 
version="1.0" encoding="utf-8"?mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml" 
initialize="doLoad()"

 
mx:Script 
![CDATA[ public function 
doLoad() { 
myImage.source = "http://somedomain.com/someImage.jpg"; 
} ]] 
/mx:Script

 
mx:ProgressBar source="myImage" / 
mx:Image id="myImage" /

/mx:Application



Kris

-- 

Kristopher Schultz
Developer

Resource Interactive
p: 614.410.2123
www.resource.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 the Yahoo! Terms of Service.










RE: [flexcoders] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Matt Chotin










Its the ComboCellRenderer
dispatching the statusChanged event? In that case the addEventListener is on
the wrong thing because its not main dispatching the event. I think if
the ComboCellRenderer does listOwner.parentDocument.dispatchEvent({type: statusChanged})
then it will execute on main.mxml.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mohanraj Jayaraman
Sent: Tuesday, May 24, 2005 4:53
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dispathching
and Event from Combo Box cell renderer





Hi ,

I have a main.mxml where I have this DataGrid 

 function
initListener(){

addEventListener(statusChanged,
mx.utils.Delegate.create(this, onStatusChange));
 }

 function
onStatusChange(e){

 mx.controls.Alert.show(listener is
Listening); }


 mx:DataGrid
id=datagrid1 rowHeight=100
dataProvider={tp}
editable=true 
 mx:columns

mx:Array

mx:DataGridColumn headerText=Name
columnName=name
editable=false/

mx:DataGridColumn headerText=City
columnName=city
editable=false /

  mx:DataGridColumn
headerText=Birthday
columnName=day /

  mx:DataGridColumn
headerText=Status
columnName=status
editable=true
cellRenderer=ComboCellRenderer /

 

/mx:Array
 /mx:columns
 /mx:DataGrid


Whenever the combox box value is changed I want to
call a remote object with the datagrid's
selectedItem
object.

I am handling the 'change' event in the
ComboCellRenderer and dispatching a
'statusChanged'
event and I also have a listener attached to
main.mxml
for the 'statusChanged' event. But whenever the
combo
box value is changed the listener function
onStatusChange in main.mxml is not called.

Can you tell me what I am missing here?

Thanks
Mohan


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.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 the Yahoo! Terms of Service.












RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Tracy Spratt
Never mind, I was solving the wrong problem.  Tract

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, May 24, 2005 6:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I bind more that one checkbox to a send
requ est?

I would use the editField() method to update the dataProvider as you go.
When you are ready to submit, iterate through the dataProvider, check
the value of the field you updated with editField.  If it is true, push
an element on a new array. Submit the new array.

Or, create a new submit array on initialize, then add or remove elements
as needed from within the cellEdit handler.  Then it will always be
ready to submit.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Craig Newroth
Sent: Tuesday, May 24, 2005 7:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I bind more that one checkbox to a send
requ est?

Matt:
Thanks for the response, I am trying to pass a list of
the ones that are checked..values in the checkboxes
are going to be passed to a cfc to get data from query
and returned to datagrid.
so I guess that you are saying to build an array out
of the checkboxes (if they are checked) and then pass
that array value to my cfc call?
Craig

--- Matt Chotin [EMAIL PROTECTED] wrote:
 Are you trying to pass a list of the ones that are
 checked or just one?
 Your changeThrusts method can simply store which
 checkboxes are selected and
 then you can build an array to pass to your web
 service for the query.  If
 only one of those checkboxes is meant to be checked
 maybe you should look
 into using RadioButtons instead and then take
 advantage of
 RadioButtonGroup.selectedData.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of cnewroth55
 Sent: Thursday, May 19, 2005 10:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] can I bind more that one
 checkbox to a send request?
 
  
 
 I have a form that has several different checkboxes
 and need to pass 
 any of their respected labels (or data) to a
 webservice cfc..what i 
 what to do is be able to pass any of the below up to
 my webservice 
 call. the code for the web service call is below
 this...;
 
 mx:VBox
mx:CheckBox label=Select All
 Thrust 
 color=#123154  labelPlacement=right
 id=ThrustReportsCHB1 
 click=changeThrusts( event ); /
mx:CheckBox label=ASMT - Affordable
 Structures 
 amp; Mfg. Tech color=#123154
 labelPlacement=right 
 id=ThrustReportsCHB2 /
mx:CheckBox label=ALE - Adv. Lean
 amp; Efficient 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB3 /
mx:CheckBox label=ASC - Adv.
 Support Concepts 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB4 /
mx:CheckBox label=ASC - APS - Adv.
 Platform 
 Systems color=#123154 labelPlacement=right 
 id=ThrustReportsCHB5 /
mx:CheckBox label=NCO - Net-Centric
 Operations 
 color=#123154 labelPlacement=right
 id=ThrustReportsCHB6 /
mx:HBox x=5 y=230 
   mx:FormItem 
 mx:CheckBox label=Summary
 color=#123154 
 labelPlacement=top id=summaryCHB
 click=changeOther( event );/
   /mx:FormItem
   mx:FormItem
 mx:CheckBox label=Detail
 color=#123154 
 labelPlacement=top id=detailCHB
 click=changeOther( event );/
   /mx:FormItem
/mx:HBox
   /mx:VBox
 
 WEB SERVICE CALL
 mx:WebService

wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
 http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? 
 wsdl id=gvsQueriesWS
 mx:operation name=Thrust_Query
   mx:request


ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName
   /mx:request
 /mx:operation
   /mx:WebService  
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of
 Service. 
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 






 
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: Tree component's calculateWidth() method, does it work?

2005-05-24 Thread Matt Chotin
OK, it's a bug.  Here's a class that you can use that fixes the problem.  I 
didn't spend too much time testing it but the basic algorithm worked.  I'll 
file this too.

class FixedTree extends mx.controls.Tree
{

/**
* Returns the recommended width of the control based on its content. 
You 
* can calculate this width for all the contents of the control, or 
* for a subset of items.  This method can be quite time consuming 
because
* it will measure each of the nodes in the Tree.  The signature of this 
method isbr 
* precalculateWidth(count)/prebr
* icount/i - Number of items to measure. This parameter is optional.
* @param count Number of nodes to measure.
*/
function calculateWidths(count)
{
if (count==undefined) count = 1; // a hard limit on number of 
nodes to measure.
var children = treeDataProvider.getChildNodes();
var idx = 0;
var len = children.length;
var curNode;
var hiddenRow = 
listContent.createClassObjectWithStyles(__rowRenderer, testRow, hiddenRowZ, 
{_visible:false, owner:this, styleName:this, rowIndex:0});
hiddenRow.setSize(layoutWidth, hiddenRow.preferredHeight);
var maxW = 0;
var done=false;
var dStack = new Array();
var curCount = 0;
while (!done) {
curCount++;
curNode = children[idx];
if (curCountcount) break;
hiddenRow.setValue(curNode, normal);
hiddenRow.setState(normal, false);
//  trace(measuring  + curNode.getProperty(label)+   + 
hiddenRow.cell._x +   + hiddenRow.cell.getPreferredWidth());
maxW = Math.max(hiddenRow.calculateWidth(), maxW);
if (curNode.getChildNodes().length0) {
//node has kids
if (idx+1  len) {
dStack.push({children: children,idx: idx+1,len: len});
}
children = curNode.getChildNodes();
len = children.length;
idx = 0;
} else {
if (idx+1  len) {
idx++;
} else if (dStack.length0) {
var parentData = dStack.pop();
children = parentData.children;
len = parentData.len;
idx = parentData.idx;
} else {
done = true;
}
}

}
var o = getViewMetrics();
//  trace(maxW + o.left + o.right);

listContent.destroyObject(testRow);

return maxW + o.left + o.right;

}


}


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pilby1
Sent: Tuesday, May 24, 2005 12:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree component's calculateWidth() method, does it 
work?

No, that's not the problem. I did notice how I had the missing 's' 
after the fact, but in my code, it is calculateWidths(). If you would 
just create a tree component and try it, you will see calculateWidths
() always returns NaN.

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 5/23/05, pilby1 [EMAIL PROTECTED] wrote:
 
  Checking the documentation, it seems like the method, 
calculateWidth
  (), is my answer. However, doing tree.calculateWidth() always 
returns
  NaN, making it useless.
 
 It's 'calculateWidths' (with an 's').  Could that be the problem?




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 the Yahoo! Terms of Service. 


 
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] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt










Im completely wrong! Holy crap, I
have to go back an fix a lot of apps!



Hari, Ill work on your issue in the
other thread.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Tuesday, May 24, 2005 6:34
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Huh? I can always be wrong, but I did not
think that editable fields automatically updated a dataProvider. I will
go test this now.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, May 24, 2005 9:06
AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Tracy,


Thank you very much the info. I have a question for you about the NOTE you
mentioned in earlier mail. Are you referring editcell event and editField( )
method with reference to new row or in general any cell? To my surprise I did
not trap editcell event and did not call editField( ) on cells but I am able to
save data changes to the data base, but not the data entered for the new row
though. This makes me think that I have to call editField( ) on newly added
row, am I correct?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the item would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this
newly added row as a part of the dataprovider? What I mean is I am able to
create a new row in datagrid by using your methodology. But when I try to
access data in my POJO, I am getting nullpointer exception. That means, I
think, the newly added row to grid is not truly added to dataprovider. Do I
have to make any specific function call to make the newly added row attach to
dataprovider? If this question is already discussed, please guide me with
reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an aggravating
problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid = oEvent.target;


dg.setFocus();


dg.focusedCell = {columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

 mx:Script

 function enterNewRow():Void

 {

 grid.addItem();

 focusNewRow();

 doLater(this,
focusNewRow);

 }

 function focusNewRow():Void

 {

 grid.setFocus();

 grid.focusedCell =

[flexcoders] Re: Panel Mouse Down Problem

2005-05-24 Thread kaibabsowats
Here I made it simplier:

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*

mx:Panel id=panel1 title=Some Panel width=210 height=320
mouseDown=mx.controls.Alert.show('You have Clicked Me!')
mx:ControlBar verticalAlign=middle
mx:Label text=Click Here to Enter!   width=100%
textAlign=center /
/mx:ControlBar
/mx:Panel 

/mx:Application

Have your mouse over the panel as you refresh the page, the mouseDown
event is not working until you move the mouse.




 
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] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Mohanraj Jayaraman
Hi Matt,

Thanks , that worked. 
Mohanraj


--- Matt Chotin [EMAIL PROTECTED] wrote:
 It's the ComboCellRenderer dispatching the
 statusChanged event?  In that
 case the addEventListener is on the wrong thing
 because it's not main
 dispatching the event.  I think if the
 ComboCellRenderer does
 listOwner.parentDocument.dispatchEvent({type:
 'statusChanged'}) then it
 will execute on main.mxml.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Mohanraj Jayaraman
 Sent: Tuesday, May 24, 2005 4:53 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dispathching and Event from
 Combo Box cell
 renderer
 
  
 
 Hi ,
 
 I have a main.mxml where I have this DataGrid 
 
   function initListener(){
 addEventListener(statusChanged,
 mx.utils.Delegate.create(this, onStatusChange));
   }
 
   function onStatusChange(e){
 mx.controls.Alert.show(listener is
 Listening); }
 
 
 mx:DataGrid id=datagrid1 rowHeight=100
 dataProvider={tp} editable=true 
   mx:columns
 mx:Array
   mx:DataGridColumn headerText=Name
 columnName=name editable=false/
   mx:DataGridColumn headerText=City
 columnName=city editable=false /
   mx:DataGridColumn
 headerText=Birthday
 columnName=day /
   mx:DataGridColumn headerText=Status
 columnName=status editable=true
 cellRenderer=ComboCellRenderer /
 
 /mx:Array
   /mx:columns
 /mx:DataGrid
 
 
 Whenever the combox box value is changed I want to
 call a remote object with the datagrid's
 selectedItem
 object.
 
 I am handling the 'change' event in the
 ComboCellRenderer and dispatching a 'statusChanged'
 event and I also have a listener attached to
 main.mxml
 for the 'statusChanged' event. But whenever the
 combo
 box value is changed the listener function
 onStatusChange in main.mxml is not called.
 
 Can you tell me what I am missing here?
 
 Thanks
 Mohan
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.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]

mailto:[EMAIL PROTECTED]
 
 
 * Your use of Yahoo! Groups is subject to the Yahoo!
 Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
 



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



 
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] Cairngorm error

2005-05-24 Thread Mehdi, Agha





Hi 
guys,

I just 
started with Cairngorm 0.99 and am running into the following error. Did 
everything by the book. Any help will earn my thanks. :)

Error /com/littler/ourpeople/business/Services.mxml:11 

Namespace http://macromedia.com/2003/mxml has not been 
associated with component manifest.

- Agha 
Mehdi web developer Littler Mendelson 
P.C. work: 415-288-6362 cell: 415-987-7104 - 








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 the Yahoo! Terms of Service.










This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com




[flexcoders] Applications forgetting variables

2005-05-24 Thread nostra72




I can not help but feel I have ran in to more problems than neccessary because my flex applicaitons forget variables. I mean I know from a code standpoint I am doing the right thing when I write my code but I think it forgets variables and I think this is causing me more stress than need be. What I want to know is how does someone go about making sure it does not forget variables I mean is this a way to do it:
If I have a function and a variablethat looks like this say:
public var age:Number
public function compute(){
age = 23
}
but lets say that for some odd reason when you get to the compute function it keeps forgetting the age variable will this solve it to write the function like this:

public function compute(){
var age:Number
age = 23
}
If there is any other suggestions let me know 







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 the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm error

2005-05-24 Thread dave buhler



Hi Agha,

Copy the Flex-Config file from the source files that came with either
the Login sample or Store sample that came with the cairngorm
download.Copy it over your existing Flex-Config file

Best,
DaveOn 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote:









Hi 
guys,

I just 
started with Cairngorm 0.99 and am running into the following error. Did 
everything by the book. Any help will earn my thanks. :)

Error /com/littler/ourpeople/business/Services.mxml:11 

Namespace http://macromedia.com/2003/mxml has not been 
associated with component manifest.

- Agha 
Mehdi web developer Littler Mendelson 
P.C. work: 415-288-6362 cell: 415-987-7104
 - 








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 the Yahoo! Terms of Service.










This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the
intended recipient (or authorized to receive for the recipient), please
contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.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 the Yahoo! Terms of Service.










Re: [flexcoders] Saving a Flex chart as a jpeg file

2005-05-24 Thread dave buhler



http://www.convertzone.com/net/cz-adshareit%20swf%20to%20video%20converter%20pro-swf-jpg.htm
On 5/24/05, greenfishinwater [EMAIL PROTECTED] wrote:
I have a request for an application that presents data as variouskinds of charts and graphs. The user would like thye ability to savespecific charts as a jpeg, for later use in a powerpoint slide.Is this possible, I have a feeling it is not, I know how to print out,
but to save as a jpeg?AndrewYahoo! 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/








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 the Yahoo! Terms of Service.










RE: [flexcoders] Cairngorm error

2005-05-24 Thread Mehdi, Agha





Did that just now. Same error. I restarted flex services 
but didn't work.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of dave 
buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm 
error
Hi Agha,Copy the Flex-Config file from the source files that 
came with either the Login sample or Store sample that came with the cairngorm 
download.Copy it over your existing Flex-Config 
fileBest,Dave
On 5/24/05, Mehdi, 
Agha [EMAIL PROTECTED] 
wrote:

  Hi guys,
  
  I just started with Cairngorm 
  0.99 and am running into the following error. Did everything by the book. Any 
  help will earn my thanks. :)
  
  Error 
  /com/littler/ourpeople/business/Services.mxml:11 

  Namespace http://macromedia.com/2003/mxml has not been associated with 
  component manifest.
  
  - Agha 
  Mehdi web developer Littler Mendelson 
  P.C. work: 415-288-6362 
  cell: 415-987-7104 - 
  
  
  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 the Yahoo! Terms of 
Service. 
  This email may contain confidential and privileged material for the 
  sole use of the intended recipient(s). Any review, use, distribution or 
  disclosure by others is strictly prohibited. If you are not the intended 
  recipient (or authorized to receive for the recipient), please contact the 
  sender by reply email and delete all copies of this message.To reply 
  to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.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 the Yahoo! Terms of Service.










This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com




RE: [flexcoders] Applications forgetting variables

2005-05-24 Thread Gordon Smith










Can you be more specific about what you
mean when you say it keeps forgetting, or post a tiny but complete
mx:Application that demonstrates the problem?



The meanings of 'var age' in your two
examples are very different. Your second example would forget that
you set age to 23, because you are setting a local (or temporary) variable in
the compute function, and local variables go away when the function they are in
returns. The first example would not forget the 23 because you are
setting an instance variable on whatever the 'this' object is; instance
variables last as long as the object itself.



- Gordon











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 7:41
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Applications
forgetting variables







I can not help but feel I have ran in to more problems than
neccessary because my flex applicaitons forget variables. I mean I know from a
code standpoint I am doing the right thing when I write my code but I think it
forgets variables and I think this is causing me more stress than need be. What
I want to know is how does someone go about making sure it does not forget
variables I mean is this a way to do it:





If I have a function and a variablethat looks like
this say:





public var age:Num





public function compute(){





age = 23





}





but lets say that for some odd reason when you get to the
compute function it keeps forgetting the age variable will this solve it to
write the function like this:







public function compute(){





var age:Number





age = 23





}







If there is any other suggestions let me know 














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 the Yahoo! Terms of Service.












Re: [flexcoders] Applications forgetting variables

2005-05-24 Thread nostra72



I will set a variable to be a certain amount in one function then call it in a later function and its completely forgotten it







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 the Yahoo! Terms of Service.










RE: [flexcoders] Applications forgetting variables

2005-05-24 Thread Gordon Smith










It is 99.% likely that you have a
coding error, but I can't tell you what it is if you won't post malfunctioning
code. : )



It certainly sounds like you are declaring
a local variable when you should be using an instance variable.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 9:58
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Applications forgetting variables





I will set a variable to be a certain amount in one function
then call it in a later function and its completely forgotten it 










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 the Yahoo! Terms of Service.