[flexcoders] Can't bind XMLListCollection to Datagrid

2009-10-24 Thread jc_bad28
I changed my webservice call to return e4x but I can't get the 
XMLListCollection to bind to the datagrid.

Here is the pertinent AS code:

[Bindable]
private var Employees:XMLListCollection;

private function submit():void
{
EmployeeWS.GetAllEmployees();
}

private function resultHandler(event:ResultEvent):void
{   

var xmlResult:XMLList =  new 
XMLList(event.result);
var Employees:XMLListCollection = new 
XMLListCollection(xmlResult.children());
trace(Employees);   

}


Here is how the trace returns the XMLListCollection data:

http://schemas.xmlsoap.org/soap/envelope/";>
  3
  Badham
  John
  C.
  Data Manager

http://schemas.xmlsoap.org/soap/envelope/";>
  4
  Bui
  Tai
  Tan
  Inserter Operator


Here is the datagrid code:









I've been spinning my wheels with this for 2 weeks now.  It's probably 
something simple, but I can't figure it out after googling non-stop every damn 
day.  Any help is greatly appreciated.





Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Vivian Richard
 I did that this way:

 this.dispatchEvent(new Event("dragEnd"));







On Sat, Oct 24, 2009 at 5:53 PM, Jeffry Houser  wrote:

>
>
>
>  I also want to add that the metadata only affects code hinting.  You'll
> still need to dispatch that event from within your custom component.
>
> Vivian Richard wrote:
>
>
>
>
>Thanks for the answer and also for the explanation.
>
>Regards
>
>
>
>  On Sat, Oct 24, 2009 at 4:35 PM, Guy Morton  wrote:
>
>>
>>
>>   try addEventListener("dragEnd",startPanAndZoom);
>>
>> addEventListener expects a string containing the event name as its first
>> argument.
>>
>>
>>
>> On 25/10/2009, at 10:00 AM, hworke wrote:
>>
>>
>>
>> Hello developers,
>>
>> in a custom component, I defined an event in metatag like this
>>
>> [Event(name="dragEnd", type="flash.events.Event")]
>> public class ta extends TextArea
>> {
>> }
>>
>> Now inside this component how do I add the event listener for
>> this event which was defined in the metatag.
>>
>> in the component constructor I tried to add the event listener
>> like this
>> addEventListener(dragEnd,startPanAndZoom);
>> or
>> addEventListener(this.dragEnd,startPanAndZoom);
>>
>> None works. How do I do it then? Any help will be appreciated.
>>
>> Regards
>>
>>
>>
>
> --
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: 
> http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
> 203-379-0773
> --
> Easy to use Interface Components for Flex 
> Developershttp://www.flextras.com?c=104
> --http://www.theflexshow.comhttp://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>
>  
>


Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Jeffry Houser


I also want to add that the metadata only affects code hinting.  You'll 
still need to dispatch that event from within your custom component. 


Vivian Richard wrote:
 



   Thanks for the answer and also for the explanation.

   Regards



On Sat, Oct 24, 2009 at 4:35 PM, Guy Morton > wrote:


 


try addEventListener("dragEnd",startPanAndZoom);

addEventListener expects a string containing the event name as its
first argument.



On 25/10/2009, at 10:00 AM, hworke wrote:




Hello developers,

in a custom component, I defined an event in metatag like this

[Event(name="dragEnd", type="flash.events.Event")]
public class ta extends TextArea
{
}

Now inside this component how do I add the event listener for
this event which was defined in the metatag.

in the component constructor I tried to add the event listener
like this
addEventListener(dragEnd,startPanAndZoom);
or
addEventListener(this.dragEnd,startPanAndZoom);

None works. How do I do it then? Any help will be appreciated.

Regards







--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Vivian Richard
   Thanks for the answer and also for the explanation.

   Regards



On Sat, Oct 24, 2009 at 4:35 PM, Guy Morton  wrote:

>
>
> try addEventListener("dragEnd",startPanAndZoom);
>
> addEventListener expects a string containing the event name as its first
> argument.
>
>
>
> On 25/10/2009, at 10:00 AM, hworke wrote:
>
>
>
> Hello developers,
>
> in a custom component, I defined an event in metatag like this
>
> [Event(name="dragEnd", type="flash.events.Event")]
> public class ta extends TextArea
> {
> }
>
> Now inside this component how do I add the event listener for
> this event which was defined in the metatag.
>
> in the component constructor I tried to add the event listener
> like this
> addEventListener(dragEnd,startPanAndZoom);
> or
> addEventListener(this.dragEnd,startPanAndZoom);
>
> None works. How do I do it then? Any help will be appreciated.
>
> Regards
>
>
>  
>


Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Guy Morton

