[flexcoders] Change Datagrid Row Colors

2006-07-11 Thread vestcomprogrammer



Ok I have a datagrid that bound to an Array and I want to change the background color of a row depending on the value of datafield Emergency. mx:DataGrid headerRelease="columnSort(event);plgrid.dataProvider=currentViewList;" sortableColumns="true" id="plgrid" dataProvider="{currentViewList}" rowCount="11" draggableColumns="false" selectable="true" wordWrap="true" mouseUp="dataGridClick();" styleName="dataGridStyle" rowHeight="40" height="428"mx:columns mx:Array mx:DataGridColumn dataField="Emergency" headerText=" " width="50"/ mx:DataGridColumn dataField="ID" headerText="#" width="50"/mx:DataGridColumn dataField="RequestTitle" headerText="Title" width="175"/mx:DataGridColumn dataField="CompanyName" headerText="Company" width="125"/mx:DataGridColumn dataField="RequesterFullName" headerText="Requested" width="100"/mx:DataGridColumn dataField="RequestDays" headerText="Date" width="100" labelFunction="formatDate"/mx:DataGridColumn dataField="Approved" headerText="Status" width="100"/mx:DataGridColumn dataField="Quote" headerText="Quote" width="50" sortable="false"/mx:DataGridColumn dataField="Project" headerText="Project" width="50" sortable="false"/mx:DataGridColumn dataField="Erase" headerText="Erase" width="50" sortable="false"//mx:Array/mx:columns/mx:DataGridThank

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Excel Export

2006-06-13 Thread vestcomprogrammer
Does anyone know how to export to excel, like they do on the 
timetracker application on the showcase page on 
http://labs.adobe.com/showcase/.




Thanks
Bill






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Setting an Imge to sortArrowSkin

2006-06-05 Thread vestcomprogrammer



I know in the tag you can set an imge like this:
sortArrowSkin = @Embed('heart.gif') 

How would you do it in actionscript?


-Bill









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] .Net DataSet

2006-05-18 Thread vestcomprogrammer



Does anyone know if we will be able to use .net DataSet with Flex 2.0?



Bill









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] doDrag() in Flex 2.0

2006-05-04 Thread vestcomprogrammer



My code works fine in Flex 1.5 but I get:fff
"Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'mx.core:IFlexDisplayObject"
CODEvar ds = new mx.core.DragSource();ds.addData({name: name, component: component}, "product");
mx.managers.DragManager.doDrag(this, ds, event, {name: name, image: image,component: component, mxml: true});
-Bill






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Re: Looping Through A DataProvider In Flex 2.0

2006-05-03 Thread vestcomprogrammer



Thanks that worked.

--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 
 What about this:
 
 searchDP(FontFamily.dataProvider, label, style.fontFamily);
 
 
 public function searchDP(arrToSearch:ArrayCollection, field:String,
 value:String):Number
 {
 for (var idx = 0; idx  arrToSearch.length; ++idx)
 {
 if (arrToSearch.getItemAt(idx)[field] == value) {return idx};
 }
 return -1;
 }
 
 
 --- In flexcoders@yahoogroups.com, vestcomprogrammer
 vestcomprogrammer@ wrote:
 
 
  It works in flex 1.5 but I try to run the same code in Flex 2.0 
Beta 2
  and it gives me one element in the array.
 
 
 
 
 
  XML FILE
  ?xml version=1.0 encoding=utf-8?
  Fonts
  font label=-- not selected -- data="" /
  font label=Arial data="" /
  font label=Georgia data="" /
  font label=Impact data="" /
  font label=Tahoma data="" /
  font label=Times New Roman data="" /
  font label=Verdana data="" /
  font label=Webdings data="" /
  font label=Windings data="" /
  /Fonts
 
 
  My Code
 
  mx:Model id=fontModel source=data/filteredFontList.xml/
 
  //Call to the funciton
  searchDP(mx.utils.ArrayUtil.toArray
(FontFamily.dataProvider), label,
  style.fontFamily);
 
 
  public function searchDP(arrToSearch:Array, field:String,
  value:String):Number
  {
  for (var idx = 0; idx  arrToSearch.length; ++idx)
  {
  if (arrToSearch[idx][field] == value) {return idx};
  }
  return -1;
  }
 











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Looping Through A DataProvider In Flex 2.0

