[flexcoders] Tree and Drag and Drop

2006-09-20 Thread ldyhwke24
I have a small question on the Drag and Drop using the Tree component.

private function dragEnterHandlerTree(event:DragEvent):void {

var dropTarget:UIComponent = UIComponent(event.currentTarget);

if (event.dragSource.hasFormat('treeItems')) 

{

// Signal that this data can be dropped onto the target

DragManager.acceptDragDrop(dropTarget);

trace(drag accepted.);
DragManager.showFeedback(DragManager.COPY);
trace(DragManager.getFeedback());


var dragItems:Array = event.dragSource.dataForFormat(treeItems);
}
}

now dragItems is an Array, it has the length of 1; but when I look at 
the information through a trace, it's empty.

Any ideas on how to get the node's information? I've tried a couple 
different ways, one way had an issue and it read the tree node to be:

label=name id=data anotherID=id

any ideas?

thanks! 







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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] edit Date within DataGrid

2006-08-23 Thread ldyhwke24
I have a question in regards to editing a date in a DataGrid.

I have this code:

mx:DataGrid id=memberGrid width=480 height=140 editable=true
mx:columns
mx:DataGridColumn textAlign=left dataField=fullName 
headerText=Name/
mx:DataGridColumn labelFunction=formatDate headerText=Start Date 
itemRenderer=mx.controls.DateField editorDataField=selectedDate/
/mx:columns
/mx:DataGrid

Where the labelFunction calls a function to edit and format a date 
(dd-mmm-), which works fine - but then I'd like to edit the date 
using the DateField. I know that it needs to be a date, but how does 
one do this? Do I need to create a custom itemrenderer to do this? 
When I use the DateField, the format of the date is funky and it 
doesn't show the correct date - unless I pick a new date.

thanks! 






--
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] drag and drop from a grid to an image..

2006-08-21 Thread ldyhwke24
Hi all.

I figured out how to drag and drop between grids, that was rather 
simple.  But, I'm having difficulty getting the drag 'n drop between a 
grid and an image.  

On the grid side of things, it seems rather simple; but on the image 
side of things, I'm not quite sure how to implement this.

Ideas?  Should I use DragManager for this?

thanks!






--
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] Dynamically set method result from Web Service

2006-08-17 Thread ldyhwke24



Hi all,
Just a small question, I've been playing around with - is it possible to set the result of a method dynamically? Depending on whose calling the method? I'd like to use one method to populate two different datagrids. 
i.e.
private function CurrentUsers():void {//Current UsersMemberTypeId = 0;Group = 2;HistoricalMembership = false;GroupWS.GetMembers.send();
 //set result method here..??}
mx:WebService id="GroupWS" wsdl="http://localhost/Group.asmx?WSDL"  useProxy="false"showBusyCursor="true"fault="Alert.show(event.toString())"mx:operation name="GetMembers" result="can this be set dynamically?"mx:requestMembershipTypeID{GroupMemberTypeId}/MemberTypeIDHistoricalMembership{HistoricalMembership}/HistoricalMembershipGroup{Group}/Group/mx:request/mx:operation/mx:WebService

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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: Web services or FDS: which are you using?

2006-08-15 Thread ldyhwke24
I'm using Flex right now with .NET Web Services.  For now, it's been an 
interesting learning curve!

Thank goodness for newsgroups, forums, and blogs!!

By the way, anyone have an issue with passing a null date to a Web 
Service Method?  I've tried hard coding it in the Flex code, but I'm 
still coming up with an error.

Error #1009: Cannot access a property or method of a null object 
reference.


--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 In my ongoing crusade to increase the attention given by Adobe to web
 service support in Flex, I decided to do a little impromptu survey. My
 feeling is that its a mistake to focus so heavily on FDS in regards to
 articles, tutorials and the like when such a small percentage of
 organizations will actually deploy the technology.
 
 So, which are you using? I am more interested in actual production
 apps, rather than personal projects used for learning or
 experimentation purposes.
 
 Personally, I am evaluating Flex as the front end for an application
 that relies heavily on .NET web services.
 
 Ben
 http://www.returnundefined.com/







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

* 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] Dispatch Event?

2006-08-15 Thread ldyhwke24
I've been running tests with .NET web services and Flex and have come 
upon an error..

[RPC Fault faultString=Error #1009: Cannot access a property or 
method of a null object reference. faultCode=EncodingError 
faultDetail=null]
at 
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::inv
okePendingCall()
[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\Operation.as:582
at mx.rpc.soap::Operation/send()
[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\Operation.as:492]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.soap.mxml::Operation/send()
[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\mxml\Operation.as:139]
at EditDragNDrop/___Button3_click()[C:\Documents and 
Settings\abratty\My Documents\Flex Builder 2
\BasicTests\EditDragNDrop.mxml:120]

but I've also seen the error while debugging:

mx.rpc.soap.mxml::WebService/dispatchEvent

Source not found.

I thought this would be in the SDK or Flex Builder 2? But, it's not 
on my local system.. can anyone give me a hint as to how to fix this?

thanks! 
-Amy





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