try addEventListener("dragEnd",startPanAndZoom);

addEventListener expects a string containing the event name as its  
first argument.






On 25/10/2009, at 10:00 AM, hworke wrote:




Hello developers,

in a custom component, I defined an event in metatag like this

[Event(name="dragEnd", type="flash.events.Event")]
public class ta extends TextArea
{
}

Now inside this component how do I add the event listener for
this event which was defined in the metatag.

in the component constructor I tried to add the event listener
like this
addEventListener(dragEnd,startPanAndZoom);
or
addEventListener(this.dragEnd,startPanAndZoom);

None works. How do I do it then? Any help will be appreciated.

Regards







[flexcoders] EVENT metatag handler

2009-10-24 Thread hworke


Hello developers,

in a custom component, I defined an event in metatag like this

[Event(name="dragEnd", type="flash.events.Event")]
public class ta extends TextArea
{
}

Now inside this component how do I add the event listener for
this event which was defined in the metatag.

in the component constructor I tried to add the event listener
like this
addEventListener(dragEnd,startPanAndZoom);
or
addEventListener(this.dragEnd,startPanAndZoom);

None works. How do I do it then? Any help will be appreciated.

Regards

 



[flexcoders] Elliniki astinomia !

2009-10-24 Thread Fotis Chatzinikos
Για δείτε...




Ηδη εχουμε ξεκινήσει και το στέλνουμε παντου. Πρεπει να το δουν οσοι
βγαινουν στα κανάλια και λενε οτι αισθάνονται τώρα μεγαλύτερη ασφάλεια που
κυκλοφορουν η ομάδα Δ και  Ζ και ολο το αλφάβητο της ΕΛΑΣ στα
Εξάρχεια.Υπαρχει και με κειμενο στο TVXS
*http://www.tvxs. gr/v24003 *



On Oct 22, 2009, at 3:44 PM, Xenia Chryssochoou wrote:

Το βίντεο είναι αποκαλυπτικό... Οι μόνοι με σκεπασμένα πρόσωπα ´που
βιαοπραγούσαν ήταν οι αστυνομικοί
Να σταλεί αυτό το βιντεο ευρύτατα όποιος μπορεί.
Ξένια

Στις 22 Οκτωβρίου 2009 3:35 μ.μ., ο χρήστης Χρυσούλα<*theonlyb...@yahoo.gr*
>έγραψε:



*http://www.youtube.com/watch?v=2090zf6Mhjw*

ΧΡΥΣΟΥΛΑ ΠΑΠΑΓΕΩΡΓΙΟΥ

-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] launching popup TitleWindow from a reused mxml component

2009-10-24 Thread Tim Romano
I posted a question the other day about how to prevent a popup from being 
dragged outside the bounds of the application window. Since I'm fairly new at 
Flex, some obvious things are not immediately obvious to me.

I think my popup window can be dragged outside the main application window 
because "this" in my method call below:

PopUpManager.addPopUp(popwin, this, true);

actually refers to an isntance of my (reusable) mxml component  which is 
launching the popup, not to the main application window.  If the "parent" 
DisplayObject referred to by "this" is not the main application window, is the 
default behavior that the popup can be dragged outside the main application 
window?

Thanks

[flexcoders] need help making a UITextInput update its numLines property

2009-10-24 Thread DustinB
hello Flexcoders!

I am stumped with a problem in my DataGrids itemRenderer.
I am using a regular DataGrid and my column has a renderer that extends 
UIComponent and not DataGridItemRenderer.

In my renderer is a UITextField that has wrapping turned on. The user can 
expand and reduce the width of the column, and as they do I have a function 
that truncates the text if there is not enough room in the column to display it 
in 4 lines or less within the visible space of the resized cell. I use the 
UITextField.numLines property as my indicator.

This works great when I expand the width of the column.

I doesn't work when I reduce the width of the column by making the text go 
from, say 2 lines, to 5 lines.

When I roll over the row, the UITextField updates its numLines property. 

Any ideas about an event I can listen for on the DataGrid or ItemRenderer, or a 
method to call on the UITextInput to make it update the numLines property?

thanks!
Dustin