2006-05-02 Thread vestcomprogrammer



It works in flex 1.5 but I try to run the same code in Flex 2.0 Beta 2 and it gives me one element in the array.


XML FILE?xml version="1.0" encoding="utf-8"?Fontsfont label="-- not selected --" data="" /font label="Arial" data="" /font label="Georgia" data="" /font label="Impact" data="" /font label="Tahoma" data="" /font label="Times New Roman" data="" /font label="Verdana" data="" /font label="Webdings" data="" /font label="Windings" data="" //Fonts
My Code
mx:Model id="fontModel" source="data/filteredFontList.xml"/
//Call to the funciton searchDP(mx.utils.ArrayUtil.toArray(FontFamily.dataProvider), "label", style.fontFamily);
public function searchDP(arrToSearch:Array, field:String, value:String):Number{for (var idx = 0; idx  arrToSearch.length; ++idx){if (arrToSearch[idx][field] == value) {return idx};}return -1;}






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Select ComboBox

2006-05-01 Thread vestcomprogrammer



I need to change the selectedIndex of a combox based of a string value.

Example:

Combobox has 
not selected --
Arial
Georgia
Impact
Tahoma
Times New Roman
Verdana
Webdings
Windings 

I want to be able to change the selectedIndex by that value say if I 
have Impact it would changed it to Impact.


Thanks
Bill









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] useHandCursor=true In Flex 2.0

2006-04-26 Thread vestcomprogrammer



Before in flex 1.5 I would have this :

event.target. on a 
mxLHBox mx:Text

ReferenceError: Error #1056: Cannot create property onRelease on 
mx.containers.HBox
 at SS_SL/__Description1_mouseOver()



Now it flex 2.0 if throw an error at runtime.


-Bill









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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Re: Binding with Child Object In Flex 2.0

2006-04-26 Thread vestcomprogrammer



SS_Save.mxml - Part in Child
mx:Script
![CDATA[
import mx.controls.Spacer;
import mx.events.CursorEvent;
import mx.utils.URLUtil;
import mx.managers.PopUpManager;
import mx.controls.Alert;
import Structures.*;
import Classes.*;
  
var CentValue:Boolean = false;
[Bindable] public var incomingDescription:String = Gas;
[Bindable] public var incomingDescription2:String = Description ;
[Bindable] public var incomingPrice:String = 0.00;
]]
/mx:Script


SSDemo.mxml - Part in Parent
mx:TitleWindow height=100% width=100% title=Design view 
 roundedBottomCorners=true 
 dragEnter=doDragEnter(event)
 dragExit=doDragExit(event)
 dragDrop=doDragDrop(event)
 creationPolicy=queued
 childrenCreationCompleteEffect=Dissolve
 horizontalAlign=center verticalAlign=bottom id=DesignView 

mx:Spacer /

The Child is drag and dropped into the parent at runtime.



-Bill





/mx:TitleWindow


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Well, I think it should, can we have more of an example?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of vestcomprogrammer
 Sent: Tuesday, April 25, 2006 7:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Binding with Child Object In Flex 2.0
 
 Before in flex 1.5 I have this
 
 mx:Binding destination=this.DesignView[0].incomingDescription 
 source=AssetTitle.text /
 
 In Flex 2.0 Beta 2 this does not seem to work.
 
 
 
 Thanks
 Bill
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Binding with Child Object In Flex 2.0

2006-04-25 Thread vestcomprogrammer



Before in flex 1.5 I have this

mx:Binding destination=this.DesignView[0].incomingDescription 
source=AssetTitle.text /

In Flex 2.0 Beta 2 this does not seem to work.



Thanks
Bill









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





  




  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] Adding addEventListener too a Child object

2006-04-25 Thread vestcomprogrammer



I am trying to add a addEventListener to a child object in Flex 2.0 
beta 2 and I have tried this DesignView[0].addEventListener
(selectionChanged, valueChanged(this)); but this does not seem to 
work. Anyone know how?


Thanks
Bill









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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