I'm trying to figure out why I get a ton of warnings when using
databinding to an XML variable.  Here's the pertinent snippets of code
below.

<mx:HTTPService url="assets/payroll.xml" resultFormat="e4x"
id="payrollXML" result="payrollXMLHandler(event)"/>

private function payrollXMLHandler(event:ResultEvent):void
        {
                payrollXMLVar = event.result as XML;
                wcPayroll = new
XMLListCollection(payrollXMLVar.policy.(@type.toString()=='wc'));
        }


As soon as the 'wcPayroll = new XMLListCollection...' line runs, I get
these warnings in the FB2 console.
warning: unable to bind to property 'type' on class 'XML' (class is
not an IEventDispatcher)
warning: unable to bind to property 'name' on class 'XML' (class is
not an IEventDispatcher)
warning: unable to bind to property 'type' on class 'XML' (class is
not an IEventDispatcher)
warning: unable to bind to property 'name' on class 'XML' (class is
not an IEventDispatcher)


I get more as the tabs, repeaters, and accordions render also.  I
think a side effect of this is that additions of nodes to the
underlying XML object are not reflected in the UI.  Unless I
explicitly set "wcPayroll = new XMLListCollection...." again, I will
not see the changes.  Of course, if I set that again, I lose the
current location in my tab navigator.  Help!  Thanks!





-- 
Marlon


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



Reply via email to